I want to use time for stop entry order this is my code: int d =TimeDay(TimeCurrent()); int h=TimeHour(TimeCurrent()); if(OrdersHistoryTotal()>0){ for(int i=OrdersHistoryTotal(),i>0,i--) {OrderSelect(Symbol(),h,MODE_HISTORY);
I want to get the value of the candle closed at fixed time (ex:0h0'0'),from there I will calculate the value to order. ex: candle close at 0h0'0' :1.2222.bar1=1.2222; so