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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        587 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        341 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
        555 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        552 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X