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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    54 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    25 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    17 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    24 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X