Disliked{quote} It's not a bug. Indicator forces the terminal to load the needed data before starting to make calculations to avoid "Zero Divide Error". MovingAverageMultiplier = Calculation Depth For D1 Time Frame: MovingAverageMultiplier = "1, 2, 3, 4, 5, 10, 15, 20"; means "calculate the momentum by looking the price action @ time frame " D1 * 1 = 1 Day , D1 * 2 = 2 Days , D1 *3 = 3 Days , ....., D1 * 5 = 5 Days = 1 Week, D1 * 10 = 2 Weeks, D1 * 15 = 3 Weeks, D1 * 20 = 4 Weeks = 1 Month Previous CMSM versions and CCFP_Diff use D1 , W1 and MN1 time frames,...Ignored
Good to see you back. If possible you may want to consider creating the calculations without the need to open the charts. Depending on how you are calling or attempting to get the data from each chart it may be just a question of using iClose, iOpen, etc etc. To get the required data over some iTime or iBarShift.
You can also probably improve the spread of calculation since you will be able to tell the indicator to just look at one bar... after you have collected that first batch of bars of data.
I did something similar with a 3Line break and renko offline chart setup. Instead of opening 2 charts (one with the indicator and another with the resulting candles). It was all done via code. One function that loops thru all teh regular candles and stuffes the results into a 4 dimensional array (OHLC). And after that I just calculate data for one bar as new candles open. Real fast stuff. And of course I can use the array to apply it to the regular stuff like RSI, MAs etc etc. As you can imagine after all that is setup you just place it in the EA and read the array index that you are interested in to meet any rules.
No problems dude. Your effort is appreciated and hope you stay with us for a long time. After all in the future you will be a legend of this thread LOL..
Peace
Jess
Our AWESOME IMAGINATION is the true holy grail!
4