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
Make a check, if bar is negative, then add time to zero bar. You should write your own function MyTime(int bar), if bar is less than zero, then add time to the zero bar, otherwise use Time[].
Again, it will count forward calendar days instead of bars from zero bar.
I would like to loop through the days in order of the month and the number of days of the month
For example, if the first point is on the 18th and the second point is on the 05th, then count days in order from 18 to 05 and if after 24 goes 27, then memorize the value of 2, etc.
I think this is the only way to do it
intBars(
stringsymbol_name,// symbol namesymbol name
ENUM_TIMEFRAMEStimeframe,// period
datetimestart_time,// from which date
datetimestop_time//to which date
);