How can an EA read the EMPTY_VALUE result from a custom indicator ???

 

Thanks to everyone for all your help. Has been fantastic.

When I try to code the result of many custom indicators to an EA, I can never get the EA to recognise EMPTY_VALUE

If I replace EMPLY_VALUE with "zero" in the indicator, it works, but creates problems with the indicator, so I do not want to do this

Any help would be greatly appreciated.

I have tried the following, and it does not work if EMPTY_VALUE is in the indicator

if (iCustom(NULL, 0, "SampleInd",13,1,0) !=0) ......OrderSend

if (iCustom(NULL, 0, "SampleInd",13,1,0 > iCustom(NULL, 0, "SampleInd",13,0,0)...... OrderSend

int init() {
SetIndexStyle(0, DRAW_ARROW, EMPTY);
SetIndexArrow(0, 233);
SetIndexBuffer(0, g_ibuf_76);
SetIndexStyle(1, DRAW_ARROW, EMPTY);
SetIndexArrow(1, 234);
SetIndexBuffer(1, g_ibuf_80);
return (0);
}

Thanks Guys, You are legens

 

EMPTY_VALUE 0x7FFFFFFF Default custom indicator empty value... that's 2,147,483,647

 
phy wrote >>

EMPTY_VALUE 0x7FFFFFFF Default custom indicator empty value... that's 2,147,483,647

FANTASTIC. This works brilliantly. Thanks Phy.

 
0x7FFFFFFF is not reliable I guess. Instead use SetIndexEmptyValue()