Can anyone advise how in the text of the indicator you can put restrictions on use in different timeframes. When loading the indicator it is in the properties, but how to limit it programmatically????
Vladimir Pavlov: Can you advise how to place restrictions on the use of different timeframes in the indicator text? When loading the indicator it is in the properties, but how to limit this programmatically????
if(InpTimeframeWork!=Period())
{
// Здесь действия, которые нужно выполнить если период графике не совпадает с заданным в настройках
}
If it is checked in OnInit(), you can output a message about the chart mismatch and either return INIT_FAILED; or tune the terminal chart to the desired one: ChartSetSymbolPeriod(0,NULL,InpTimeframeWork);
Good afternoon! Please help me with the problem of activating the copier. I bought a copier on the market a long time ago for 25$. I would like to use it on VPS, but it cannot be loaded into MT4 from Market for some reason. Offers only to buy. I still have 7 free activations. I can't figure out what's wrong, can you advise me what i should do to activate copier https://www.mql5.com/ru/market/product/4319 ?
If it is checked in OnInit(), you can output a message about chart mismatch and either return INIT_FAILED; or adjust the terminal chart to the required one: ChartSetSymbolPeriod(0,NULL,InpTimeframeWork);
I know this variant, but I don't know how to use properties. How to configure in the program tab "Display" not to let in unnecessary levels.
Задавайте вопросы по техническому анализу, обсуждайте торговые системы и улучшайте свои навыки программирования торговых стратегий на языке MQL5. Общайтесь и обменивайтесь опытом на форуме с трейдерами всего мира и помогайте ответами новичкам — наше сообщество развивается вместе с вами. Как эффективно продвигать свой продукт в Маркете...
//+----------------------------------------------------------------------------+//| Автор : Ким Игорь В. aka KimIV, http://www.kimiv.ru |//+----------------------------------------------------------------------------+//| Версия : 07.10.2006 |//| Описание : Возвращает экстремум ЗигЗага по его номеру. |//+----------------------------------------------------------------------------+//| Параметры: |//| sy - наименование инструмента (NULL или "" - текущий символ) |//| tf - таймфрейм ( 0 - текущий ТФ) |//| ne - номер экстремума ( 0 - последний) |//| dp - ExtDepth |//| dv - ExtDeviation |//| bs - ExtBackstep |//+----------------------------------------------------------------------------+double GetExtremumZZPrice(string sy="", int tf=0, int ne=0, int dp=12, int dv=5, int bs=3) {
if (sy=="" || sy=="0") sy=Symbol();
double zz;
int i, k=iBars(sy, tf), ke=0;
for (i=0; i<k; i++) {
zz=iCustom(sy, tf, "ZigZag", dp, dv, bs, 0, i);
if (zz!=0) {
ke++;
if (ke>ne) return(zz);
}
}
Print("GetExtremumZZPrice(): Экстремум ЗигЗага номер ",ne," не найден");
return(0);
}
Can you advise how to place restrictions on the use of different timeframes in the indicator text? When loading the indicator it is in the properties, but how to limit this programmatically????
If it is checked in OnInit(), you can output a message about the chart mismatch and either return INIT_FAILED; or tune the terminal chart to the desired one: ChartSetSymbolPeriod(0,NULL,InpTimeframeWork);
Good afternoon!
Please help me with the problem of activating the copier. I bought a copier on the market a long time ago for 25$. I would like to use it on VPS, but it cannot be loaded into MT4 from Market for some reason. Offers only to buy. I still have 7 free activations. I can't figure out what's wrong, can you advise me what i should do to activate copier https://www.mql5.com/ru/market/product/4319 ?
Thank you in advance.
If it is checked in OnInit(), you can output a message about chart mismatch and either return INIT_FAILED; or adjust the terminal chart to the required one: ChartSetSymbolPeriod(0,NULL,InpTimeframeWork);
I know this variant, but I don't know how to use properties. How to configure in the program tab "Display" not to let in unnecessary levels.
}
How do I get the value of the current extremum?
How to get the value of the current extremum?
Insert the code correctly:
}
How do I get the value of the current extremum?
how many attachments if allowed?
how many attachments are allowed?
Until you get tired of writing them