PureBytes Links
Trading Reference Links
|
Hi all L am playing with and afl and wanted the
sell signal to be generated
if the close was equal to or lower bar of the
buy signal ?
no luck yet, so I thought I would ask some
the more accomplished coders if the could see a way ...
thanks David
/* tick_2 */
cond1= o > ma( close, 21) and ref( cross( o, ma(
close, 21 ) ), -1 )OR l > ma( close, 21) and ref( cross( l, ma( close, 21
) ), -1 )OR c > ma( close, 21) and ref( cross(c, ma( close, 21 ) ), -1
)OR h > ma( close, 21) and ref( cross( h, ma( close, 21 ) ), -1
);
ticksize = .01;
sign = cond1 AND close > 10 * ticksize +
ref( close, -1 );buy = sign;
sellsign=sign; ??sell =
sign; ???
|