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 Javierw.ok, Today, 04:12 PM
        0 responses
        2 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Started by alifarahani, Today, 09:40 AM
        6 responses
        40 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        18 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by Kaledus, Today, 01:29 PM
        5 responses
        15 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X