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 CarlTrading, Yesterday, 09:41 PM
    1 response
    27 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, Today, 02:41 AM
    0 responses
    10 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, Yesterday, 11:44 PM
    0 responses
    21 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    37 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    34 views
    0 likes
    Last Post CarlTrading  
    Working...
    X