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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    95 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    50 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    31 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    36 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    72 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X