Forum

function is right or wrong

this is my first EA to do i want to know is this indicator function that i use is right or wrong.so if wrong what is the right ? //MA bool MA() { double ma5= iMA(NULL,0,5,0,MODE_EMA,PRICE_CLOSE,0); double ma10=iMA(NULL,0,10,0,MODE_EMA,PRICE_CLOSE,0); double

what Wrong in this script

//+------------------------------------------------------------------+ //| trade.mq4 | //| Copyright © 2004, MetaQuotes Software Corp. | //| http://www.metaquotes.net/ | //+------------------------------------------------------------------+