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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X