by prtrader » Fri Oct 21, 2011 11:37 am
This indicator suits what I am looking for. I was looking for an oscillator to draw a histogram based on the difference between two MAs using the Averages.lua file. The only thing that I would like to see is the ability to add another color to the histogram. For example if the value is above 0, but less than the previous bar to have a different color, the same if the opposite happens for bars below 0. So to have 4 colors. What would I need to add to the code to get this? Im new to this language, I am more familiar with C++.