I am using an alert with one of my formulas, Anytime I generate a buy or sell signal I want it to run an external program. The buy and sell signals are working as I expect ( I see the arrows drawn correctly on my chart) But the alerts only seem to fire when I actually look at the chart. For example I had a buy signal at 9:20 AM and I check the chart at 10:30am thats when I see the external program run
// Sample Code PlotShapes( Buy * shapeUpArrow, colorGreen ); PlotShapes( Sell * shapeDownArrow, colorRed ); AlertIf( Buy, "EXEC c:\\App.exe", Name() + "~Open" , 3 ); AlertIf( Sell, "EXEC c:\\eApp.exe", Name() + "~Close" , 3 );
