What's new?
- New option in Violent & Normal Outside Bar settings: Direction based on Order of Occurrence (of high and low).
This option enables the script to indicate the direction of the bars based on lower timeframe data. It is the default setting for Violent Outside Bars.
- Channeling!
Both new features utilize the new timeframe system. The user must specify the settings for Main, Lower, 1st to 3rd, Higher Timeframes, and the TF Switch Factor for the script to work properly. The Main TF is the timeframe on which the Motion Line is based. It is usually set to the chart timeframe. The 1st to 3rd TFs are the NRT timeframes.
Since channeling is based on the next higher timeframe, the Higher TF is necessary for channeling on the 3rd TF. To maintain operational consistency, the script selects timeframes based on the TF Switch Factor as follows: channeling will be based on the 1st TF if the Main TF (in seconds) is smaller than the 1st TF (in seconds) divided by the TF Switch Factor. Otherwise, the script will check if the Main TF (in seconds) is smaller than the 2nd TF (in seconds) divided by the TF Switch Factor. This process will continue up to the highest timeframe (the Higher TF). If the conditions are not met, a runtime error will occur.
Similarly, to fetch lower timeframe data for the Main TF, the script starts from the highest timeframe and checks if the Main Timeframe is greater than the timeframe multiplied by the TF Switch Factor. If this condition is met, that timeframe is used as the lower timeframe to fetch bar data. If the Main TF is smaller than the Lower TF, a runtime error will occur, as will happen when the indicator cannot fetch the desired data. In the latter, changing the Lower TF (usually to a higher timeframe) may fix the error. If this does not help, it is possible to use the same timeframe for both Lower TF and Main TF. In this case, the indicator estimates the order based on the relationship between close price and bar range on a logarithmic scale.