I want to write Super Trend Indicator
CODE:
Please log in to see this code.
I have a problem
How can I change the color supertrend line, when supertrend will be higher or lower prices?
Size:
Color:
Call
PlotSeries first, then call
SetSeriesBarColor to set color for individual bars of your
superTrend series.
CODE:
Please log in to see this code.
Size:
Color:
Thank you Eugene.
I made a small change in the code, and got a big problem. =)
I use KAMA to smooth superTrend.
This code works as expected.
CODE:
Please log in to see this code.
but when I add another time interval, I can not change the color
CODE:
Please log in to see this code.
Size:
Color:
It's not possible to plot anything in a scale that's different than the underlying chart scale.
In other words, you have to RestoreScale() before you do cosmetic chart operations. See the WealthScript Programming Guide or the Wiki for examples of multi-timeframe operations.
Size:
Color: