Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

order before bar closing

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

    order before bar closing

    when creating a condition the options are among others; close, high. low etc... but if my intention is that a condition is executed before closing the bar, i.e. measured by ticks, how can I do it?
    The logical thing would be simply to add an addiotional data equivalent to 1 tick and execute it that way, but in practice this is not working for me.
    Thank you very much.​

    #2
    You have to struture your code as below and set Calculate.OnEachTick

    If (IsFirstTickOfBar) { execute on close )

    else if { Ticknumber == x ) { execute after N Ticks of bar }

    I am sure you can find examples.
    You don't have to add a 1 tick data Stream.
    Last edited by JerryWar; 06-02-2024, 02:37 PM. Reason: Additional info

    Comment


      #3
      Originally posted by JerryWar View Post
      You have to struture your code as below and set Calculate.OnEachTick

      If (IsFirstTickOfBar) { execute on close )

      else if { Ticknumber == x ) { execute after N Ticks of bar }

      I am sure you can find examples.
      You don't have to add a 1 tick data Stream.
      thank you very much for the answer and your time, but I haven't learned how to program code yet. for now I am using strategy builder.

      Comment


        #4
        In Strategy builder under Calculate , Select "OnEachTick"
        Then under the conditions to execute your trade put the logic of when you want to execute.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        87 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        132 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
        118 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        67 views
        0 likes
        Last Post PaulMohn  
        Working...
        X