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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        335 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        211 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        196 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        287 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        245 views
        0 likes
        Last Post CarlTrading  
        Working...
        X