Announcement

Collapse
No announcement yet.

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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    79 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X