When converting from PineScript to HaasScript, it’s pretty common to find colors changing on some condition.
This function imitates TV’s variable color plotting (including the weird color extension backward when a new colored datapoint comes in).
Also has built-in PlotCircle and PlotBars capability as an optional parameter.
PlotHistogram may require some tinkering.
Accepts LineOptions() with a variable color inside.
Best when used inside an OptimizedForInterval function, which will significantly speed up the calculation time.
Mandala Trading Competition Promotion Type: contest Expires: June 9, 2023Trading volume competition, win up to $10,000 USDT and bounties.
Earn Up to 200 BMEX Tokens Promotion Type: contest Expires: March 31, 202315 BMEX @ $20,000, 25 BMEX @ $50,000, 50 [email protected] $200,000, 100 BMEX @ $400,000, 200 BMEX @ $600,000 in monthly derivatives volume