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 trilliantrader, 04-10-2024, 09:33 PM
    6 responses
    23 views
    0 likes
    Last Post trilliantrader  
    Started by traderqz, Today, 12:06 AM
    5 responses
    9 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Mongo, Today, 11:05 AM
    2 responses
    7 views
    0 likes
    Last Post Mongo
    by Mongo
     
    Started by guillembm, Today, 11:25 AM
    0 responses
    3 views
    0 likes
    Last Post guillembm  
    Started by Tim-c, Today, 10:58 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X