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 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
    65 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