I know how to put condition but I don't know exactly about mql4 and using iCustom.
It works and it makes a draw on the chart. but there is some number is output of indicator that I don't know how can I manage them to find out if trend has changed.
The iCustom function allows you to get the values of the indicator lines that are displayed on the charts when you are adding this indicator on the chart. But remember that iCustom function won’t draw this indicator on your chart automatically – all calculations are made within the code of the function. So, if you expect that this function will show you any lines on the chart – it’s not the result here.
Instead, you get those values (uptrend and downtrend) – so those are values of the super trend indicator lines. If the uptrend value is zero (or empty value) – that means that this trend is not active at this moment. And the same for down trend. So it might be a condition that if (uptrend!=0) Print(“buy”); - but this will be on every candle with uptrend line.You might add some other conditions for example to find the moment of changing the trend or something like that.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi everyone,
I want to use supertrend in expert advisor, but I can't understand how should I implement it.
I've downloaded supertrend indicator from earnforex, and then I use iCustom but I didn't understand how it work.
when I use indicator for a chart, it works perfectly but I can't get the information and values in EA.
How can I send Buy and Sell order in EA ?