John
The issue persists because you are declaring cumSumEs1 and cumSumNq1 as local variables instead of global variables as I suggested to you in this thread
Alex
Originally posted by xoprofittaker I have added the if (getBarSatate()==BARSTATE_NEWBAR) code and the problem with the plot going straight up when plotted in a live chart continues.
I thought I had made these changes before, and I did, but I attatched the wrong file in the first post of this thread. I discovered my mistake after I made the changes and again almost attached the wrong file. Gotta do something different with my file names.
I have made the required changes to the best that I can tell, and still I get a plot that goes off the chart.
Am I overlooking something really simple or doing something stupid???
John
In your cumulative calculations you are using the incorrect operators ie += and -= instead of + and -
You may want to review the example I provided in the thread I linked in my earlier reply
Alex
Originally posted by xoprofittaker I thought I had made these changes before, and I did, but I attatched the wrong file in the first post of this thread. I discovered my mistake after I made the changes and again almost attached the wrong file. Gotta do something different with my file names.
I have made the required changes to the best that I can tell, and still I get a plot that goes off the chart.
Am I overlooking something really simple or doing something stupid???
Comment