Is there a way to plot indicators below price candles?
For example, when a moving average line cross a candle, the candle is painted below the MA line and not above, as I would like. Other platforms have options to paint indicators below price. Is this possible with PRT?
I must be misunderstanding your question … see attached, when any MA crosses below price then price appears above the MA?
Sorry for being unclear… what I mean is that I would like the price candles to be painted above all indicators, so that they don’t get partially covered by indicators… the price candles should cover the indicators. This way the charts remains enough clear-looking, even if there are many indicators on it.
A programmer would describe this by saying that price candles should have an higher z-index than indicators.
JSParticipant
Senior
Hi,
Do you mean something like that…?
JSParticipant
Senior
“A programmer would describe this by saying that price candles should have an higher z-index than indicators”
That’s right, the “z-index” is called here: “alpha” value for transparency purpose (alpha value varies from 0 to 255)
When you set the alpha values for the indicator lower than the alpha values of the candles, the indicator hides behind the candles…
MA20=Average[20](Close)
If Close>Open then
DRAWCANDLE(open, high, low, close) Coloured(0,255,0,255)
Else
DRAWCANDLE(open, high, low, close) Coloured(255,0,0,255)
EndIf
Return MA20 Coloured(0,0,255,200) Style(Line,5)