Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

entry the next candle with Calculate.OnEachTick

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

    entry the next candle with Calculate.OnEachTick


    Hello, I am developing a strategy and I want to enter at the tick of the next candle. I did this, but it doesn't work for me. If anyone knows what's wrong, I'd appreciate it.

    Attached Files

    #2
    Hi, thanks for writing in. If this is not working in the historical backtest, please enable Tick Replay so the IsFirstTickOfBar condition will trigger historically. If you continue to run into issues, please Export your strategy and post it here so I can test it.

    Kind regards.

    Comment


      #3

      Thanks for answering. the strategy does not carry out operations neither in live nor in historical data. Just in case I use range candles
      Attached Files

      Comment


        #4
        Hi, thanks for posting that. Please call Update() on the BuySellPressure object since the script is running OnEachTick e.g.

        Code:
        if (BarsInProgress != 0)
        return;
        
        if (CurrentBars[0] < 1)
        return;
        
        BuySellPressure1.Update();
        
        if (IsFirstTickOfBar)
            //continue with entry logic.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        76 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        146 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        79 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        50 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        54 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X