Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Creating strategy based on 'color' of an indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Creating strategy based on 'color' of an indicator

    Hello,
    I am creating an automated strategy and one of the indicators that I am using is called ColorInputSeriesSlopeChanges. The indicator file is attached. Basically it changes color to Green if the slope of an indicator is rising, red if it is falling and yellow if neautral.

    One of the things that I want incorporate in my automated strategy is if VMA(500,14) is selected as the input for this indicator and if the output color is green then go long.

    What I am struggling with is how to come up with a statement that mentions 'go long if the color of the ColorInputSeriesSlopeChanges is green'.

    Any ideas??
    Greatly appreciate any help you can provide.
    Attached Files

    #2
    pandyav, since you're just checking in the indicator if the input is rising or not I would suggest to directly check the condition then with the VMA(500, 14) in your strategy script and avoid calling in the additional indicator for this task. You could not access the bar colors created with it, so extra code would be needed to expose the 'signal' state this indicator offers hence the direct access would be more efficient.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    41 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    132 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    185 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    97 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    139 views
    0 likes
    Last Post cmoran13  
    Working...
    X