EMPTY_VALUE 0x7FFFFFFF Default custom indicator empty value... that's 2,147,483,647
0x7FFFFFFF is not reliable I guess. Instead use SetIndexEmptyValue()
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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