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