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

??? Paint the line when the slope changes... Strategy Bulider NT8

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

    ??? Paint the line when the slope changes... Strategy Bulider NT8

    Hello,

    I have posted the formula that detects the slope change in a line using the Momentum indicator.. It works great.. Except for one thing
    But it won't paint a Line.. Or an an Up Arrow... Why..??

    I can get it to paint a region nicely though.. But when I try to paint a line it won't...

    Momentum(LinReg(Close,Convert.Toint32(LinRblue)), 1)[0]>0
    Draw.Line(this,@"SlopeColorLine_1"_false, 0, 0, 0, Brushless.Blue, DashStyleHelper.Solid,2);

    Michael


    #2
    Hello Michael,

    Thanks for your post.

    In the Draw.Line() method the parameters appear to be incorrect, you would need a start bars ago, a start price, an end bar ago and an end price, all I see are 3 zeros.
    Reference: https://ninjatrader.com/support/help...?draw_line.htm
    Using the example in the help guide: Draw.Line(this, "tag1", false, 10, 1000, 0, 1001, Brushes.LimeGreen, DashStyleHelper.Dot, 2); 10 is the StartBarsAgo, 1000 is the StartY (price), 0 is the endBarsAgo. and 1001 is the EndY(Price)

    In the case of an up arrow, likely you are not specifying the price to place the arrow at.
    Reference: https://ninjatrader.com/support/help...aw_arrowup.htm
    Using the example in the help guide: Draw.ArrowUp(this, "tag1", true, 0, Low[0] - TickSize, Brushes.Red); 0 is the Barsago, Low[0]-Ticksize is the Y value (Price) to place the up arrow at (the low of the current bar minus 1 tick.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Paul,

      I'm sorry for my lack of knowledge on the subject. . It's all gibberish to me... I'm a bit foggy on what it is I'm supposed to input.. I'd do much better with an example screen shot from the Actions window within Strategy Builder..

      Michael

      Comment


        #4
        Hello Mykro,

        Thanks for your reply.

        Perhaps this short video on adding arrows and changing tag names will help: https://Paul-ninjaTrader.tinytake.co...A4M184NTkwOTg3
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Paul,

          Have you more videos to watch regarding Strategy Builder in Ninjatrader 8.. It's all good stuff to learn...

          Thanks

          Michael

          Comment


            #6
            Hello Michael,

            Thanks for your reply.

            Here is a link to one of webinars on the strategy builder: https://www.youtube.com/watch?v=HCyt...We0Nf&index=11

            Strategy Builder, two asynchronous entry conditions: https://paul-ninjatrader.tinytake.co...OF8xMDYwMjE0OA

            Debugging with Print statements: https://paul-ninjatrader.tinytake.co...NV8xMDk5MDc5Nw

            Paul H.NinjaTrader Customer Service

            Comment


              #7
              Thanks Paul...

              I like the "StoMac" setup... I'm going to build it.. Looks like fun to me..!!

              Michael

              Comment


                #8
                Hello Michael,

                Thanks for your reply.

                Just to clarify, these videos are for educational purposes only and do not imply that what is shown will be a successful strategy, they only intend to provide the "how to" do something specific. As always we would advise careful evaluation and testing on a simulation account.
                Paul H.NinjaTrader Customer Service

                Comment


                  #9
                  Paul,

                  No worries.. I understand... I'm not going to build that example per say anyway...
                  I'm going to use those techniques you showed in the video for something different..

                  I've built about 90% of Pablo Maglio's (theindicatorstore.com) "Do it yourself" videos from his youtube channel just for the sake lof "learning" on how to do it...
                  I haven't traded a dime yet in the market anyway since I installed Ninjatrader 8 back in May..
                  Your Tiny Takes videos go a long way in answering questions that would otherwise be answered with something too technical one would have to read about an decipher..
                  A visual representation with an explanation is the only way to learn anything especially when it comes to programming...

                  Thank You
                  Michael

                  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
                  44 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