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
I add this line in the code: (just before runmedian(limit);)
if(limit<period)limit=period;
because the indicator did not redraw on a new candle (as well as the current one)
with this I force the indicator recalculate the lastest candles and fill the working buffer, else the current and new candles will not have enough info to evaluate the median value.
for (cursor=limit;cursor>=0;cursor--) {
->
for (cursor=MathMax(limit,period);cursor>=0;cursor--) {I add this line in the code: (just before runmedian(limit);)
if(limit<period)limit=period;
because the indicator did not redraw on a new candle (as well as the current one)
with this I force the indicator recalculate the lastest candles and fill the working buffer, else the current and new candles will not have enough info to evaluate the median value.
In metatrader 4 the median stops drawing, refresh doesn't work. The only way to let it redraw is to open the indicators list and adjust the median and press ok. Could there be an update please?
Later.....Oh sorry, I copied the text now and it worked, thank you. But the text isn't in the download yet.
Я все же не могу получить значения индикатора.
Print(iCustom(NULL,0,"RunMedian",RMA_period,"",0,0));
Возвращает: 2147483647.0
///----
I still can't get the values indicator.
returns: 2147483647.0