Znaeshie lydi pomogite razobratza. Y menia indicator ne obnaviatza sam. Prihodidza delat "right click"->"Obnovlenie"
- Script risyushiu strelki vveh ili vniz tam gde USDCHF, GBPUSD i EURUSD odnovremenno probivaut svoi diapozoni v opredellennoe kolichestvo barov
- Ложная тревога McAfee и Avast на metalang.exe
- Kak podkliuchit' k MetaStock
мне кажется, нужно вместо
i=5000-counted_bars+1;
вставить
i=Bars-counted_bars+1;
i=5000-counted_bars+1;
вставить
i=Bars-counted_bars+1;
мне кажется, нужно вместо
i=5000-counted_bars+1;
вставить
i=Bars-counted_bars+1;
i=5000-counted_bars+1;
вставить
i=Bars-counted_bars+1;
Me nepomoglo.
Ydalil indicatorcounted() funkzyu voopshe, teper obnavlietza. No zato ondicator peririsovivaetza na kazdom tike chto zamedliaet sistemy :(
if (counted_bars>0) i=5000-counted_bars+1; //i=(5000-counted_bars)+1; i--;
этот
i--;
надо было удалить :)
if (counted_bars>0) i=5000-counted_bars+1; //i=(5000-counted_bars)+1; i--;
этот
i--;
надо было удалить :)
Probival, Indicator risueza no ne obnavliaetza.
При нормальной работе индикатора при первом вызове IndicatorCounted() возвращает 0. После первого пересчета возвращает число на 1 меньше Bars. При появлении нового бара разница составляет 2, после пересчета опять 1. Исходя из этого, все, что советовали выше, должно выглядеть так:
... if (counted_bars==0) i=5000; if (counted_bars>0) i=Bars-1-counted_bars; while(i>=0) ...
Отсутствие каких-либо используемых символов в MarketWatch наверное должно привести к искажению результатов, а не к останову обновления.
Странно, посылки все верные, а выводы нет.
Почему?
A I vot kak sdelal:
if (counted_bars==0) i=5000; if (counted_bars>0) i=2; while(i>=0)
Risyet vsy istoriu (5000 barov) i obnavlietza!
Spasibo Roman i Rosh.
vasilyt, вечером выключишь комп, утром включишь. Индикатор прорисуется, потом докачается история, потом просчитаются 2 последних бара. Дыра в индикаторе должна получиться.
Вы упускаете торговые возможности:
- Бесплатные приложения для трейдинга
- 8 000+ сигналов для копирования
- Экономические новости для анализа финансовых рынков
Регистрация
Вход
Вы принимаете политику сайта и условия использования
Если у вас нет учетной записи, зарегистрируйтесь