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 geddyisodin, Today, 05:20 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Max238, Today, 01:28 AM
    3 responses
    32 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by timko, Today, 06:45 AM
    2 responses
    13 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by habeebft, Today, 07:27 AM
    0 responses
    6 views
    0 likes
    Last Post habeebft  
    Started by Tim-c, Today, 03:54 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X