Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error: Assertion Failed, indicator = 'StrategyPlot'

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

    Error: Assertion Failed, indicator = 'StrategyPlot'

    I keep having this error (see file attached) when updating a multi-timeframe and muti-instrument strategy on the SP500.

    BarsArray[0] = 15min (SP500)
    BarsArray[1] = 1min (SP500)
    BarsArray[2] = 1min (USD/EUR)

    A plot is drawn based on variables which are defined as double and filled with values from BarsArray[1].

    The error does not occur when not loading the USD/EUR as a second instrument (i.e. BarsArry[2]).

    Do you have any idea what the problem could be?

    Thanks, Georg.
    Attached Files

    #2
    Hello P-Sionic,

    Thank you for writing in.

    Can you please export your strategy so I may test it on my end?

    To export your script do the following:
    1. Click File -> Utilities -> Export NinjaScript
    2. Enter a unique name for the file in the value for 'File name:'
    3. Select the strategy from the objects list on the left -> click the right facing arrow ">" to add the strategy to the export
    4. Click the 'Export' button -> click 'yes' to add any referenced indicators to the export -> click OK to clear the export location message


    By default your exported file will be in the following location:
    • (My) Documents/NinjaTrader 7/bin/Custom/ExportNinjaScript/<export_file_name.zip>


    Below is a link to the help guide on Exporting NinjaScripts.
    http://www.ninjatrader.com/support/h...nt7/export.htm

    If you do not wish to upload the strategy to a forum post, please email the strategy to platformsupport [AT] ninjatrader [DOT] com with my name and a link to this thread referenced in the body of the email.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    72 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    39 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X