I think when the conditions of closing and opening are met about the same time,
it can cause some confusion with the quantity of exiting "Position.Quantity".
What can I do to prevent that from happening?
What are your suggestions?
What is the best course of action?
Pause entry during exiting?
or
Pause after every entry?
or
Not entry when exiting?
or
How much time to pause?
or
etc?
i.e.
Both under protected override void OnBarUpdate()
Opening
if ( (Open[0]-Low[0] >= 0.00001) ) { EnterLong(0,Quantity,"EnterLong"); }
if ( Profit>= ProfitTarget ) { ExitShort(0,Position.Quantity,"EXIT SHORT EURUSD (ProfitTarget)",""); }
Comment