Tatsuki dale-thomas:
Hey guys,
basically ive downloaded the supertrend indicator and it works on the charts however I was to get the value of it to use in an EA but I'm struggling to returns any value.
Heres my code atm:
double supertrend0 = iCustom(NULL,0,"MQLTA MT4 Supertrend Line.mq4","SPRTRND",1.0,10,1000,0,0);
I don't get any errors it just returns 0 everytime. I've tried the other 2 buffer index's but they still return 0.
Any help would be appreciated,
Thank you
Help without MQLTA MT4 Supertrend Line.mq4 indicator can be very difficult.
You need to know which buffers return values.
Remove the ".mq4"
double supertrend0 = iCustom(NULL,0,"MQLTA MT4 Supertrend Line.mq4","SPRTRND",1.0,10,1000,0,0);
double iCustom( string symbol, // symbol int timeframe, // timeframe string name, // path/name of the custom indicator compiled program ... // custom indicator input parameters (if necessary) int mode, // line index int shift // shift );

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
Hey guys,
basically ive downloaded the supertrend indicator and it works on the charts however I was to get the value of it to use in an EA but I'm struggling to returns any value.
Heres my code atm:
double supertrend0 = iCustom(NULL,0,"MQLTA MT4 Supertrend Line.mq4","SPRTRND",1.0,10,1000,0,0);
I don't get any errors it just returns 0 everytime. I've tried the other 2 buffer index's but they still return 0.
Any help would be appreciated,
Thank you