Buy = Barssince(Cross(EMA50,,EMA200); Sell = Barssince(Cross(EMA200,,EMA50);
From: ford7k Sent: Tuesday, July 27, 2010 9:14 AM To: [email protected] Subject: [amibroker] Req help coding problems bars since crossover and exploration-same stock Hi Afl experts Please help with minor problem -coding lines needed First thing In the exploration I like to get buy=upcrossover(say 50M over 200MA) SELL = 50MA BELOW 200MA So far no prob I want to know in the exploration,that "how many bars passed since latest,most recent crossover" for buy and for crossover sell. I tried barssince but nothing happening. Can somebody guide me please-may be doing something wrong. Second problem I run an exploration in intraday or daily. I get same stock appearing manytimes. How to get one stock appear only onetime? May be there are signals for buy or sell for just ten stocks but if each stock appears over 7 times or 10 times,I feel it as a problem. thanks in advance regards ford
