Help Needed to run AFL

#1
Hello Everyone,
We have a following code to create buy or sell. But this works when you pick the AFL file and scan it.

condition1=c>o and ref(c,-1)<ref(o,-1) and ref(c,-2)<ref(o,-2) and ref(c,-3)<ref(o,-3);
condition2=c<o and ref(c,-1)>ref(o,-1) and ref(c,-2)>ref(o,-2) and ref(c,-3)>ref(o,-3);
Buy= Condition1;
Sell= Condition2;
PlotShapes( condition1 * shapeUpArrow, colorGreen, 0, L, -20 );
PlotShapes( condition2 * shapeDownArrow, colorRed, 0, H, -20 );


But I would like this has to run automatically when AmiBroker opened and should give me alert for all F&O stocks when above condition is met. Could you please any one of you help me on this?

Thanks
Bala
 

Similar threads