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

automatic order entry / position sizing

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

    automatic order entry / position sizing

    Hi,

    I used to program Metatrader extensively and had lots of scripts for order entry and management. One was:

    I was able to drop a script (e.g. for a sell) on a candle on the chart and get the droptime which I've used to determine the size of that candle. From this I calculated position size and entry below / stop above that candle.

    Any such things possible with NinjaTrader?

    Cheers

    td_910

    #2
    Hello,

    Yes, this would be possible. I would suggest looking at our guide on Referencing the correct bar:



    We have a fully documented help guide which will help you get started with NinjaScript. You will find language references to all of the methods and functions you will be using. You will also see a tutorial section which will help you create your first indicator and get you started with some of these concepts.

    A link to our Help Guide can be found below:
    http://www.ninjatrader.com/support/helpGuides/nt7/index.html?distribution.htm

    I am also linking you to the Educational Resources section of the Help Guide to help you get started with NinjaScript:

    http://www.ninjatrader.com/support/helpGuides/nt7/index.html?educational_resources.htm

    We also have some Reference Samples online as well as some Tips and Tricks for both indicators and strategies:

    These samples can be downloaded, installed and modified from NinjaTrader.

    Please let me know if there is anything else I can do for you.
    MatthewNinjaTrader Product Management

    Comment


      #3
      Hi Matthew,
      I don't have problems referencing bars.

      It's about accessing a specific bar on a chart by mouse pointer, executing some script commands with the H/L/O/C of that bar and enter appropriate stop orders.
      I had a list with scripts like: buy scalp, buy candle, buy last candle, buy close ...

      What I did was choosing the appropriate script based on the PA on the chart and drop it on the chart on the bar I wanted to trade - which was e.g. the last bar or any other bar on the chart.

      Cheers

      td_910

      Comment


        #4
        Hello,

        Thanks for the clarification - this would technically be possible using custom NinjaScript programming. Although we do not have any supported methods to do so, it is possible using C#/.NET.

        I would suggest taking a look around the forum on threads related to MouseEvent where you would be able to accomplish this



        You can also refer to MSDN articles on MouseEvents for more information.
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Gerik, Today, 09:40 AM
        2 responses
        7 views
        0 likes
        Last Post Gerik
        by Gerik
         
        Started by RookieTrader, Today, 09:37 AM
        2 responses
        11 views
        0 likes
        Last Post RookieTrader  
        Started by alifarahani, Today, 09:40 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by KennyK, 05-29-2017, 02:02 AM
        3 responses
        1,285 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by AttiM, 02-14-2024, 05:20 PM
        11 responses
        186 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X