PureBytes Links
Trading Reference Links
|
Hi David
enclosed is a email TJ sent me some time ago when trying to work with Ticks
(points) .
I never followed it up much as i had to many things on the go at once but it
should help you with your problem .
or atleast keep you going until TJ can help you
Regards David
/**** ticks */
/*Hi, you have to define the tick size by yourself, then you can use:
ticksize = .100;
buy = close > 10 * ticksize + ref( close, -1 );*/
ticksize = 1;
/* ref( cross( close, ma( close, 21 ) ), -1 ) AND close > ma( close, 21 );
*/
cond1= ref( cross(h, ma (c, 20)),-0) ;
cond2= ref( cross(h, ma (c, 20)),-1) ;
buy = ref( cross(h, ma (c, 20)),-0) or ref( cross(l, ma (c, 20)),-0) OR
ref( cross(l, ma (o, 20)),-0)
AND ref( cross(h, ma (c, 20)),-1) or ref( cross(l, ma (c, 20)),-1) and
close > 10 * ticksize + ref( close, -1 );
sell = 0;
----- Original Message -----
From: "David Beaudoin" <dcbeaudoin@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, May 31, 2001 5:50 AM
Subject: [amibroker] Cross and Exit rules
|