Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Volume based tick trigger

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

    Volume based tick trigger

    Hello,

    I am new the platform and would like to take a program that I have written in Python and convert to Ninja Trader

    Without getting into too much detail, are there any examples that allow me to

    i) trigger an entry when the moving average DOM Bid Side less DOM Ask Side is over a particular value

    How do you test this after you code it?


    Thanks

    #2
    Hello acre94,
    Welcome to the forum and I am happy to assist you.

    NinjaScript is basically C# and you have to convert your code written in Python to NinjaScript to run it in NinjaTrader.

    You can read the level 2 order book (Dom) in the OnMarketDepth event. Please refer to this sample codes for further reference on how to read the Dom



    The OnMarketDepth event is a realtime event only and unfortunately cannot be backtested.

    Please let me know if I can assist you any further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Trouble getting the sample code to run

      I followed the example of downloading the sample code for "samplemarketdepth" and the zip file was not able to import? Then, I tried unzipping and putting the *.cs file into my strategies folder and it didn't compile

      Any suggestions?

      After I get it downloaded? How do I run it to see the results?

      Thanks

      Comment


        #4
        Hello acre94,
        Please follow the below steps to import the indicator to NinjaTrader.
        • From the Control Center window select the menu File > Utilities > Import NinjaScript to open the Import NinjaScript dialog window
        • Select the file you want to import
        • Press the "Open" button




        If you get any error while importing it please let me know.

        Please let me know if I can assist you any further.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          It says...

          You have a custom ninjascript on your PC that have proramming errors. These errors must be rsolved before you can import a Ninja Archive Script.

          How do I resolve these errors?

          Thanks

          Comment


            #6
            Hello acre94,
            Can you please send a screenshot of the NinjaScript errors to support[AT]ninjatrader[DOT]com

            Please append Attn:Joydeep in the subject line of the email and give reference of this thread in the body of the email.

            To send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

            For detailed instructions please visit the following link

            How to take a screenshot on your smartphone, tablet, notebook or desktop computer


            I look forward to assisting you further.
            JoydeepNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by WHICKED, Today, 02:02 PM
            1 response
            3 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by selu72, Today, 02:01 PM
            0 responses
            3 views
            0 likes
            Last Post selu72
            by selu72
             
            Started by f.saeidi, Today, 12:14 PM
            8 responses
            21 views
            0 likes
            Last Post f.saeidi  
            Started by Mikey_, 03-23-2024, 05:59 PM
            3 responses
            49 views
            0 likes
            Last Post Sam2515
            by Sam2515
             
            Started by Russ Moreland, Today, 12:54 PM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Erick  
            Working...
            X