I appreciate the 'Sample Advanced Automated Strategy' included on the downloads. I am trying to add 1 filter, based on the SwingGap indicator:
&& ((SwingGap(5).SwingHigh[0]) - (SwingGap(5).SwingLow[0])) > 14
When added to the long entry condition, it compiles with no problems, but the strategy no longer takes any longs in backtests. This is regardless if the gap between swing areas is < 14 or > 14 ! Once the line is commented out the long trades appear again.
I am just starting out modifying strategies and this has frustrated me for a whole day. Can someone please show me my error?
Exported strategy script is attached.
Thanks!
Jon
so far I have made a private init so I can modify the value I need to measure, and a double to validate the math, but the compiler gives
me errors I cant figure out (expecting statements in the starategy)
Uploading the changes I made in a .cs .

Comment