While rewriting a single position strategy to a multi position strategy I am able to compile without error; however there are no trades being produced. I'll provide the first, single position strategy and follow that with the code for the multi position strategy. Perhaps you can pin point where I might be going wrong. Thanks in advance.
Single Position system compiles and produces trades:
CODE:
Please log in to see this code.
Multi Position code// Compiles, but produces no trades:
CODE:
Please log in to see this code.
Size:
Color:
Move the entry logic outside the loop by ActivePosition. The erroneous placement will not let the script make entries.
P.S. Pay attention to the curly braces: they are unforgiving. ;)
Size:
Color:
Thanks Eugene. That worked.
Size:
Color: