Forum

when an order closed another order like that open

i wrote this code & its work but just one problem: some time it send 2 or 3 or more order like order closed. i want just send 1 thanks for helping void openorderagain() { for ( int d = OrdersHistoryTotal () - 1 ; d >= 0 ; d--) { OrderSelect (d, SELECT_BY_POS , MODE_HISTORY );

whats wrong about my code

i want when value of Aval chenge with value of Sod . else value of Aval don't back to first value. please help thanks double Aval = 0 ; double Dif ; double Sod = ( AccountEquity ()/Goal) ; if (Sod >= Aval) { Aval = Sod ; } else (Dif = Aval - Sod);

expertremove order

i write this code for expertremove() but dont meta order it. just order else if and when AccountEquity is < target dont order it. for eaxample: if Equity rise to goal + 80 order done. but when Equity rise to goal + 60 then decrease dont run and dont Expert remove . thanks for your comment. if (