Hi to all. Seems that going back to posts as far back as 2002 most of the Alertif threads just were not answered or satisfactorily resolved.
Having set up an hourly strategy I would like to get hourly Scans to give me an alert. Having only Basic AB / AFL skill this seems to be a tall order. Here is my take after two day of trials: 1. Alertif sometimes just stops working. Without changing the code, settings or AB layout, just rebooting the PC will fix this. 2. Indicator mode and Scan mode seem to work differently: incoming new prices in the Indicator mode will give new signals. 3. In an attempt to understand the Indicator mode because my Signals will come from Indicator mode, I have done the following. I get 10 secs feed from forex datasource. Tools , preferences, alerts has all three checked: indicator,commentary, AA. My database is set to 5 min bars so I assume this is my shortest Scan period. The EURUSD has traded over 1.400 since November so this code should work so I expect a buy signal every bar or new price feed. I have current symbol checked and have EURUSD open. To simplify things I have no text output and no audio output. "5. Flag Behaviour" set to 1+2 as per help file to get repeated alerts for testing. The only things I have changed are the Chart time, AA settings time and Run Every settings. I expect a signal every time I get a new price (every 10 seconds.) This only seems to apply if I have my Chart set to 5 min, and the AA settings to 5 min. How would I set my chart to Hourly and then get a signal every time the price updates? If I can achieve that I can filter signals with Timenum and the Barcomplete = BarIndex() < LastValue (BarIndex()); // code in the help files. First things first though. Here are my results to date. **** // IndicatorAlertif.afl // run on EURUSD (price over 1.4 since Nov 07) Plot(C, "IndicAtor Alertif Test", colorBlack, 64); Buy = 1; Sell = 0; AlertIf( C > 1.4, "","", 1, 1 + 2); // SHOULD GIVE AN ALERT EVERY TICK OR NEW PRICE FEED // Chart in 5 min, AA settings 5 min, Run Every Not checked; alert every 10 seconds because I get 10 seconds feed. // So far so good. // Chart in Hourly, AA settings 5 min, Run Every Not checked; No alerts with data feed or with SCAN button. // What does this mean? Just changing the chart to Hourly stops the alerts. // Chart in Hourly, AA settings 5 min, Run Every Checked to Hourly; No alerts with data feed, SCAN gives correct alert. // Chart in Hourly, AA settings Hourly, Run Every Checked to Hourly; No alerts with data feed, click SCAN >> no alerts. // Seems to be a conflict here. // Chart in 15 min, AA settings 15min, Run Every Not checked; No alerts with data feed or click of the SCAN button. // Chart in 15 min, AA settings 15min, Run Every checked to 15 min; No alerts with data feed or click of the SCAN button. // Chart back to 5 min, AA settings to 5 min, Run Every Not checked: alert every 10 seconds because I get 10 seconds feed. // Back to where I started : all working well. // Chart back to 5 min, AA settings to 5 min, Run Every checked to 5min: alert every 10 seconds because I get 10 seconds feed. // These settings work well. // Chart set to 5 min, AA settings to 15 min, Run Every not checked: alert every 10 seconds and with SCAN. // Chart set to 5 min, AA settings to 30 min, Run Every not checked: alert every 10 seconds and with SCAN. // Chart set to 5 min, AA settings to 30 min, Run Every set to 15 min: alert every 10 seconds and with SCAN. // Chart set to 5 min, AA settings to 120 min, Run Every set to 15 min: alert every 10 seconds and with SCAN. // Chart set to 5 min, AA settings to 5 min, Run Every not checked: alert every 10 seconds and with SCAN. // Chart set to 15 min, AA settings to 5 min, Run Every not checked: alert NOT every 10 seconds, only with click SCAN. // Taking the chart away from the 5 min setting throws a spanner in the works. // Chart set to 15 min, AA settings to 5 min, Run Every set to 15 min: alert NOT every 10 seconds, only with click SCAN. ***** I am trying to go through this methodically to get some confidence in the way this works but I am struggling at present. Is there something glaringly obvious I have missed? -- Regards ChrisB
