Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

WeisWave Strategy

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

    WeisWave Strategy

    Hi,
    I am trying to use enclosed indicator to create a strategy in Strategy Builder. However upon attempt to finish I am greeted with the message that there is Error Creating Strategy and NT8 can not compile NinjaScript. Would it be possible to take a look at the indicator script and find out what is the particular problem with that indicator that prevents creation of the strategy . Cheers
    Attached Files

    #2
    Hello kazbek966,

    Thanks for your post.

    How exactly are you comparing the indicator in the Conditions section of the Strategy Builder?

    If you open a New > NinjaScript Editor window and click the 'Compile' button in the NinjaScript Editor toolbar, do you see any errors appear? If so, what exactly does the error message state?

    Please send me a screenshot of how the condition is set up so I may investigate this matter further. And, please send a screenshot of the error in the NinjaScript Editor window if there is one.
    • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
    • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.
    ​I look forward to assisting further
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Hi Brandon,

      Good to rely on your expertise.
      1. When I open Ninja SCript Editor without any script and hit compile button nothing comes out so there are no internal errors per se and any other strategy where WeisWave is not involved is created just fine.

      2. Conditions in the Strategy builder are quite simple. Take long when ValuePlot as SwingDelta bigger than zero and exit when Swing Delta value less than zero. Nothing fancy. I am enclosing screen shots with the condition and error.

      Cheers
      Attached Files

      Comment


        #4
        Hello kazbek966,

        Thanks for your notes.

        I have tested the condition you provided in the Strategy Builder and saw the 'Could not compile' error message.

        Then, I clicked the 'Unlock code' button to see what exactly was causing the error message and we can see a compile error stating that 'WeisWaveDelta is a 'namespace' but is used like a 'type''.

        This indicator needs to have the fully qualified namespace used when defining it in a custom NinjaScript strategy which the Strategy Builder cannot do.

        To use this indicator in a custom NinjaScript strategy, you would need to unlock the code from the Strategy Builder by clicking the 'Unlock code' button and manually program the strategy to use the fully qualified namespace of the indicator.

        For example:

        //class-level variable
        private NinjaTrader.NinjaScript.Indicators.WeisWaveDelta WeisWaveDelta1;

        //OnStateChange State.DataLoaded
        else if (State == State.DataLoaded)
        {
        WeisWaveDelta1 = WeisWaveDelta(Close, 2, false, new SimpleFont("Arial", 12) {Bold = false, Italic = false}, 3, 17, new SimpleFont("Arial", 10) {Bold = false, Italic = false}, NinjaTrader.Gui.DashStyleHelper.Solid, 4, true, true);
        }

        //OnBarUpdate()
        if ((Position.MarketPosition == MarketPosition.Flat)
        && (WeisWaveDelta1.Swingdelta[0] > 0))
        {
        EnterLong(Convert.ToInt32(DefaultQuantity), "");
        }


        Since this script was created by a third-party developer and not by NinjaTrader, please contact the developer of the indicator to inquire for information about how exactly to use the third-party indicator in a custom NinjaScript strategy. The developer's information could be found by looking at the code of the WeisWaveDelta indicator in the NinjaScript Editor window. To view the code, open a New > NinjaScript Editor window, open the Indicators folder, double-click on the WeisWaveDelta file, and note the developer's contact information at the top of the script.​​
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by laketrader, 03-10-2025, 07:20 AM
        7 responses
        68 views
        0 likes
        Last Post laketrader  
        Started by juletjak, Today, 07:37 PM
        0 responses
        3 views
        0 likes
        Last Post juletjak  
        Started by stafe, 03-10-2025, 04:46 PM
        5 responses
        60 views
        0 likes
        Last Post MiCe1999  
        Started by VFI26, 03-21-2025, 11:21 AM
        2 responses
        28 views
        0 likes
        Last Post MiCe1999  
        Started by algospoke, 03-12-2025, 07:41 PM
        2 responses
        34 views
        0 likes
        Last Post algospoke  
        Working...
        X