-
Don't hard code the indexes, make an enumeration so you can understand the code later.
Indicator buffers SetIndexBuffer(0,ZigZagBuffer); SetIndexBuffer(1,HighBuffer); SetIndexBuffer(2,LowBuffer); SetIndexBuffer(3,T3RSIBuffer); SetIndexBuffer(4,ZigZagLow); SetIndexBuffer(5,ZigZagHigh); SetIndexBuffer(6,trend);
enum RAbuffers{ ZigZagBuffer, HighBuffer, LowBuffer, T3RSIBuffer, ZigZagLow, ZigZagHigh, trend }
-
if (iCustom (NULL,0,"RA" , 2, 0)> iCustom (NULL,0,"RA" , 1, 0) && iCustom (NULL,0,"RA" , 2, 1)<= iCustom (NULL,0,"RA" , 1, 1) ) CandleDirection = up;
Are your books one column but two feet wide? No because that is unreadable. They are 6 inches, sometimes two columns, so you can read it easily. So should be your code. I'm not going to go scrolling (or moving my eyes) back and forth trying to read it. Don't copy and paste code, write self documenting code.
-
double lowCur =iCustom (NULL,0,"RA" , LowBuffer, 0); double highCur=iCustom (NULL,0,"RA" , HighBuffer, 0); double lowPre= iCustom (NULL,0,"RA" , LowBuffer, 1); double higPre =iCustom (NULL,0,"RA" , HighBuffer, 1); if(lowCur> highCur && lowPre<= highpre)
When is the low ever going to be above the high? -
You showed the indicator trend[]? Why? are you reading it?
-
Don't hard code the indexes, make an enumeration so you can understand the code later.
Indicator buffers -
Are your books one column but two feet wide? No because that is unreadable. They are 6 inches, sometimes two columns, so you can read it easily. So should be your code. I'm not going to go scrolling (or moving my eyes) back and forth trying to read it. Don't copy and paste code, write self documenting code.
- When is the low ever going to be above the high?
-
You showed the indicator trend[]? Why? are you reading it?
no i dont read the indicator trend[] , what should i do so so my EA can read it ?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hi im trying to make ea to trade based on custom indicator arrows , but is not working , what i do wrong ?