A SIMPLE TRADING SYSTERM


Sử dụng 2 đường MA5 và MA 10.
_Mua : khi price cut MA10.
_Bán : Khi price cut MA5.
// simple trading system
Buy = Cross( C, MA( C, 10 ) );
Sell = Cross( MA( C, 5 ), C );
Cover = Buy;
Short =Sell;
Plot(C,"",IIf(C>Ref(C,-1),colorGreen,colorRed),styleLine);
Plot(MA( C, 10 ),"MA10",colorWhite,styleLine);
Plot(MA( C, 5 ),"MA5",colorYellow,styleLine|styleThick);
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low, High ) );

Ticker Trade Date Close
ASP Sell 12/26/2008 13.4000
ASP Short 12/26/2008 13.4000
BBC Sell 12/26/2008 13.9000
BBC Short 12/26/2008 13.9000
BPC Buy 12/26/2008 9.8000
BPC Cover 12/26/2008 9.8000
BTH Sell 12/26/2008 8.5000
BTH Short 12/26/2008 8.5000
CAN Sell 12/26/2008 9.8000
CAN Short 12/26/2008 9.8000
CDC Buy 12/26/2008 20.8000
CDC Cover 12/26/2008 20.8000
CID Sell 12/26/2008 7.5000
CID Short 12/26/2008 7.5000
CJC Buy 12/26/2008 18.5000
CJC Cover 12/26/2008 18.5000
CMC Sell 12/26/2008 8.4000
CMC Short 12/26/2008 8.4000
CTN Sell 12/26/2008 11.5000
CTN Short 12/26/2008 11.5000
DAE Buy 12/26/2008 11.2000
DAE Cover 12/26/2008 11.2000
DIC Buy 12/26/2008 13.8000
DIC Cover 12/26/2008 13.8000
DRC Buy 12/26/2008 17.4000
DRC Cover 12/26/2008 17.4000
DST Buy 12/26/2008 7.6000
DST Cover 12/26/2008 7.6000
FMC Buy 12/26/2008 11.9000
FMC Cover 12/26/2008 11.9000
HAX Buy 12/26/2008 14.2000
HAX Cover 12/26/2008 14.2000
HBD Buy 12/26/2008 10.1000
HBD Cover 12/26/2008 10.1000
HJS Buy 12/26/2008 10.8000
HJS Cover 12/26/2008 10.8000
HMC Buy 12/26/2008 11.9000
HMC Cover 12/26/2008 11.9000
HRC Sell 12/26/2008 23.1000
HRC Short 12/26/2008 23.1000
ICF Buy 12/26/2008 6.8000
ICF Cover 12/26/2008 6.8000
IFS Sell 12/26/2008 7.6000
IFS Short 12/26/2008 7.6000
ILC Buy 12/26/2008 14.0000
ILC Cover 12/26/2008 14.0000
KHP Buy 12/26/2008 9.7000
KHP Cover 12/26/2008 9.7000
KMF Buy 12/26/2008 6.4000
KMF Cover 12/26/2008 6.4000
L43 Buy 12/26/2008 15.8000
L43 Cover 12/26/2008 15.8000
LSS Buy 12/26/2008 14.4000
LSS Cover 12/26/2008 14.4000
LUT Sell 12/26/2008 10.7000
LUT Short 12/26/2008 10.7000
MCV Buy 12/26/2008 8.7000
MCV Cover 12/26/2008 8.7000
NAV Buy 12/26/2008 9.7000
NAV Cover 12/26/2008 9.7000
NBC Buy 12/26/2008 31.0000
NBC Cover 12/26/2008 31.0000
NKD Sell 12/26/2008 24.9000
NKD Short 12/26/2008 24.9000
NST Sell 12/26/2008 11.4000
NST Short 12/26/2008 11.4000
NTL Buy 12/26/2008 33.8000
NTL Cover 12/26/2008 33.8000
PGS Buy 12/26/2008 10.4000
PGS Cover 12/26/2008 10.4000
PIT Sell 12/26/2008 12.0000
PIT Short 12/26/2008 12.0000
PLC Sell 12/26/2008 21.0000
PLC Short 12/26/2008 21.0000
PMS Sell 12/26/2008 18.1000
PMS Short 12/26/2008 18.1000
POT Sell 12/26/2008 8.2000
POT Short 12/26/2008 8.2000
PPG Sell 12/26/2008 10.2000
PPG Short 12/26/2008 10.2000
PTS Buy 12/26/2008 14.3000
PTS Cover 12/26/2008 14.3000
PVE Buy 12/26/2008 15.8000
PVE Cover 12/26/2008 15.8000
QNC Buy 12/26/2008 22.5000
QNC Cover 12/26/2008 22.5000
RIC Sell 12/26/2008 17.2000
RIC Short 12/26/2008 17.2000
S12 Sell 12/26/2008 10.6000
S12 Short 12/26/2008 10.6000
S64 Buy 12/26/2008 12.8000
S64 Cover 12/26/2008 12.8000
SAF Buy 12/26/2008 18.9000
SAF Cover 12/26/2008 18.9000
SDD Buy 12/26/2008 7.9000
SDD Cover 12/26/2008 7.9000
SFC Sell 12/26/2008 47.5000
SFC Short 12/26/2008 47.5000
SGT Sell 12/26/2008 25.5000
SGT Short 12/26/2008 25.5000
SHC Buy 12/26/2008 19.2000
SHC Cover 12/26/2008 19.2000
SIC Sell 12/26/2008 14.6000
SIC Short 12/26/2008 14.6000
SJ1 Sell 12/26/2008 12.1000
SJ1 Short 12/26/2008 12.1000
SJD Buy 12/26/2008 14.0000
SJD Cover 12/26/2008 14.0000
SNG Buy 12/26/2008 20.5000
SNG Cover 12/26/2008 20.5000
TCM Buy 12/26/2008 8.7000
TCM Cover 12/26/2008 8.7000
TCR Sell 12/26/2008 7.8000
TCR Short 12/26/2008 7.8000
TNA Sell 12/26/2008 15.8000
TNA Short 12/26/2008 15.8000
TNG Buy 12/26/2008 12.8000
TNG Cover 12/26/2008 12.8000
TRI Buy 12/26/2008 7.7000
TRI Cover 12/26/2008 7.7000
TS4 Buy 12/26/2008 8.0000
TS4 Cover 12/26/2008 8.0000
TSC Buy 12/26/2008 32.3000
TSC Cover 12/26/2008 32.3000
TTF Sell 12/26/2008 12.9000
TTF Short 12/26/2008 12.9000
TTP Buy 12/26/2008 17.7000
TTP Cover 12/26/2008 17.7000
TYA Buy 12/26/2008 11.1000
TYA Cover 12/26/2008 11.1000
UNI Buy 12/26/2008 12.7000
UNI Cover 12/26/2008 12.7000
VC2 Sell 12/26/2008 31.4000
VC2 Short 12/26/2008 31.4000
VC7 Sell 12/26/2008 10.5000
VC7 Short 12/26/2008 10.5000
VHG Sell 12/26/2008 6.4000
VHG Short 12/26/2008 6.4000
VIS Buy 12/26/2008 23.9000
VIS Cover 12/26/2008 23.9000
VMC Buy 12/26/2008 27.0000
VMC Cover 12/26/2008 27.0000
VNINDEX Buy 12/26/2008 304.4600
VNINDEX Cover 12/26/2008 304.4600
VSH Sell 12/26/2008 27.6000
VSH Short 12/26/2008 27.6000

0 nhận xét: