attach this indicator to any period, and it'll generate the desired period.
benefits of this indicator:
-you can have other timeframes (ex. 2H, 12H, 2Days, 10min, 24min,1.5H you name it).
-you can view multiple timeframes in one window (ex. attach it to 1H, set Per=4, attach it again and set Per=24, and now you have 1H, 4H, and Daily bars on one window)
-you can see ,for example, 4H starts at 00.00(normal), 4H starts at 01.00, and 4H starts at 02.00 (you can even have 4H bar starts at 00.23)
Things to solve:
-still having bugs if you attach to daily chart or higher.
-the new bar does not start until the last original bar in the sequel is started. (for example, if you attach it to 1H chart, set Per=4 (to have 4H chart), the last 4H chart does not form till bar #4 is started).
-anything you suggest.
Parameters:
color BarDownColor: Color of bearish bars.
color BarUpColor: color of bullish bars.
int Per: This is the main parameter. the number here is the number of bars that consist the new bar (ex. on 1H chart Per=4, you'll have 4H bars. On 5min chart, Per=4, you'll have 20min bars).
int VerticalShift: the new bars will be over the current bars, this parameter is to shit the new bars up or down away from the current pars.
bool ShowStdOnly: any numbers of bars start at the beginning of the day and ends at the end of the day is considered standards (ex, on 1H chart, 2H,3H,4H,6H,8H,12H,and 24H are all standards). If you set this to false or you used non-standards, you will see bars that start at all original bars. For example, in 1H chart you set Per = 5 (to have 5H chart), your 5H bars values are 00.00-04.00, 01.00-05.00, 02.00-06.00, 03.00-07.00, and so on.
benefits of this indicator:
-you can have other timeframes (ex. 2H, 12H, 2Days, 10min, 24min,1.5H you name it).
-you can view multiple timeframes in one window (ex. attach it to 1H, set Per=4, attach it again and set Per=24, and now you have 1H, 4H, and Daily bars on one window)
-you can see ,for example, 4H starts at 00.00(normal), 4H starts at 01.00, and 4H starts at 02.00 (you can even have 4H bar starts at 00.23)
Things to solve:
-still having bugs if you attach to daily chart or higher.
-the new bar does not start until the last original bar in the sequel is started. (for example, if you attach it to 1H chart, set Per=4 (to have 4H chart), the last 4H chart does not form till bar #4 is started).
-anything you suggest.
Parameters:
color BarDownColor: Color of bearish bars.
color BarUpColor: color of bullish bars.
int Per: This is the main parameter. the number here is the number of bars that consist the new bar (ex. on 1H chart Per=4, you'll have 4H bars. On 5min chart, Per=4, you'll have 20min bars).
int VerticalShift: the new bars will be over the current bars, this parameter is to shit the new bars up or down away from the current pars.
bool ShowStdOnly: any numbers of bars start at the beginning of the day and ends at the end of the day is considered standards (ex, on 1H chart, 2H,3H,4H,6H,8H,12H,and 24H are all standards). If you set this to false or you used non-standards, you will see bars that start at all original bars. For example, in 1H chart you set Per = 5 (to have 5H chart), your 5H bars values are 00.00-04.00, 01.00-05.00, 02.00-06.00, 03.00-07.00, and so on.
Attached File(s)
PeriodGen.ex4
5 KB
|
438 downloads