♥ 0 |
Pete, In reference to my question ” How to stop indicators from displaying in relation to a linear regression channels (LRC) direction”. I’ve been giving this some thought and may have an idea but still don’t know how to implement it. The attached PDf shows the unfinished Fibonacci linear regression channel I came up with and stock indicators from TOS-Bollinger band crossover, parabolic SAR, and Williams fractals. From another of your posts, I colored the paraSAR red and green. Would there be a way to insert 2 clouds, a red from the LRC midline down and green from the LRC midline up? that way, the cloud color would minimize the color of the indicators that didn’t apply, basically noise. My signals for taking a short position would be red and in the upper portion of the channel where the green cloud would help minimize the noise of any green colored indicators. Would there be a way to adjust the opacity of the clouds? I wouldn’t necessarily want it to interfere with the color of the bars. I don’t think this is an as elegant of solution as not having any green indicators appear above the LRC mid line and no reds below the LRC midline but may highlight any buy/sell signals.
Marked as spam
|
Private answer
Without your code I cannot even guess at a solution. If you do not want to publish your code in the public venue then you have two options:
Marked as spam
|
Please log in to post questions.
No, it is not simpler. It is in fact not possible. Yes you can add shading to the chart between those levels. However there is no way to adjust the opacity. It is much simpler to just hide the long singles on one side of the midline and hide the short signals on the other side. Which is exactly what I provided in my solution.
Nevertheless, here is how you would add green and red shading to your indicator:
AddCloud(upperLRm1, middleLR, Color.GREEN, Color.GRAY);
AddCloud(middleLR, lowerLRm1, Color.RED, Color.GRAY);