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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        92 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        138 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        122 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        73 views
        0 likes
        Last Post PaulMohn  
        Working...
        X