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 Segwin, 05-07-2018, 02:15 PM
    14 responses
    1,789 views
    0 likes
    Last Post aligator  
    Started by Jimmyk, 01-26-2018, 05:19 AM
    6 responses
    837 views
    0 likes
    Last Post emuns
    by emuns
     
    Started by jxs_xrj, 01-12-2020, 09:49 AM
    6 responses
    3,293 views
    1 like
    Last Post jgualdronc  
    Started by Touch-Ups, Today, 10:36 AM
    0 responses
    13 views
    0 likes
    Last Post Touch-Ups  
    Started by geddyisodin, 04-25-2024, 05:20 AM
    11 responses
    63 views
    0 likes
    Last Post halgo_boulder  
    Working...
    X