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

Counting Divergence lines

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

    Counting Divergence lines

    Hi I am trying to add a counter to a Fisher transform divergence indicator I have created that will count each time the divergence line is drawn with this indicator. I will paste the draw code that I'm using to draw the divergence line. If anyone knows a small piece of code that I can add that will make appear a ongoing tally in the lower right of the price panel of how many times this particular line has been drawn on the chart I would appreciate it.

    Code:
    Draw.Line(this, "high"+CurrentBar.ToString() + BarsAgo.ToString(), true, BarsAgo, High[BarsAgo] + (TickSize * MarkerDistanceFactor), A, 
    									High[A] + (TickSize * MarkerDistanceFactor), divergenceColor, divergenceDashStyle, divergenceLineWidth);
    Thanks
    Quantismo

    #2
    Hello Quantismo,

    You an increment an integer as a counter.

    Below is a link to a forum post that discusses this.


    You can use Draw.TextFixed() to put text in a corner of the chart.

    Below is a public link to the help guide.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks Ninja ChelseaB for the link but my little grey cells are were not able to draw from it how to get it done that way, I am now trying to use the candlestick pattern indicator as a reference as it has a similar counter showing in the price panel also to wrap my head around how to do this hopefully..

      Thanks Quantismo

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by swestendorf, Today, 11:14 AM
      0 responses
      0 views
      0 likes
      Last Post swestendorf  
      Started by Sparkyboy, Today, 10:57 AM
      0 responses
      3 views
      0 likes
      Last Post Sparkyboy  
      Started by TheMarlin801, 10-13-2020, 01:40 AM
      21 responses
      3,917 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by timmbbo, 07-05-2023, 10:21 PM
      3 responses
      153 views
      0 likes
      Last Post grayfrog  
      Started by Lumbeezl, 01-11-2022, 06:50 PM
      30 responses
      812 views
      1 like
      Last Post grayfrog  
      Working...
      X