1. Is it generally considered to be a better coding policy to split individual pieces of indicator based coding into separate indicators....or combine them into one?
Example: (two indicators running on a chart)
- Indicator1 plots a 5min moving average on a tick chart
- Indicator2 performs calculations on previous 5min candles (MAX High/Low and
maximum bar size...and also plots this information on a tick chart.
Would it generally be considered better coding form to merge the two 5min based indicators into one indicator...making all 5min calculations in one piece of code....or leaving them separated into two individual indicators?
-------------------------------------------------------------------------------------
2. Is this answer above the same for indicator code that plots on the same time frame as the chart....Ex: Tick chart moving average and a tick chart calculation of previous bar sizes /High/Low.
----------------------------------------------------------------------------------------
3. Does the combination of chart time frame and indicator time frame (assuming they are different) have any impact on the answers to #1 and #2 ?
Ex: Tick charts with minute based indicators.....versus minute charts with tick based indicators....
Thanks......
Comment