Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add arrows when signal cross over - code open

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

    Add arrows when signal cross over - code open

    I have an indicator on MA, RSX etc but don't plot arrows.
    do I need to know coding to add arrows to the indicator. the code is open.

    If it is few lines of codes to add, would you be able to tell me what they are ?
    Thks and appreciate it

    #2
    kumaresh11, you will have to do some coding, but adding arrows is probably the best/easiest way to get started with NinjaScript. People request this script all the time, so I've attached it for you to review, along with a screenshot of what the script does.

    You can download the file, and then import it by going to File -> Utilities -> Import NinjaScript and point it to the downloaded file. Then, you can view/edit the code from Tools -> Edit NinjaScript -> Indicator and select ShowMACrosses.
    Attached Files
    AustinNinjaTrader Customer Service

    Comment


      #3
      Thks Austin.

      would you send link that can also add alerts (pop up or text alert), distance the arrow, change arrow size etc

      Comment


        #4
        kumaresh11, there is example code for creating an Alert() in the help guide. The example looks like this:
        Code:
        Alert("myAlert", NinjaTrader.Cbi.Priority.High, "alert text goes here", "Alert1.wav", 10, Color.Black, Color.Yellow);
        Likewise, here is the help guide page for an up arrow.

        Unfortunately it is not currently possible to change the arrow size, but you can change the distance by modifying the TickSize multiplier. In the example code, I believe it says 2 * TickSize, which would put it two ticks away from either the high or low, depending on if it is an up or down arrow.
        AustinNinjaTrader Customer Service

        Comment


          #5
          Thks Austin

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          598 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          343 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          556 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          555 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X