Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Difference backtest and chart

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

    Difference backtest and chart

    Hi, I am using a strategy in a backtest and use the same strategy attached to a chart. Is there any way how I can test in the code of the strategy if the strategy is used in a backtest or used attached to a chart? The variable 'history' is not usable, because for the backtest as well for historical bars in the chart it returns 'true'. Any suggestion?

    Kind regards,
    Rene

    #2
    Rene, unfortunately nothing really supported per NinjaScript in that area, but a test for Account.Name should be useful, since in backtest that should report the Backtest101 string compared to your live account or Sim101 when used from the chart.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by aa731, Today, 02:54 AM
    0 responses
    4 views
    0 likes
    Last Post aa731
    by aa731
     
    Started by thanajo, 05-04-2021, 02:11 AM
    3 responses
    470 views
    0 likes
    Last Post tradingnasdaqprueba  
    Started by Christopher_R, Today, 12:29 AM
    0 responses
    10 views
    0 likes
    Last Post Christopher_R  
    Started by sidlercom80, 10-28-2023, 08:49 AM
    166 responses
    2,237 views
    0 likes
    Last Post sidlercom80  
    Started by thread, Yesterday, 11:58 PM
    0 responses
    4 views
    0 likes
    Last Post thread
    by thread
     
    Working...
    X