Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

cannot figure out the condition to set on this indicator

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

    cannot figure out the condition to set on this indicator

    Hi All,
    What will be condition to set in the strategy for buy = when the indicator turns blue and sell = when it turns red. I could not figure out. Can somone please help.

    Thanks in advance
    Bill
    Attached Files

    #2
    Billsingh,

    You would want to test for how the indicator is determining the changes and use the same condition checking for your strategy.

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Cal View Post
      Billsingh,

      You would want to test for how the indicator is determining the changes and use the same condition checking for your strategy.

      Let me know if I can be of further assistance.
      That is what I want to do. but cannot figure out. I like to test the same in the strategy. Can you guys help ???

      Comment


        #4
        Hello billsingh,

        Thank you for your response.

        The conditions for the Blue color are the following:
        Code:
        if (main[0] > main[1])
        ....
        else if (main[0] == main[0] && Median[0] > main[0])
        So we need to know what the DataSeries main is:
        Code:
        main.Set(((ChandeEMA-VI)*main[i+1]+VI*Close[i])/ChandeEMA);
        As you can see the main DataSeries has a bit to it, so now you need to continue piecing together the main DataSeries from the ADXVMA... indicator.

        It is likely you could just write the same lines of code over that work for calculating the values.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        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
        10 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        15 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        14 views
        0 likes
        Last Post strategist007  
        Working...
        X