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 pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    11 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    16 views
    0 likes
    Last Post AaronKoRn  
    Working...
    X