Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          572 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          331 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          549 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          550 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X