
Indie v5 does not yet support color.ORANGE directly, but you can achieve an orange line by using the RGB-based color.rgba(255, 165, 0) in your @plot.line decorator.
indie v5 does not yet support `color.orange` directly, but you can achieve an orange line by using the rgb-based `color.rgba(255, 165, 0)` in your `@plot.line` decorator.
When developing custom indicators in Indie v5, color customization is essential—especially when plotting multiple lines (e.g., green, yellow, red, and orange) for comparative analysis. While built-in color constants like color.RED, color.BLUE, and color.GREEN are readily available, color.ORANGE is currently not implemented, despite being announced for a future release.
To work around this limitation, use the color.rgba() function with standard sRGB values for orange:
- Red:
255 - Green:
165 - Blue:
0 - Alpha (opacity): optional — defaults to
255(fully opaque) if omitted.
Here’s the corrected, production-ready version of your indicator:
# indie:lang_version = 5
from indie import indicator, plot, color
@indicator('Simple Orange Line', overlay_main_pane=True)
@plot.line(color=color.rgba(255, 165, 0))
def Main(self):
return self.close[0]
✅ This will render a vibrant, fully opaque orange line on the main price chart.
⚠️ Note: Avoid passing None or invalid RGB values (e.g., numbers outside 0–255), as they may cause runtime errors or unexpected rendering behavior. Also, remember that rgba() expects integers — floating-point values (e.g., 255.0) will raise a type error.
For multi-line indicators requiring consistent styling, consider defining colors as module-level constants for readability and maintainability:
ORANGE = color.rgba(255, 165, 0)
GREEN = color.GREEN
RED = color.RED
@plot.line(color=ORANGE)
def OrangeLine(self):
return self.sma(20)[0]
@plot.line(color=GREEN)
def GreenLine(self):
return self.sma(50)[0]
Stay tuned for official color.ORANGE support — until then, rgba(255, 165, 0) is the reliable, standards-compliant solution.










