Targets based upon order open price (conflict issue) - page 2

 

Forgive me for not understanding where you are coming from, but my code above is about closing out positions not entering them. I have isolated the issue to being with the targets (and the corresponding formula's), as I close out my positions with orderclose function.

The actual entering of the positions across multiple pairs is not a problem.

I see where you are going with that though! Thanks for your post :)

This is the lines I think are causing me a problem - I think they need to go where I've put them in the second coding I've posted up? (looking for confirmation)

double FirstTarget_Buy = OrderOpenPrice()+(( OrderTakeProfit()-OrderOpenPrice())/6); //<< Point of interest        
double TwoRatio_Buy = OrderOpenPrice()+(( OrderTakeProfit()-OrderOpenPrice())/3); //<< Point of interest.  
Reason: