Rewriting system as multiple position not producing trades
Author: mikesblack
Creation Date: 2/27/2016 1:00 PM
profile picture

mikesblack

#1
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.


profile picture

Eugene

#2
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. ;)
profile picture

mikesblack

#3
Thanks Eugene. That worked.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).