作者k29571159 (水果XD)
看板Trading
标题[问题] 原谅小弟愚蠢QQ~问一下这几段程式
时间Sun Oct 30 19:48:48 2011
请问这几段程式的买进卖出的条件是@@?
因为我不熟悉语法>"<
1. RSI
Inputs: RSILength(10), OverSold(30);
If Currentbar > 1 AND RSI(Close, RSILength) Cross Over OverSold Then
Buy ("RSIbuy") This Bar on Close;
Inputs: OverBought(70);
If Currentbar > 1 AND RSI(Close, RSILength) Cross Below OverBought Then
Sell ("RSIsell") This Bar on Close;
=================================================================
2. KD
Inputs: Length(14), OverBought(70),OverSold(30);
Variables: KLine(0), DLine(0);
KLine = SlowKCustom(High, Low, Close, Length);
DLine = SlowDCustom(High, Low, Close, Length);
If KLine Crosses Below DLine AND KLine > OverBought AND DLine > OverBought Then
Sell ("Sellkd") This Bar on Close;
If KLine Crosses Above DLine AND KLine < OverSold AND DLine < OverSold Then
Buy ("buykd") This Bar on Close;
==================================================================
3. MACD
Inputs: FastMovAvg(12), SlowMovAvg(26), MACDMovAvg(9);
Variables: XMACD(0);
If CurrentBar > 2 AND MACD(Close, FastMovAvg, SlowMovAvg) Crosses Above XAverage(MACD(Close, FastMovAvg, SlowMovAvg), MACDMovAvg)[1] Then
Buy ("MACDbuy") This Bar on Close;
If CurrentBar > 2 AND MACD(Close, FastMovAvg, SlowMovAvg) Crosses Below XAverage(MACD(Close, FastMovAvg, SlowMovAvg), MACDMovAvg)[1] Then
Sell ("MACDsell") This Bar on Close;
==================================================================
4. CCI
Inputs: CCILen(20), FastLen(10), SlowLen(20);
Variables: CCIVal(0);
CCIVal = CCI(CCILen);
If AverageFC(CCIVal, FastLen) Crosses AboveAverageFC(CCIVal, SlowLen) Then
Buy ("CCIbuy") This Bar on Close;
CCIVal = CCI(CCILen);
If AverageFC(CCIVal, FastLen) Crosses BelowAverageFC(CCIVal, SlowLen) Then
Sell ("CCIsell") This Bar on Close;
==================================================================
5. DMI
Inputs: DMILen(14), Consec(3), MinDiff(0);
Variables: DMIDiff(0);
DMIDiff = DMIPlus(DMILen) - DMIMinus(DMILen);
If DMIDiff[Consec] > 0 Then Begin
If DMIDiff >= MinDiff AND CountIF(DMIDiff > DMIDiff[1], Consec) = Consec Then
Buy ("DMIbuy") This Bar on Close;
End;
DMIDiff = DMIPlus(DMILen) - DMIMinus(DMILen);
If DMIDiff[Consec] < 0 Then Begin
If AbsValue(DMIDiff) >= MinDiff AND CountIF(DMIDiff < DMIDiff[1], Consec) = Consec Then
Sell ("DMIsell") This Bar on Close;
End;
===================================================================
拜托大家了>"<
--
(Gossiping) [ptt.cc] [新闻] 陈致中参选 冲击民进党选票
→ Ebisu:他选的上我请楼下每人一桶KFC 05/12 11:05
推 Dillon0801:他会请的话 =====我请大家吃麦当劳超值全餐===== 05/12 11:18
推 nopass:只要Ebisu请以上这些人一人一桶kfc 我就请下面的人吃鸡腿堡 05/12 11:47
推 debris:Ebisu有请每人一桶kfc的话 我请下面的人吃鼎王 ZZZzzzzz 05/12 12:02
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 123.110.15.194
1F:推 newred:好眼熟唷~这应该是TS里面的吧 :) 10/30 20:07
2F:→ k29571159:对啊@@~ 10/30 20:14