Hi ford I am not a expert, i am learning try this EMA13=EMA(C,13); r1 = Param( "Fast avg", 12, 2, 200, 1 );r2 = Param( "Slow avg", 26, 2, 200, 1 );r3 = Param( "Signal avg", 9, 2, 200, 1 );a=MACD(r1,r2);b=Signal(r1,r2,r3); Buy=C>EMA13 AND a>b;Sell=C<EMA13 AND a<b; Filter=Buy OR Sell;AddTextColumn(WriteIf(Buy,"Buy","Sell"),"Status",1,IIf(Buy,colorYellow,colorYellow),IIf(Sell,colorRed,colorGreen));
regardsafzal --- On Fri, 8/20/10, ford7k <[email protected]> wrote: From: ford7k <[email protected]> Subject: [amibroker] Req Exploration code for finding stocks with price crossed today above 20ema and To: [email protected] Date: Friday, August 20, 2010, 9:29 AM Hi experts I run my update of eod and try to locate only those stocks that made a price cross above 13Ema and MACD crossed SIGNAL. When I tried, I AM GETTING ALL OLD THINGS,(THAT MADE CROSSOVER MANY DAYS AGO) MAKING IT DIFFICULT TO LOCATE ONLY THOSE THAT satisfied both criteria JUST TODAY. How to fix this exploration requirement,please guide me with needed code lines I tried Buy = C > EMA(C,13) AND MACD > SIGNAL; SELL = C< EMA(C,13) AND MACD < SIGNAL; Filter = Buy or Sell; Thanks for help regards ford
