I have looked around the net for a bit and I cannot find code examples that match what I am tryin to do so I hope you can help me out.
Situation:
I have a strategy that opens two positions at the same time as market orders, one called "Scalp" and one called "Runner". My strategy both buys and sells, (but not at the same time), so the logic has to work for both buys and sells.
The scalp trade takes profit and exits at 10 ticks. (This is working just fine).
The Runner trade I would like to go to BreakEven +1 tick of profit at 10 ticks when my scalp trade closes.
I would then like the Runner trade to continue to trail price 10 ticks behind price until stopped out. I would also like this parameter to be user defined.
I am a novice with C# but I have ran some code and logic of runners inside of onbarupdate but I cannot get this to work. I started the shell in the builder but have since unlocked the code to add in this final breakeven logic because I was not able to figure it out inside the builder structure.
Please help!
Thanks,
Justin
Comment