- Joined
- 8 November 2006
- Posts
- 82
- Reactions
- 0
Ok, i've got AmiBroker up and running, I'm currently using data from PremiumData. I'm using the following code:
*********************************
// techtrader v2 amibroker version
// here we define buy conditions and name each one as a variable
PositionSize = -10; // always invest only 10% of the current Equity
cond1=Cross(H,Ref(HHV(H,10),-1)); // when todays high crosses last highest high over the last 10 periods
cond2=H > EMA(C,40); // todays high is greater than the 40 day Exp MA of closes
cond3=HHVBars(H,70) == 0; // todays high is the highest for 70 periods
cond4=EMA(V*C,21) > 500000; // ensure at least $500k of money flow
cond5=C < 10.00; // only trading in stocks less than $10
cond6=C > O; // todays close higher than open
// the following line is the trigger if all conditions satisfied
Buy=cond1 AND cond2 AND cond3 AND cond4 AND cond5 AND cond6;
// here we define variables used once in the trade
ApplyStop( stopTypeLoss, stopModePercent, amount=10 );
Sell= Cross(Ref(EMA(L,180),-1),C); // close crosses below yesterdays average of the low
// here we define what gets displayed on the chart
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy , colorYellow, colorRed ), 0, IIf( Buy , Low, High));
Filter = Buy; // lists exploration results conforming to our buy criteria
AddColumn(Buy, "buy", 1.0); //
***********************************
Did a scan of EOD for 14/12/2006 across the entire ALL Ords and got back the following:
**************************
ABS Buy 14/12/2006 $8.620
AED Buy 14/12/2006 $4.290
AOE Buy 14/12/2006 $1.220
AUB Buy 14/12/2006 $4.350
AXA Buy 14/12/2006 $7.000
DMX Buy 14/12/2006 $0.890
FKP Buy 14/12/2006 $6.400
GUD Buy 14/12/2006 $8.520
JHX Buy 14/12/2006 $8.990
MCC Buy 14/12/2006 $5.200
MGW Buy 14/12/2006 $3.400
MND Buy 14/12/2006 $8.640
ORG Buy 14/12/2006 $7.900
RMI Buy 14/12/2006 $0.055
SDG Buy 14/12/2006 $3.310
SGL Buy 14/12/2006 $0.420
TLS Buy 14/12/2006 $4.060
**************************
I want to ensure my setup is correct, so I was just wondering if someone could run a scan so that I can compare results.
Thanks
Peakey
*********************************
// techtrader v2 amibroker version
// here we define buy conditions and name each one as a variable
PositionSize = -10; // always invest only 10% of the current Equity
cond1=Cross(H,Ref(HHV(H,10),-1)); // when todays high crosses last highest high over the last 10 periods
cond2=H > EMA(C,40); // todays high is greater than the 40 day Exp MA of closes
cond3=HHVBars(H,70) == 0; // todays high is the highest for 70 periods
cond4=EMA(V*C,21) > 500000; // ensure at least $500k of money flow
cond5=C < 10.00; // only trading in stocks less than $10
cond6=C > O; // todays close higher than open
// the following line is the trigger if all conditions satisfied
Buy=cond1 AND cond2 AND cond3 AND cond4 AND cond5 AND cond6;
// here we define variables used once in the trade
ApplyStop( stopTypeLoss, stopModePercent, amount=10 );
Sell= Cross(Ref(EMA(L,180),-1),C); // close crosses below yesterdays average of the low
// here we define what gets displayed on the chart
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy , colorYellow, colorRed ), 0, IIf( Buy , Low, High));
Filter = Buy; // lists exploration results conforming to our buy criteria
AddColumn(Buy, "buy", 1.0); //
***********************************
Did a scan of EOD for 14/12/2006 across the entire ALL Ords and got back the following:
**************************
ABS Buy 14/12/2006 $8.620
AED Buy 14/12/2006 $4.290
AOE Buy 14/12/2006 $1.220
AUB Buy 14/12/2006 $4.350
AXA Buy 14/12/2006 $7.000
DMX Buy 14/12/2006 $0.890
FKP Buy 14/12/2006 $6.400
GUD Buy 14/12/2006 $8.520
JHX Buy 14/12/2006 $8.990
MCC Buy 14/12/2006 $5.200
MGW Buy 14/12/2006 $3.400
MND Buy 14/12/2006 $8.640
ORG Buy 14/12/2006 $7.900
RMI Buy 14/12/2006 $0.055
SDG Buy 14/12/2006 $3.310
SGL Buy 14/12/2006 $0.420
TLS Buy 14/12/2006 $4.060
**************************
I want to ensure my setup is correct, so I was just wondering if someone could run a scan so that I can compare results.
Thanks
Peakey