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 Fitspressorest, Today, 01:38 PM
      0 responses
      2 views
      0 likes
      Last Post Fitspressorest  
      Started by Jonker, Today, 01:19 PM
      0 responses
      2 views
      0 likes
      Last Post Jonker
      by Jonker
       
      Started by futtrader, Today, 01:16 PM
      0 responses
      6 views
      0 likes
      Last Post futtrader  
      Started by Segwin, 05-07-2018, 02:15 PM
      14 responses
      1,791 views
      0 likes
      Last Post aligator  
      Started by Jimmyk, 01-26-2018, 05:19 AM
      6 responses
      844 views
      0 likes
      Last Post emuns
      by emuns
       
      Working...
      X