Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting a custom volumetric bar strategy isnt working

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

    Backtesting a custom volumetric bar strategy isnt working

    When I run my backtest in strategy analyzer, it returns blank results. i go to the Chart section in strategy analyzer, and the chart is nothing like the chart i run use (i know you can load a template to the chart, but whenever u hit run it just goes back to normal)

    also when i hit run, these are the only logs that pop up:

    Entering OnStateChange with State = SetDefaults
    Entering OnStateChange with State = Configure
    Entering OnStateChange with State = DataLoaded
    State.DataLoaded
    Indicators added to chart
    Entering OnStateChange with State = Historical
    Entering OnStateChange with State = SetDefaults
    Entering OnStateChange with State = Terminated
    Entering OnStateChange with State = Terminated
    Entering OnStateChange with State = Terminated
    Entering OnStateChange with State = SetDefaults
    DisposeWPFControls start
    Controls removed
    Entering OnStateChange with State = SetDefaults
    Entering OnStateChange with State = Terminated
    Entering OnStateChange with State = SetDefaults
    Entering OnStateChange with State = Terminated


    ive been trying to add print statements and it only shows those prints whenever the strategy is turned on on my regular chart, not strategy analyzer. because of that, i have no clue why its not executing trades.

    #2
    Hello unpacify,

    The analyzer chart not showing items like a normal chart is expected, that is a limited chart meant to display the executions from the test. While you can load templates not all items may work from that chart. In your prints I see that there are prints about wpf controls, if you are modifying the user interface those items won't work in a backtest. That may also be why it is not working, I would suggest to disable those items and retest. You can also check the control center log tab to see if any errors are reported.

    To find out why it is not placing trades you would normally have to add prints into your OnBarUpdate code and make sure your conditions to enter are becoming true.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    116 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    61 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    40 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    44 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    82 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X