baz:
в этой строке одна открывающая скобка лишняя
UPBuffer1[i]=((Volume[i]/(Volume[i]/P))/100000;
baz:
вы скобки забыли закрыть //+------------------------------------------------------------------+ //| d.mq4 | //| Copyright © 2008, Baz | //| e-mail: baz_fx@ukr.net | //+------------------------------------------------------------------+ #property copyright "Copyright © 2008, Baz" #property link "e-mail: baz_fx@ukr.net" #property indicator_separate_window #property indicator_buffers 2 #property indicator_color1 Red #property indicator_color2 Aqua //---- input parameters extern int DIPeriod=13; //---- buffers double UPBuffer1[]; double DownBuffer2[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { string short_name; //---- indicators SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,UPBuffer1); SetIndexStyle(1,DRAW_LINE); SetIndexBuffer(1,DownBuffer2); //---- name for DataWindow and indicator subwindow label short_name="DI("+DIPeriod+")"; IndicatorShortName(short_name); SetIndexLabel(0,short_name); //---- SetIndexDrawBegin(0,DIPeriod); //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int counted_bars=IndicatorCounted(); int limit; //---- limit=Bars-counted_bars; for(int i=0;i<limit;i++) { // скорее всего забыли скобки double P; double ATR; ATR=iATR(NULL, 0, DIPeriod, i); P=(3+Close[i])/ATR; UPBuffer1[i]=((Volume[i]/(Volume[i]/P)))/100000; //---вероятно тут ошибка была синтаксис обчный DownBuffer2[i]=((Volume[i]/P)/Volume[i])/100000; } // эту тоже //---- return(0); } //+------------------------------------------------------------------+
Учусь!!! Полный чайник в програмировании! Что я сделал не так? - выдает ошибку.
'\end_of_program' - unbalanced left parenthesis C:\Program Files\X-Trader 4 UA\experts\indicators\d.mq4 (67, 1)
+ вероятно забыли вкючить в блок { я добавил }
не смотрел даже что это и как работает
не забывайте считать круглые скобки в выражениях, можно было добавть но праильней было убрать как сделал xeon
Большое Спасибо! :))
Вы упускаете торговые возможности:
- Бесплатные приложения для трейдинга
- 8 000+ сигналов для копирования
- Экономические новости для анализа финансовых рынков
Регистрация
Вход
Вы принимаете политику сайта и условия использования
Если у вас нет учетной записи, зарегистрируйтесь
Учусь!!! Полный чайник в програмировании! Что я сделал не так? - выдает ошибку.
'\end_of_program' - unbalanced left parenthesis C:\Program Files\X-Trader 4 UA\experts\indicators\d.mq4 (67, 1)