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

Name Space name could not be found

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

    Name Space name could not be found

    I cant fix this issue namespace name 'OpeningRangeBreakout' could not be found


    //This namespace holds Strategies in this folder and is required. Do not change it.

    #region Using declarations

    using System;

    using System.Collections.Generic;

    using System.ComponentModel;

    using System.ComponentModel.DataAnnotations;

    using System.Linq;

    using System.Text;

    using System.Threading.Tasks;

    using System.Windows;

    using System.Windows.Input;

    using System.Windows.Media;

    using NinjaTrader.Cbi;

    using NinjaTrader.Gui;

    using NinjaTrader.Gui.Chart;

    using NinjaTrader.Gui.SuperDom;

    using NinjaTrader.Gui.Tools;

    using NinjaTrader.Data;

    using NinjaTrader.NinjaScript;

    using NinjaTrader.NinjaScript.Indicators;

    using NinjaTrader.NinjaScript.DrawingTools;

    using NinjaTrader.NinjaScript.Strategies;

    using OpeningRangeBreakout;

    #endregion


    namespace NinjaTrader.NinjaScript.Strategies

    {

    public class RangeFib : Strategy

    {

    private OpeningRangeBreakout openingRangeBreakout;

    private EMA ema9;

    private EMA ema21;

    private EMA ema67;

    private EMA ema97;

    private double atr;

    private double entryPrice;

    private double stopLossPrice;

    private double takeProfit1Price;

    private double takeProfit2Price;

    private double takeProfit3Price;



    Last edited by SevanKambel; 03-04-2023, 12:08 PM.

    #2
    Hello SevanKambei,

    Thanks for your post.

    Please remove the Using statement 'using OpeningRangeBreakout;​' from the script and run a compile in the NinjaScript Editor window.

    This is likely not a valid Using statement and could likely be removed from the script.

    If you are trying to access a third-party indicator called OpeningRangeBreakout in a custom NinjaScript, please reach out to the developer of the third-party script for information about how to use their script in a custom NinjaScript strategy.

    Let me know if I may assist further.
    Last edited by NinjaTrader_BrandonH; 03-05-2023, 05:42 PM.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by realblubb, Today, 09:28 AM
    0 responses
    2 views
    0 likes
    Last Post realblubb  
    Started by AaronKoRn, Yesterday, 09:49 PM
    1 response
    18 views
    0 likes
    Last Post Rikazkhan007  
    Started by ageeholdings, Today, 07:43 AM
    0 responses
    12 views
    0 likes
    Last Post ageeholdings  
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Working...
    X