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 sjsj2732, Yesterday, 04:31 AM
          0 responses
          39 views
          0 likes
          Last Post sjsj2732  
          Started by NullPointStrategies, 03-13-2026, 05:17 AM
          0 responses
          289 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          289 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          135 views
          1 like
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          96 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Working...
          X