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 PaulMohn, Today, 03:49 AM
        0 responses
        6 views
        0 likes
        Last Post PaulMohn  
        Started by inanazsocial, Today, 01:15 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by rocketman7, Today, 02:12 AM
        0 responses
        10 views
        0 likes
        Last Post rocketman7  
        Started by dustydbayer, Today, 01:59 AM
        0 responses
        4 views
        0 likes
        Last Post dustydbayer  
        Started by trilliantrader, 04-18-2024, 08:16 AM
        5 responses
        23 views
        0 likes
        Last Post trilliantrader  
        Working...
        X