Download MetaTrader 5

Logic Error - Please Help me.. - page 2

To add comments, please log in or register
Muhammad Nasruddin
25
Muhammad Nasruddin  
ffoorr:

And you made errors recopying the expert 

should be


Thanks for your respone.. I Already tried..
Any others idea..??
ffoorr
1077
ffoorr  

The code is all wrong, I show some mistake

to open buy :

double Buy_S_1 = iMA(NULL, 0, 9, 0, MODE_EMA, PRICE_CLOSE, Current + 0);
double Buy_S_2 = iMA(NULL, 0, 9, 0, MODE_EMA, PRICE_CLOSE, Current + 1);
double Buy_L_1 = iMA(NULL, 0, 26, 0, MODE_EMA, PRICE_CLOSE, Current + 0);
double Buy_L_2 = iMA(NULL, 0, 26, 0, MODE_EMA, PRICE_CLOSE, Current + 1);

then signal :

if (  Buy_S_2 < Buy_L_2 && Buy_S_1 > Buy_L_1 ) Order = SIGNAL_BUY;

the close buy is wrong, so are all other signals, look for a new builder EA, or make it modify at "job service".

12
To add comments, please log in or register