hello
might be a dumb question, but where in the code does the code get its signal. i read :
BuyCondition = true;
TradeDirection = "UP";
CrossTime = iTime(NULL,TimeFrame,0);
but where are the UP referenced, how does it now it is and up signal?
sorry for coming across as a newb, but havent seen this style of coding before, it is brilliant in is simplicty and i want to learn.
Kenny
full EA enclosed
might be a dumb question, but where in the code does the code get its signal. i read :
BuyCondition = true;
TradeDirection = "UP";
CrossTime = iTime(NULL,TimeFrame,0);
but where are the UP referenced, how does it now it is and up signal?
sorry for coming across as a newb, but havent seen this style of coding before, it is brilliant in is simplicty and i want to learn.
Kenny
Inserted Code
if(ConfirmedOnEntry==true) { if(CheckTime==iTime(NULL,TimeFrame,0)) return(0); else CheckTime = iTime(NULL,TimeFrame,0); FastMACurrent = iMA(NULL,TimeFrame,FastMAPeriod,FastMAshift,FastMAType,FastMAPrice,1); SlowMACurrent = iMA(NULL,TimeFrame,SlowMAPeriod,SlowMAshift,SlowMAType,SlowMAPrice,1); } else { FastMACurrent = iMA(NULL,TimeFrame,FastMAPeriod,FastMAshift,FastMAType,FastMAPrice,0); SlowMACurrent = iMA(NULL,TimeFrame,SlowMAPeriod,SlowMAshift,SlowMAType,SlowMAPrice,0); } CrossDirection = subCrossDirection(FastMACurrent,SlowMACurrent); //----------------------- CONDITION CHECK if(ReverseCondition==false) { //----------------------- BUY CONDITION if(CrossDirection=="UP") { BuyCondition = true; TradeDirection = "UP"; CrossTime = iTime(NULL,TimeFrame,0); } //----------------------- SELL CONDITION if(CrossDirection=="DOWN") { SellCondition = true; TradeDirection = "DOWN"; CrossTime = iTime(NULL,TimeFrame,0); } }
full EA enclosed
Attached File(s)
universalMACrossEA 8.2 (modified by simtese to manage maximum lots).mq4
34 KB
|
281 downloads