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.
    https://ninjatrader.com/PlatformDirect
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by set2win, Today, 08:10 AM
    0 responses
    2 views
    0 likes
    Last Post set2win
    by set2win
     
    Started by YourDailyBread, Today, 06:40 AM
    0 responses
    7 views
    0 likes
    Last Post YourDailyBread  
    Started by llanqui, 11-29-2022, 07:05 PM
    10 responses
    53 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by willsims11, Today, 04:58 AM
    0 responses
    9 views
    0 likes
    Last Post willsims11  
    Started by supremeacvcost, Today, 04:42 AM
    0 responses
    3 views
    0 likes
    Last Post supremeacvcost  
    Working...
    X