does this complywith your logic?
_SECTION_BEGIN("hlp_pablo");
z1=MA(*H*,6);
z2=MA(*L*,6);
*
Buy*=Cross(*C*,Ref(z1,-1));
*
Sell*=Cross(Ref(z2,-1),*C*);
PlotShapes(*Buy***shapeUpArrow*+*Sell***shapeDownArrow*,IIf(*Buy*,*
colorGreen*,IIf(*Sell*,*colorRed*,*Null*)));
_SECTION_END();
On Mon, M
Try removing the shift parameter as shown below in red
- Original Message -
From: Pablo Bozzolo
To: No Reply
Cc: amibroker@yahoogroups.com
Sent: Sunday, May 23, 2010 11:31 AM
Subject: Re: [amibroker] Digest Number 9285
Hi guys! I'm crazy because I can't unde
Hi guys! I'm crazy because I can't understand the CROSS() function
behaviour.
The idea is built an indicator which must give Buy or Sell signals depending
on the CLOSE price cross above / below 6-days-moving-averages of Hi / Lo
prices. Ussually a "x-shift" is specified.
My problem is this system