Подскажите, столкнулся с проблемой вложенного цикла, на Build 221 он не работает.

 

Помогите разобраться.


, и если присваиваю постоянное значение тоже не отображает на графике:

Price_My[i]=10; // не работает

Price_My[i]=High[i]; // работает


ниже полный текст примера.


#property copyright "Copyright © 2004, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net/"
//---- indicator settings
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 Black
#property indicator_color2 Red
//---- indicator parameters

//---- indicator buffers
double Price_Up_Down[];
double Price_Nakoplenie[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{

//---- drawing settings
SetIndexStyle(0,DRAW_LINE,2,2);
SetIndexStyle(1,DRAW_LINE);
//---- indicator buffers mapping
SetIndexBuffer(0,Price_Up_Down);
SetIndexBuffer(1,Price_Nakoplenie);

//---- initialization done
return(0);

}


int start()
{

int limit;
int counted_bars=IndicatorCounted();
//---- last counted bar will be recounted
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;

for(int i=limit-5; i>=0; i--)

{

Price_Up_Down[i]=10; // НЕ РАБОТАЕТ не отображает прямую на графике.

Price_Nakoplenie[i]=High[i]; // Работает!!!

print("main");



}


return(0);
}
//+------------------------------------------------------------------+

 

int y=1; y>=5; y++


Значение y < 5

 
Reshetov >>:

int y=1; y>=5; y++


Значение y < 5

Спасибо огромное, так я давно не тупил!!! :))) Старею. Уже неделю мучаюсь. :))) Ну я и идиот.