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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    163 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    82 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    125 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    206 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    184 views
    0 likes
    Last Post CarlTrading  
    Working...
    X