Download MetaTrader 5
To add comments, please log in or register
Find out the most discussed Forum topics. Have a look at the Wall section!
ailanshi_7
13
ailanshi_7 2016.04.30 17:37 

Can we control iEA ordersending function it is sending a lot of orders in a second.

whroeder1
13596
whroeder1 2016.05.02 17:31  
  1. That is what you coded. Fix your broken code.
  2. Check for open orders or a change in signals.
    int start(){
       static datetime time0; datetime prev0=time0; time0=Time[0]; bool isNewBar = prev0 != time0;
       if(isNewBar){
          static double level; double prev = level; level = ...;
          bool wasSignal = prev  > x;
          bool  isSignal = level > x
          if(isSignal && ! wasSignal) ...

/
To add comments, please log in or register