[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: AFL help...



PureBytes Links

Trading Reference Links

Hi, Mitso!
Very elegant way to solve the problem, let me concentrate on this for 
a while...Exrem seems easier to understand than "flip" lol
Thanks!
Gilles
--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx> 
wrote:
> Gilles,
> Here is your request G :
> 
> // INDICATOR BUILDER PART
> Plot(MACD(),"MACD",1,1);
> Plot(Signal(),"Signal",4,1);
> COND1=Cross(Signal(),MACD());
> PlotShapes(shapeUpTriangle*COND1,colorYellow);// all COND1 before 
> Exrem
> COND2=Cross(Signal(),0);
> PlotShapes(shapeSmallCircle*COND2,colorBlue);// all COND2 before 
Exrem
> COND1=ExRem(COND1,COND2);COND2=ExRem(COND2,COND1);
> G=COND1;
> PlotShapes(shapeDownArrow*G,colorRed);
> // AA PART
> Filter=G;
> AddColumn(C,"");
> Sell=Filter;
> 
> You will see a yellow triangle when Cross(Signal(),MACD()) and a 
blue 
> small circle when Cross(Signal(),0).
> [We actually search for the first yellow triangle after the blue 
> circle and ignore the rest triangles until a new blue circle 
appears]
> Exrem( ) removes excessive signals and the remaining signals will be
> COND1, COND2, COND1, COND2, ...
> When I was wtiting the text, I was wondering what if both COND1, 
> COND2 occur on the same day.
> I explored all N100 stocks for the last 45 months with
> 
> COND1=Cross(Signal(),MACD());
> COND2=Cross(Signal(),0);
> Filter=COND1 AND COND2;
> AddColumn(C,""); 
> 
> The result was empty, it never happened, we may stay cool and avoid 
> further research [why, if possible etc...]
> Dimitris Tsokakis
> --- In amibroker@xxxxxxxxxxxxxxx, "gillesdeprez" 
<gillesdeprez@xxxx> 
> wrote:
> > I give up, my brain has melted...
> > Please, how can I set up a condition as:
> > The MACD line crosses below the  MACD signal FOR THE FIRST TIME 
> SINCE 
> > the signal has crossed above zero.
> > TIA to the group!
> > Gilles


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/