Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using candle close and price chang

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

    Using candle close and price chang

    Hi
    I'm using strategies builders and I want to know how to put candle closed and enter trade as soon as it break. For example.

    1. On candle closed 5ema cross above 10ema
    Then
    2. If this current candle break high of last candle go long asap.
    And not wait for candle closed.

    Thank you

    #2
    Hello SuperDude123,

    You can see the following sample for information about using OnEachTick calculation and then using the first tick of the bar to simulate OnBarClose.

    I know technically every price change the computer is registering that the previous bar has closed. But I have some bools and other functionality that need to be reset after the current bar officially closes. Is it possible to do that in an "On price change" strategy?


    To do what you are asking you would need to do your step 1 during the first tick of the bar. If that condition is true you can set a variable to know it became true so the step 2 condition can be checked during the bar.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    628 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    359 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    562 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X