Forum

Icustom Values

Hi just a quick query regarding values for icustom. I tried to check if I was getting the correct values for icustom by using alert function on my indicator. The alerts on my indicator and prints from my ea match up but the data on the data window is different from both so I am not sure if my

Flag last state on EA.

Can someone explain to me why flag last state does not work on EA's but works on Indicators? My code if ((MA1[ 1 ] > MA2[ 1 ]) && (flagval1== 0 )) {res=OrderSend("USDCAD",OP_BUY,LotsOptimized(),askusdcad,3,0.999*bidusdcad,1.003*bidusdcad,"",MAGICMA,0,Blue); flagval1= 1 ;

Can someone help me iCustom

Hello can someone help me with my code for the icustom function. The the original indicator is just a 50,200 ema but I want to learn how to import my own custom indicator and for this the iMA function can not be used. I am using the built in moving average EA for testing the code, I just want the