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.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by samish18, Today, 11:26 AM
    0 responses
    1 view
    0 likes
    Last Post samish18  
    Started by Trader146, 03-29-2024, 01:22 PM
    2 responses
    14 views
    0 likes
    Last Post Trader146  
    Started by tsantospinto, 04-12-2024, 07:04 PM
    7 responses
    126 views
    0 likes
    Last Post aligator  
    Started by futtrader, 04-21-2024, 01:50 AM
    5 responses
    56 views
    0 likes
    Last Post NinjaTrader_Eduardo  
    Started by PeakTry, Today, 10:49 AM
    0 responses
    2 views
    0 likes
    Last Post PeakTry
    by PeakTry
     
    Working...
    X