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

How to get arrows on stochastics crossover?

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

    How to get arrows on stochastics crossover?

    Hello,

    I couldnt find it through the forum search so I have to ask here - how do I get up and down arrows whenever the stochastic lines cross each other? i want the arrow right where the crossover takes place (indicator panel).

    Thank you very much,
    Bye!

    #2
    Hi ikeaboy,

    You can use CrossAbove, and DrawArrowUp for this...
    CrossAbove - http://www.ninjatrader-support.com/H...tml?CrossAbove
    DrawArrowUp - http://www.ninjatrader-support.com/H...ml?DrawArrowUp

    If you want this to appear on the indicator panel, you can set this property to false:


    Be sure to have CalculateOnBarClose set to false:
    TimNinjaTrader Customer Service

    Comment


      #3
      Would it have killed you to quickly code the requested indicator for those who aren't code savvy???????

      Comment


        #4
        mkaminski,

        Unfortunately we don't code custom indicators for users because doing so requires too many additional resources, and there are NinjaScript consultant partners that do this which makes doing so a conflict of interest. We get hundreds of requests per month for custom indicators, and many of them would take a few hours or more to finish. Meanwhile, we maintain an average 15 minute response time during peak trading hours on all our support requests for people with connection issues, installation issues, educational questions about NinjaScript, etc. If we were to expend resources on developing every indicator our users request, we wouldn't be able to have such a high standard of support on the other end.

        That being said, we are more than happy to provide educational resources, as well as help in directing you towards solutions for any programming projects you take on.

        Here is a link to our NinjaScript consultants : http://www.ninjatrader.com/partners#...pt-Consultants

        You may be able to find what you ask for in our downloads section : http://www.ninjatrader.com/support/f...ks.php?catid=4

        Please let me know if I may assist further.
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Hi ikeaboy,
          like this for example ??
          Code:
          if( showMacdArrows )
                      {
                      Font arrowFont = new Font("Wingdings", arrowSize, FontStyle.Bold);
                      
                      if (CrossAbove(MACD(fast,slow,smooth),0,1))
                      {
                      DrawText("CrossingUp"+CurrentBar, false, "é", 0, Macd[0]-arrowOffset*TickSize,0, bullColor, arrowFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
                      }
                      else if(CrossBelow(MACD(fast, slow, smooth), 0, 1))
                      {
                       DrawText("CrossingDn"+CurrentBar, false, "ê", 0, Macd[0]+arrowOffset*TickSize,0, bearColor, arrowFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
                      }
                      else
                      {
                          RemoveDrawObject("CrossingUp"+CurrentBar);
                          RemoveDrawObject("CrossingDn"+CurrentBar);
                          
                      }

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by judysamnt7, 03-13-2023, 09:11 AM
          4 responses
          59 views
          0 likes
          Last Post DynamicTest  
          Started by ScottWalsh, Today, 06:52 PM
          4 responses
          36 views
          0 likes
          Last Post ScottWalsh  
          Started by olisav57, Today, 07:39 PM
          0 responses
          7 views
          0 likes
          Last Post olisav57  
          Started by trilliantrader, Today, 03:01 PM
          2 responses
          21 views
          0 likes
          Last Post helpwanted  
          Started by cre8able, Today, 07:24 PM
          0 responses
          10 views
          0 likes
          Last Post cre8able  
          Working...
          X