Is it possible to set a profit target and then adjust that profit target based on a new average price instead of creating a new profit target? For example
My strategy at the moment opens a position using
SetProfitTarget("MyEntry", CalculationMode.Ticks, 8);
EnterLong(1, "MyEntry");
Opens a long position at 16000 on NQ, profit target 16002
My strategy will then add another contract if the price drops to 15990, using the following code
SetProfitTarget("MyEntryLong2", CalculationMode.Ticks, 8);
EnterLong(1, "MyEntryLong2");
I then end up with a position that's 2 contracts total but with 2 separate profit targets. The initial profit target and a new one (15992 ) for my second entry
What I want to do is to set a profit target for all open orders, in this example my average price would be 15995 and my profit target should be 15997.
I've tried to remove the entry names - MyEntryLong1/2 from the enterlongs and setprofit target and also tried setting the "entry name" to the same value and it still sets 2 different profit targets.
Any is appreciated!
Thank you!
Ravvles

Thank you!
Comment