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 bortz, 11-06-2023, 08:04 AM
        47 responses
        1,602 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        8 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        4 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        12 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X