Forum

Testing VS. Reality

I made an EA and it's incredibly profitable when I go back farther than a month for test, however when I test closer to this month, it comes out as not profitable at all. i understand this has to do with not having all of the tick data that far back, but im wondering if i can make my program trade

Error 4051 Invalid ticket for OrderClose

void OnTick () { int res; double MA = iCustom ( NULL , 0 ,rsimatest,rsimatest_RSI, 0 ); //open sell if (MA< 50 && OrdersTotal () < 1 ) { res = OrderSend ( Symbol (), OP_SELL , 1 , Bid , 3 , 0 , 0 , "" ,BIGMACMATT, 0 ,Red); return ; } //open buy if (MA> 50 &&

newbie question no orders appearing

//+------------------------------------------------------------------+ //| MAvsRSI.mq4 | //| Copyright 2017, MetaQuotes Software Corp. | //| https://www.mql5.com |