Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Macdbb strategy

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

    Macdbb strategy

    Hello everyOne,


    I'm using Strategy Builder to develop my strategy,
    One of my signals is the MACDBBS indicator, I need to set that when the price closes above 0.3 make a long entry for example, and when it closes below -0.3 make a short entry.

    how i can configure this?

    Thanks

    #2
    Hello FernandoParra,

    Thanks for your post.

    You would need to make two conditions in the Strategy Builder that check if (Strategy>Current Market Position == Strategy>Market Position>Flat) AND that indicator Plot Value is greater than a Numeric value of 0.3 to call EnterLong() and another condition to check the opposite and EnterShort().

    More information on using the Strategy Builder can be referenced here - https://www.youtube.com/watch?v=HCyt90GAs9k

    Market Position Comparisons - https://ninjatrader.com/support/help...ionComparisons

    Referencing indicator plots - https://ninjatrader.com/support/help...plotIndicators

    Please let us know if you have any additional questions.
    JimNinjaTrader Customer Service

    Comment


      #3
      Jim Thank for your time,
      I was able to do what I needed.
      Now I have another doubt, I do not know if you can help me,
      the other indicator is a keltner channel, I want the other condition for the strategy to be that if the price approaches at least 2 ticks above the midband of the keltner it generates the buy signal in almost a long.

      There would be two conditions in this strategy

      FernandoP

      Comment


        #4
        Hello FernandoParra,

        Price comparisons can also be made in the Strategy Builder.

        You could create a condition in that references the Keltner channel plot and if the current price is greater or equal to the Keltner Channel plot with a Tick Offset.

        Price data comparisons - https://ninjatrader.com/support/help...ataComparisons

        Using Offsets - https://ninjatrader.com/support/help...setAnItemValue

        If this does not help resolve your inquiry could you describe what conditions you have tried specifically and results you have gotten?

        I look forward to being of further assistance.
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by RookieTrader, Today, 09:37 AM
        3 responses
        15 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by kulwinder73, Today, 10:31 AM
        0 responses
        5 views
        0 likes
        Last Post kulwinder73  
        Started by terofs, Yesterday, 04:18 PM
        1 response
        23 views
        0 likes
        Last Post terofs
        by terofs
         
        Started by CommonWhale, Today, 09:55 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by Gerik, Today, 09:40 AM
        2 responses
        7 views
        0 likes
        Last Post Gerik
        by Gerik
         
        Working...
        X