Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Execute order X amount of bars after price crosses line

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

    Execute order X amount of bars after price crosses line

    Hi there,

    In the attached example, I would like to trigger a short order when the blue dot appears. The blue dot can be targeted by a postive numeric value - however I am trying to refine this criteria to only if price has crossed over/under the blue supertrend line X amount of bars ago.

    For this example the strategy would simply be: enter short on Dot trigger if high has crossed above Supertrend 10 bars ago.

    Thanks for any help. I was messing in the strategy builder but could not get this triggered correctly.


    Attached Files

    #2
    Hello quicksandatl,

    Thank you for your post.

    We have an existing sample Strategy Builder script that demonstrates counting x number of bars after an event occurs, ExampleBarCounter.

    You can find the file for download at the link below as well as an explanation of how the script works:



    Please let us know if you have any further questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    20 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    119 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    63 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    45 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X