- ago
Hi
I wrote a basic trend system in C# with a VIX filter. It compiled and ran. When I tried to run it 3 hours later it was corrupted. I don't know how to attach it. I never saw this with WL6 or earlier versions. Strange. Any ideas please?

Instead of opening the code it showed this:

2|V24|True1|249|1|711|BuyAtMarket7|2|V31|05|False4|True5|False1|0707|1|712|SellAtMarket7|2|V31|05|False4|True5|False1|1653|1|718|BarsSinceEntryExit597|2|V31|42|1429|Bars since Last Entry or Exit2|101|25|Entry4|Exit5|Entry5|False10|-9999999999|9999999991|10|5|False12|StringChoice0|4|True5|False4|NULL4|NULL2|142|is2|101|69|less than21|less than or equal to8|equal to12|not equal to24|greater than or equal to12|greater than24|greater than or equal to5|False10|-9999999999|9999999991|10|5|False12|StringChoice0|4|True5|False4|NULL4|NULL2|141| 1|02|205|False10|-9999999999|9999999991|10|5|False5|Int320|4|True5|False4|NULL4|NULL2|1427|Check Active Positions Only1|34|True5|False10|-9999999999|9999999991|10|5|False7|Boolean0|4|True5|False4|NULL4|NULL5|False5|False5|False5|False

Thanks and regards
Rod
0
190
Solved
5 Replies

Reply

Bookmark

Sort
- ago
#1
Hi Rod,

This is the serialization string of a Blocks based strategy.
What shows this precisely? i.e. how you're getting this, step by step?
1
- ago
#2
Steps to recreate:

1. Create a simple building block strategy.
2. Save the strategy. Do not close it.
3. Click "Open as a C# Coded Strategy"
4. Save the C# strategy with the same name (and folder) as the building block strategy created at step 1. Allow the building block strategy to be overwritten.
5. Close the C# strategy.
6. Close the building block strategy. When prompted click Yes.
7. Open the strategy by double-clicking it in the strategy tree. The serialized version shows up in the C# editor.
2
Best Answer
Glitch8
 ( 10.13% )
- ago
#3
OK paul, simply avoid those steps to avoid the issue in the future. Best practice is to give it a different name.
1
- ago
#4
@Glitch - I use C# 99.9% of the time. I was simply reporting how to recreate the issue that rbryant reported in case you wanted to apply a fix.
3
- ago
#5
Paul - you are an intuitive rockstar. Those are exactly the steps I took. How did you know?:).

Thanks Glitch.
0

Reply

Bookmark

Sort