HELP with Heiken ash candle
prweza:
Which ha indicator are you using? Check the buffers values of it (are you checking the correct buffers numbers)
Hi,
My void on tick HA function looks like this
//heiken ashi function
double haOPEN = iCustom(NULL,0,"Heiken Ashi",Red,White,Red,White,2,0);
double haCLOSE = iCustom(NULL,0,"Heiken Ashi",Red,White,Red,White,3,0);
I want the ea to sell when the HA candle is red and buy when the HA candle is white.double haCLOSE = iCustom(NULL,0,"Heiken Ashi",Red,White,Red,White,3,0);
I've used this statement:
if( haOPEN < haCLOSE) then buy
if ( haOPEN > haCLOSE) then sell.
But the ea seems to open only buy orders is there something wrong?
Is there another way to select red or white HA candles?
Thanks.
You should write a self documenting function instead of calling iCustom
directly, see
Detailed explanation of iCustom -
MQL4 forum
Hi,
My void on tick HA function looks like this
//heiken ashi function
double haCLOSE = iCustom(NULL,0,"Heiken Ashi",Red,White,Red,White,3,0);
I've used this statement:
if( haOPEN < haCLOSE) then buy
if ( haOPEN > haCLOSE) then sell.
But the ea seems to open only buy orders is there something wrong?
Is there another way to select red or white HA candles?
Thanks.