Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!
Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!
Don't do that. Someone searching might find this thread and still be clueless. What was the problem? What solved what?
How To Ask Questions The Smart Way. 2004
When You Ask.
Follow up with a brief note on the solution.
You agree to website policy and terms of use
Hi!
and thanks in advance for everyone who's givin' up his time supportin' the community.
I got the Supertrend-Indicator
https://www.mql5.com/en/code/576
i'm not good at programming with MQL5 so if i'm wrong approach, could you give a simple example?
The strategy is simple, I want to open only buy positions when the trend is positive, and only sell positions when it is negative.
SuperTrendHandle=iCustom(NULL,0,"supertrend",10,3,false);
return(INIT_SUCCEEDED);
ArraySetAsSeries(Supertrend,true);
CopyBuffer(SuperTrendHandle,3,0,1,Supertrend);
double SUPERTRENMIO = Supertrend1[0];
Comment(Supertrend[0]); // i used this to try to see which type of value i got.