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 DanielTynera, Today, 01:14 AM
    0 responses
    2 views
    0 likes
    Last Post DanielTynera  
    Started by yertle, 04-18-2024, 08:38 AM
    9 responses
    40 views
    0 likes
    Last Post yertle
    by yertle
     
    Started by techgetgame, Yesterday, 11:42 PM
    0 responses
    11 views
    0 likes
    Last Post techgetgame  
    Started by sephichapdson, Yesterday, 11:36 PM
    0 responses
    2 views
    0 likes
    Last Post sephichapdson  
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,615 views
    0 likes
    Last Post aligator  
    Working...
    X