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 NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        63 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        139 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        75 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        50 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X