Download MetaTrader 5
To add comments, please log in or register
Join MQL5 Cloud Network. Improve your rating!
maindoor
120
maindoor 2014.09.10 03:00 
I want to use a custom period multiplier starting from a candlestick
that I specify rather than the current candlestick.

For simplicity lets say there are 11 bars in the current 15 min chart
with the 11th bar being the most recent bar. I want to see how a chart
looks if we combine 3 15-minute bars from the 9th bar backwards.
ie 45 min chart but starting from the 9th bar instead of the current bar.
So the chart will have the following candlesticks combined
(1,2,3) (4,5,6) (7,8,9) (10,11). The current bar in this offline
chart will progress at (10,11).

This indicator comes close:
http://www.forexfactory.com/showthread.php?t=206301
This indicator can do (1,2) (3,4,5) (6,7,8) (9,10,11)

Am I missing some configuration in this indicator ?

Does anyone know of any other indicator that can create the

chart with a period multiplier as desired ?
Ian Venner
2583
Ian Venner 2014.09.10 05:24  
In MT4 bar zero is considered the current bar. Going backwards through time is 1,2,3,4,5 etc.
maindoor
120
maindoor 2014.09.10 07:06  
SDC:
In MT4 bar zero is considered the current bar. Going backwards through time is 1,2,3,4,5 etc.

Ok, I will restate the entire question:

For simplicity lets say there are 11 bars in the current 15 min chart
with the 0th bar being the most recent bar. I want to see how a chart
looks if we combine 3 15-minute bars from the 2nd bar.
ie 45 min chart but starting from the 2nd bar instead of the current bar.
So the chart will have the following candlesticks combined
(...,11) (10,9,8) (7,6,5) (4,3,2) (1,0). The current bar in this offline
chart will progress at (1,0).

This indicator comes close:
http://www.forexfactory.com/showthread.php?t=206301
This indicator can only do (11,10,9) (8,7,6) (5,4,3) (2,1,0)
Am I missing some configuration in this indicator ?

whroeder1
13627
whroeder1 2014.09.10 14:17  
maindoor:
This indicator can only do (11,10,9) (8,7,6) (5,4,3) (2,1,0)
Am I missing some configuration in this indicator ?
You apparently want  (10,9,8)(7,6,5)(4,3,2)
You're not missing a configuration, you are missing code to adjust the starting point. Change the indicator to do what you want.
learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
/
To add comments, please log in or register