I want to start by saying I'm not a programmer, so this is probably not the most effective / efficient way to manage trails and breakeven stuff. I have, however, beat my head against the wall trying to make it work using little snippets that I've found here. So here is my paltry contribution to the forum.
This strategy was built to be a template for optimization. It has a framework that allows you to enable/disable long/short trades, second contract, breakeven, trail, and session time. It allows entry for stop loss, 2 profit targets, breakeven trigger, breakeven plus ticks, along with trail trigger and stop. That all means that it is also built to be optimized.
Just to have something in place for you to replace, I used the "Golden Cross" strategy, running it on an NQ 1 minute chart. Replace the strategy specific code with your strategy...
Again, the pros here will probably think this is sub-par, but it works...
Also, thank you to all of the other comments that lead to this being built, I read too much to know who to credit individually.
Hopefully this helps, please modify and improve it, all I ask is that you share it back to everyone.

Comment