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

Strategy Builder Condition - Daily Net Percent

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

    Strategy Builder Condition - Daily Net Percent

    Hi,

    I have a intra day moving average strategy built via Strategy Builder. I would like to add a condition of the primary instrument for long only trades if the Daily Net Percent change is greater than 1.5 % and short only if the Daily Net Percent change is less than -1.5 %.

    Sounds simple but my methods are getting erroneous results. Any suggestion on how to add this condtion via Strategy Builder?

    Thanks,

    Bob

    #2
    Hello bob77713,

    Thank you for your post.

    This would require creating a custom indicator that sets a plot value for the daily net percent value. You could then create a strategy using the Strategy Builder that compares the custom indicator plot value to a percentage and enters a position. Please see the attached example indicator and strategy that demonstrates how this could be accomplished.

    Let us know if we may assist further.
    Attached Files
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Perfect. Thanks Brandon, I appreciate your help.

      Bob

      Comment


        #4
        Hi Brandon,

        I tried several different time frames and the strategy you provided is not generating any trades. I also tried to add the indicator to my strategy with the same results.

        Any advice on how to generate trades using this indicator?

        Thanks,

        Bob

        Comment


          #5
          Hello bob77713,

          Thank you for your note.

          I have attached a video below demonstrating the EnterBasedOnNetChange example script. As you can see in the video, the strategy will enter a long position once the NetChangeDisplayMod indicator reaches a value greater than 1.5.



          Please let us know if we may assist further.
          Brandon H.NinjaTrader Customer Service

          Comment


            #6
            Hi Brandon,

            Ah, I understand now. There are no historical trades, only live trades.

            Thanks,

            Bob

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by PhillT, Today, 02:16 PM
            2 responses
            3 views
            0 likes
            Last Post PhillT
            by PhillT
             
            Started by Kaledus, Today, 01:29 PM
            3 responses
            9 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by frankthearm, Yesterday, 09:08 AM
            14 responses
            47 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by gentlebenthebear, Today, 01:30 AM
            2 responses
            14 views
            0 likes
            Last Post gentlebenthebear  
            Started by PaulMohn, Today, 12:36 PM
            2 responses
            17 views
            0 likes
            Last Post PaulMohn  
            Working...
            X