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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        90 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        135 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        120 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        69 views
        0 likes
        Last Post PaulMohn  
        Working...
        X