Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with generating Alert

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

    Problem with generating Alert

    Hi -
    I am unable to generate Alerts as part of strategy execution (back testing) in Strategy Analyzer. Not sure what I am doing wrong. Can you please advise me.

    Attachment has the test strategy (TestStrategyAlert.cs). This test sample is basically a modification of SampleMACrossover strategy with additional code for generating Alerts.

    Also can you please advise if there is a better way to solve the following problem - What I would like to do is run a strategy end of day/end of week on a watchlist and have strategy generate a list of alerts (i.e., buy and sell orders) that I can review and place it manually. My strategies are multi-instrument strategies like sector rotation etc. So I cannot plot on the chart.

    NT Version: NT 7.0.1000.8
    Regards,
    Attached Files
    Last edited by atrader123; 09-13-2012, 11:57 AM. Reason: Adding NT Version details

    #2
    Hello atrader123,
    Alerts wont trigger in backtesting. Alerts will trigger in realtime only.

    From help guide
    * Calls to this method are ignored on historical data, it will only work in real-time.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Hi Joydeep,
      Thanks. For strategies that work off daily bars (EOD data), how can I verify the alerts are working in real time?

      Also I am curious on how do other users of ninjatrader currently generate list of buy/sell alerts from their strategy for review before placing orders manually.

      Regards

      Comment


        #4
        Hello atrader123,
        Instead of using the Alert you can use the Print fucntion to print out custom values in the Output Window (in Control Center goto Tools>Output Window).

        Please refer here to know more about the Print function.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        25 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        115 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        69 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        225 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        411 views
        0 likes
        Last Post CaptainJack  
        Working...
        X