Терминал кушает много ОЗУ. - страница 3

 
Если переехать на советник (что собсно не проблема), ситуация изменится? Я так понимаю я буду брать конкретно нулевой бар?
 

Если советник будет вызывать iCustom в тех же количествах, всё будет точно также.

Ещё раз:

Каждый вызов iCustom с оригинальным набором значений параметров эквивалентен добавлению нового экземпляра индикатора на график.

Нужно уходить от многократных вызовов iCustom, например перенести нужный расчёт в код индикатора.
 
Короче, менять конструкцию.
 
Candid:

Каждый вызов iCustom с оригинальным набором значений параметров эквивалентен добавлению нового экземпляра индикатора на график.


Откуда такая информация? Вполне может быть шо добавочная память не выделяется каждый раз, например освобождается предыдущая либо расчет в той же области памяти.
 
grell:
Если переехать на советник (что собсно не проблема), ситуация изменится? Я так понимаю я буду брать конкретно нулевой бар?

так, в качестве мысли в слух:
я когда начинал писать свой советник - тож столкнулся с такой проблемой, тока в другом ракурсе - я просто не знал как из советника вызвать индюк, т.е. iCustom() - :)

ну дык - если взялся надо проблему решить! - и по неопытности, что потом оказалось большим плюсом, просто код расчета индюка встроил в советник и пересчитываю около 100 баров тока при необходимости выставить ордер - зато и проблема перерисовкой индюка отпала сама собой 

 
Andrei01:
Откуда такая информация? Вполне может быть шо добавочная память не выделяется каждый раз, например освобождается предыдущая либо расчет в той же области памяти.
Информация из опыта. Кстати, не так уж сложно проверить.
 

Любой сомневающийся в моей порядочности может попробовать вызывать через iCustom любой индикатор с параметрами в достаточно длинном цикле со значением параметра, зависящем от счётчика цикла.

P.S. Это, кстати, из серии вредных советов :)

 
Candid:
Информация из опыта. Кстати, не так уж сложно проверить.

Шото не верится шоб это было так криворуко и топорно сделано - всеж основы корректной работы с памятью должны быть соблюдены - в метаквотах все же должны быть люди разбирающиеся хоть немного в основах програмирования. :)

 


2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,Daily: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,H4: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,H1: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,M30: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,M15: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,Daily: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,H4: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,H1: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,M30: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,M15: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,Daily: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,H4: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,H1: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,M30: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,M15: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,Daily: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,H4: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,H1: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,M30: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,M15: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,Daily: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,H4: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,H1: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,M30: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,M15: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,Daily: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,H4: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,H1: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,M30: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,M15: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,Daily: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,H4: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,H1: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,M30: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,M15: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,Daily: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,H4: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,H1: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,M30: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDSEK,M15: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,Daily: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,H4: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,H1: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,M30: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,M15: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,Daily: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,H4: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,H1: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,M30: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell CHFJPY,M15: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,Daily: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,H4: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,H1: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,M30: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,M15: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,Daily: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,H4: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,H1: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,M30: loaded successfully
2010.06.21 15:04:11 Custom indicator Supertrend_by_Grell USDX,M15: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDSEK,Daily: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDSEK,H4: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDSEK,H1: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDSEK,M30: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDSEK,M15: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDSEK,Daily: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDSEK,H4: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDSEK,H1: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDSEK,M30: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDSEK,M15: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell CHFJPY,Daily: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell CHFJPY,H4: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell CHFJPY,H1: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell CHFJPY,M30: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell CHFJPY,M15: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell CHFJPY,Daily: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell CHFJPY,H4: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell CHFJPY,H1: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell CHFJPY,M30: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell CHFJPY,M15: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDX,Daily: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDX,H4: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDX,H1: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDX,M30: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDX,M15: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDX,Daily: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDX,H4: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDX,H1: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDX,M30: loaded successfully
2010.06.21 15:03:57 Custom indicator Supertrend_by_Grell USDX,M15: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,Daily: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,H4: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,H1: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,M30: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,M15: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,Daily: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,H4: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,H1: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,M30: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,M15: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell CHFJPY,Daily: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell CHFJPY,H4: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell CHFJPY,H1: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell CHFJPY,M30: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell CHFJPY,M15: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell CHFJPY,Daily: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell CHFJPY,H4: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell CHFJPY,H1: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell CHFJPY,M30: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell CHFJPY,M15: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDX,Daily: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDX,H4: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDX,H1: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDX,M30: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDX,M15: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDX,Daily: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDX,H4: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDX,H1: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDX,M30: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDX,M15: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,Daily: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,H4: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,H1: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,M30: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,M15: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,Daily: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,H4: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,H1: loaded successfully
2010.06.21 15:03:56 Custom indicator Supertrend_by_Grell USDSEK,M30: loaded successfully

 

Вот такого плана лог, можно ли реализовать выгрузку? 

 
Блин...
Причина обращения: