I wrote a code for Gold pair, but it didn't work. if (( Symbol () == "XAUUSD" )|| ( Symbol ()== "XAUUSD-" ) ) pips = 0.1 ; int buystop= OrderSend ( Symbol (),OP_BUYSTOP,0.1,Ask+ 50 *pips, 5 ,Ask+ 40 *pips,Ask+ 70 *pips, NULL , 0 , 0 , clrNONE );
We know that EA that works in function OnTick() runs based on ticks. My question is, is it possible to write an EA based on time but not based on ticks? Thank you.