I want to plot a number of moving averages but as a collective 'ribbon' rather than individually. Couldn't find a built-in indicator for that.
Qs:
1) Does it exist but perhaps under a different name?
2) If not, would you mind creating one? (e.g. it can be a user-specified color and may be allowed to take up to 5 different Moving Averages for input - such as EMA, SMA of different lengths etc.)?
Size:
Color:
There is no such thing as collective ribbon because an indicator can only plot one DataSeries.
Size:
Color:
Size:
Color:
I should have called it Moving Averages Ribbon (plural) lol.
------------
Thx for referencing the other post...I got the code but it still plots each MA individually. Is it possible to fill in the gaps between the MAs so the (collective) plot visually appears like a ribbon?
Size:
Color:
QUOTE:
Is it possible to fill in the gaps between the MAs so the (collective) plot visually appears like a ribbon?
Piece of cake:
CODE:
Please log in to see this code.
Size:
Color:
Awesome, thanks much!
P.S. Please consider rolling it into an indicator (Community Indicators) so it becomes as easy as drag-&-drop with user inputs for type (SMA, EMA, etc) and period of the MAs, color, and transparency!
Size:
Color:
Glad you like it!
At the risk of repeating (see post #2), an indicator can only plot one DataSeries. What you're proposing is impossible to reach given the current design.
Size:
Color:
Hi Eugene,
The MA periods don't display in the chart window b/c the color is set to Transparent. Any suggestion how to show the periods - perhaps even as a separate string?
Size:
Color:
Sam, a workaround could be as simple as drawing the string with DrawLabel or DrawText on the PricePane.
Size:
Color:
That worked like a charm, thanks :)
Size:
Color: