Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

generating alert from a strategy

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

    generating alert from a strategy

    Hi
    I just created my first strategy on Ninjatrader, and I had no problem in backtesting it on instruments. So in the backtest I place order conditions, etc and everything works fine and I get the results of the backtest. Now what I want to do next is to run the strategy's entry condition as an alert- as in, I want to be able to run it on say Dow 30 stocks, and want it to tell me if any of the stocks met the entry condition. I cannot figure out how to do this. I cannot figure out how to do it in the market analyzer, becuase it doesn't seem possible to be able to pass a variable generated in running a strategy into market analyzer. I also tried to change the order placement conditions (after the strategy finds an entry trigger) to Alerts, or Log messages, but that doesn't help because it simply displays the message in the Log without any reference to which instrument it's coming from. Could someone please help me with this? Thank you very much!

    #2
    Hello,

    If your criteria is complicated you can't do it in the market analyzer.

    Attempt to substitute the EnterLong() line (or whatever are are using) with Alert(). This link will help:


    If that doesn't work post some code and I will assist you.
    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    60 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    147 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    161 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    97 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    284 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X