You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
datetime I use. The only change that i have made to the chart is under Tools-Options->Max Bars on chart was change from the default setting to 5000. Can anyone help me
understand this? Thanks
extern string StartYear = "2005";
extern string StartMonth = "4";
extern string NumberOfMmonths = "1";
int init()
{
return(0);
}
int deinit()
{
return(0);
}
int start()
{
int counted_bars=IndicatorCounted();
string Start = StringConcatenate(StartYear,".",StartMonth,".", "01," 00:00");
Print(Start);
datetime start_time = StrToTime(Start);
int shift=iBarShift(NULL,PERIOD_H1,start_time,false);
Print("shift of bar with open time ",TimeToStr(start_time)," is ",shift);
return(0);
}