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 NullPointStrategies, Today, 05:17 AM
        0 responses
        44 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        124 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        65 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X