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

Using the OrderFlowTradeDetector for entries

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

    Using the OrderFlowTradeDetector for entries

    Hi,
    I'm a fan of the new order plus package and I want to use the functionality in my strategies.




    How can I implement a simple entry, if the detector gets an higher volume?



    Code:
    if (OrderFlowTradeDetector1[0] <= 19)
                {
                    EnterShort(Convert.ToInt32(DefaultQuantity), "");                
                }

    The Code above is not working. I get the Error


    A hosted indicator tried to load additional data. All data must first be loaded by the hosting NinjaScript in its configure state.

    I was creating the strategy with the builder. I'm sure that I have to write the code by my own at the end.





    Also I want to know how I can access all the values (std dev bands) of the VWAP. Is there an example?


    I look forward to your reply.

    #2
    Hello bennle,

    Thanks for your post.

    Currently, you cannot access the Trade Detector dots/circles through Ninjascript or strategy builder.
    If you like I can create a feature request to add this ability.

    For the VWAP, this can be accessed through the strategy builder as you can select which plot to work with. Please note that if you choose "tick" resolution for VWAP then you would need to add a 1 tick data series as otherwise you would see the "Hosted indicator..." error. If you use the "standard" resolution then there will be no need to add another data series.

    If you wish to code VWAP directly in Ninjascript, please see: https://ninjatrader.com/support/help...flow_vwap2.htm
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thank you for your help!


      Yes, please create a feature request for the trade detector dots/circle.

      Is there any other way to access the T & S at the moment? I can filter the blocks by my own.

      Comment


        #4
        Hello bennle,

        Thanks for your reply.

        I have created the feature request and when it has been entered into the system I will update this thread with that information. Please note that a feature request does not mean that the feature will or will not be implemented. If implemented, it would be noted in the release notes for the version.

        You would need to access the T&S data through Ninjascript coding, collecting the data in OnMarketData(): https://ninjatrader.com/support/help...marketdata.htm
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by thanajo, 05-04-2021, 02:11 AM
        3 responses
        469 views
        0 likes
        Last Post tradingnasdaqprueba  
        Started by Christopher_R, Today, 12:29 AM
        0 responses
        10 views
        0 likes
        Last Post Christopher_R  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        166 responses
        2,237 views
        0 likes
        Last Post sidlercom80  
        Started by thread, Yesterday, 11:58 PM
        0 responses
        4 views
        0 likes
        Last Post thread
        by thread
         
        Started by jclose, Yesterday, 09:37 PM
        0 responses
        9 views
        0 likes
        Last Post jclose
        by jclose
         
        Working...
        X