Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!
i solved the problem! thanks!
RicTRAD3: i solved the problem! thanks!
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.
aboso;utely right ,
I have seen members asking for help , and try to get informatiom or ssolution for the problem..
once they get it , may not be from the forum, but just vanish with a single line ...
" i got the solutiom " or | i solved the problem'' .
How selfish is that , they dont want to share the solution and just run away...

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
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.