Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to entry during the candle still running

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

    How to entry during the candle still running

    Dear Team,
    Currently I'm using entry market long and short.

    The problem is,my entry can only occur at the beginning of the bar,this will make an issue.For example,I entry short at the beginning of candle1,if the price falls a lot,my profit short will make entry short exit earlier,because my profit has reached the target.

    But at this time the price is still falling,and this candle is still match my short condition.So how can I entry short this candle again.Now I can't entry it until next candle.

    Thank you very much!

    #2
    Hello williamzz, thank you for your post.

    The only way to get intrabar OnBarUpdate calls is to set the Calculate to Calculate.OnEachTick or Calculate.OnPriceChange. The strategy must be able to handle multiple OnBarUpdate calls, meaning you might need to use IsFirstTickOfBar to separate "Bar Close" logic from "On Each Tick" logic. There is an example of this here with additional documentation. You will also need to set "Entries per direction" in the strategy setup menu to allow multiple entries in the same direction.

    Please let me know if you have any further questions.

    Comment


      #3
      Thank you for your reply.Is it available in strategy builder?

      Comment


        #4
        Hello williamzz,

        Unfortunately, the code will need to be unlocked to use IsFirstTickOfBar.

        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
        21 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        30 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        50 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Working...
        X