Why doesn't works? I need to close the position BUY when new bar is close below close earlier bar the same on SELL close then BAR close under the earlier close bar: if ( OrdersTotal ()> 0 ){ for (i= 1 ; i<= OrdersTotal (); i++){ // Cycle
hey!!!i'm new at this forum and I have the problem: int Crossed (double line1, double line2) { static int last_direction = 0; static int current_direction = 0; //Don't work in the first load, wait for the first cross! static bool first_time = true;