Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Combining tick counter with my indicator

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

    Combining tick counter with my indicator

    Hello, I'm very inexperienced with ninjascript, but somehow I managed to write a basic indicator to change from 0 to 1 when the conditions that I find valuable are present.

    Close[0]<SMA(a)
    Close[0]<EMA(b)
    ...

    Now I'd like to combine this indicator with tick counter so the resulting indicator awaits until the xxx ticks bar is > yy % complete before changing its value if the right conditions are present so I can use it with the market analyzer and I can have some time to prepare the trade before the bar closes.

    Please can anybody help me?

    Cheers

    Francisco

    #2
    Hello,

    Thank you for the question.

    If you are wanting to check the bars Percent Complete, this can be done using the following line:

    Code:
    Bars.PercentComplete
    This returns a double value 0.1 - 1 regarding the percent complete, this value is likely to change depending on the chart these values were from a 10 tick chart.

    I look forward to being of further assistance.

    Comment


      #3
      Thanks a lot

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      163 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      313 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      245 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      350 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      179 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X