Hi. I am attempting to update the MA Envelope submitted by Rollins (Links and Downloads Manager - NinjaTrader Support Forum (). I plan to release the update after it's done.
I would like to make three modifications:
Addition of color to the MA bands (done)
Make the inside band's color change with slope of MA (partially done) UPDATE -- DONE
Reset the bands each day (unsolved)UPDATE -- WORKABLE SOLUTION IN PLACE
I wonder if I can't post my questions so I can complete this indicator...
First of all, I want to fill the inside of my band with transparent color. I managed to do this quite easily by using the code from PrTester's Keltner Indicator (Links and Downloads Manager - NinjaTrader Support Forum ().
Next I wanted that color to change dynamically based on the slope of MA. I used SMA_Color found here on the forum, but it doesn't quite work. The ENTIRE visible band changes as the MA slopes up and down. I want the color to be historical color like the SMA_Color plot itself. I'm sure I'm missing only some small part.
Finally I am hoping I can reset the SMA band at the open of a new session. I do not display afterhours trading, and I do not want to consider yesterday's close in the SMA. I want to display nothing until enough bars are present to draw a proper SMA of today's trading. This is actually default behavior if I open only 1 day, and I've found SMA50 begins to draw after about 20 or so bars on my 1000 Volume chart for /ES. I want to preserve this same behavior if multiple days are open in the 1000 volume chart. As you can imagine, a large gap can cause my 50MA to be skewed until a very long time into the session.