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 burtoninlondon, Today, 12:38 AM
    0 responses
    5 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    14 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    13 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,983 views
    3 likes
    Last Post jhudas88  
    Working...
    X