Индикаторы: Geo_ShowOpenDayLevel
почему нельзя было написать код без операций со строками? примерно так:
int start(){ int i,limit,BeginTime,counted_bars; double openD1; counted_bars=IndicatorCounted(); if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; BeginTime = 0; openD1 = Open[Bars-1]; limit=Bars-counted_bars; for(i=limit; i>=0; i--){ if(TimeDay(Time[i])!=BeginTime){ BeginTime = TimeDay(Time[i]); openD1 = Open[i]; } ExtMapBuffer1[i] = openD1; } return(0); }
IgorM:
почему нельзя было написать код без операций со строками? примерно так:
int start(){ int i,limit,BeginTime,counted_bars; double openD1; counted_bars=IndicatorCounted(); if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; BeginTime = 0; openD1 = Open[Bars-1]; limit=Bars-counted_bars; for(i=limit; i>=0; i--){ if(TimeDay(Time[i])!=BeginTime){ BeginTime = TimeDay(Time[i]); openD1 = Open[i]; } ExtMapBuffer1[i] = openD1; } return(0); }
Переделывал из другого индикатора....
Как настроить этот индикатор, чтобы открытие цены дня отображалось по своему усмотрению, например по времени GMT=0
Geo_ShowOpenDayLevel:
Author: Geokom