Forum

How to sum the total of the losses for the closed orders as long as the orders closes at losses

Hello everybody, im trying to sum the total loss of the closed orders that closes on LOSS , i tried as much as i can, here is what i got : double TOTAL_LOSSES() { double pr_2= 0 ; for ( i=OrdersHistoryTotal()- 1 ; i>= 0 ; i--) { if ( OrderSelect

get the high and low of the candle that closes above or below the indicator,

hello everybody, we have the zigzag indicator, every time the candle make high higher then the candle before, the zigzag will follow the new high right ? once the candle stop making any new higher the zigzag will wait for a low right ? i want to mark the high and low of the candle that stops the

need help finding the highest OrderOpenPrice() to exclude it from OrderModify()

hello everybody, if i h ave more then 1 sell orders opened, i w ant to set T akeProfit for all sell orders except the highest one, any ide a how c an i do th at? below is my code but it f ailed aswell ... double highest( int op) { double c= 0 ; for ( int cnt= 0 ; cnt< OrdersTotal ();