Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

NET Frame COTs Error

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

    NET Frame COTs Error

    Hello Support ,
    I am trying to compile a file SMA Indicator in NT8 which works and but an error comes up from NET Frame and COT's file which is not use . please assist, enclosed is the picture. Thank you.

    protected override void OnBarUpdate()
    {
    if (CotData.GetCotReportNames(Instrument.MasterInstru ment.Name).Count == 0)
    {
    Draw.TextFixed(this, "Error", Custom.Resource.CotDataError, TextPosition.BottomRight);
    return;
    }

    if (!Core.Globals.MarketDataOptions.DownloadCotData)
    Draw.TextFixed(this, "Warning", Custom.Resource.CotDataWarning, TextPosition.BottomRight);




    Attached Files
    Last edited by Emma1; 05-23-2021, 07:20 AM.

    #2
    Hello Emma1,

    The .NET error typically occurs of you have used VisualStudio or another editor and then updated NinjaTrader to 8.0.23.0 or higher.

    Within the Documents\NinjaTrader 8\bin\Custom folder delete the \obj and \bin folders to resolve.

    With the @COT.cs file, try deleting this from Documents\NinjaTrader 8\bin\Custom\Indicators, and then run the re-pair from the NinjaTrader installer.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by alifarahani, Today, 09:40 AM
    4 responses
    19 views
    0 likes
    Last Post alifarahani  
    Started by gentlebenthebear, Today, 01:30 AM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by PhillT, Today, 02:16 PM
    2 responses
    7 views
    0 likes
    Last Post PhillT
    by PhillT
     
    Started by Kaledus, Today, 01:29 PM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by frankthearm, Yesterday, 09:08 AM
    14 responses
    47 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Working...
    X