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 algospoke, Yesterday, 06:40 PM
        2 responses
        19 views
        0 likes
        Last Post algospoke  
        Started by ghoul, Today, 06:02 PM
        3 responses
        14 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        45 views
        0 likes
        Last Post jeronymite  
        Started by Barry Milan, Yesterday, 10:35 PM
        7 responses
        20 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by AttiM, 02-14-2024, 05:20 PM
        10 responses
        180 views
        0 likes
        Last Post jeronymite  
        Working...
        X