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

Ninjatrader 8

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

    Ninjatrader 8

    Hi there,

    I want to create an indicator, alert or strategy, where I can play a sound or visible message when I have X number of open positions, (actually I prefer to create an indicator)

    what could be a good starting point?

    I tried using the strategy builder similar to https://ninjatrader.com/support/foru...-check?t=93225 but with no luck (idk how to run a strategy when in live trading lol)



    #################################
    #UPDATE 1

    I managed to create a strategy and it is working with PositionAccount,
    now...

    How can I re-enable automatic the Strategy after close all my positions instead of enabling it manually?

    does NinjaTrader 8 allow custom buttons creations similar to "Buy Mkt", "Close" ?

    #################################



    I have background programing in c#, but I am unfamiliar with the ninja traders 8 class or documentation

    Regards,
    Alejandro
    Last edited by alejandro888; 12-30-2019, 11:56 PM.

    #2
    Hello Alejandro,

    When using an indicator the Addon approach allows you to add an event handler method to the Account.PositionUpdate event.

    Below is a link to the help guide.
    https://ninjatrader.com/support/help...tionupdate.htm

    The AddOn Framework NinjaScript Basic example script demonstrates this.
    https://ninjatrader.com/support/help...t_overview.htm


    NinjaScript Strategies cannot be enabled with code.

    Below is a link to an example strategy that adds buttons that submit orders.




    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Segwin, 05-07-2018, 02:15 PM
    14 responses
    1,788 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