Z-Order for Plots and PlotType.DiscontinuousLine or change color for segment of one Plot

Created at 22 Mar 2025, 04:43
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
CT

ctid4529345

Joined 12.01.2024

Z-Order for Plots and PlotType.DiscontinuousLine or change color for segment of one Plot
22 Mar 2025, 04:43


Hi there,

new to cAlgo, and I'm trying to rewrite some indicators from another platform, I have currently come across two things
1) is there a way to specify the Z-axis order for Plots?
2) I have 4 Plots, i.e. one for each color, I used PlotType.DiscontinuousLine, unfortunately in cases where adjacent values ​​are from the same plot I am not able to achieve the desired result, i.e. the red segment should not be displayed and the yellow one below it should be displayed
Is there another solution how to change the color according to the value and have only one Plot?

red = decreasing below 0
yellow = increasing below 0

Thanks


@ctid4529345