Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

execute a tick by tick method?

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

    execute a tick by tick method?

    If I have a strategy that is calculated candle by candle how do I execute a tick by tick method?

    #2
    Hello franatas,

    If your strategy uses OnBarClose but you want to use OnEachTick while still maintaining OnBarClose logic you would need to set the script to use OnEachTick and the use a condition to know when bars close. IsFirstTickOfBar can be used for that purpose.

    Comment


      #3
      but there is nothing to manage it in reverse? make it OnBarClose and something that allows you to calculate on tick

      Comment


        #4
        Hello franatas,

        OnBarClose is only going to close for each bar, if you want to do something OnEachTick you would need to use OnEachTick processing. You can still simulate OnBarClose processing by using the IsFirstTickOfBar variable. You would execute your logic during the first tick which is the same tick that calls OnBarClose processing.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        284 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        175 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        172 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        262 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        215 views
        0 likes
        Last Post CarlTrading  
        Working...
        X