討論區列表
元大MultiCharts
一般模式
討論串模式
標題:
[發表] 行家指標-MC繪製不出來
by 2011-10-24 21:57:19
0
暱稱:
肥貓
信箱:不顯示
成就:發文(0) / 回文(0) / 推薦(0)
行家指標的程式碼為下
-------------------------------------------------------
Parameter:Length(13)
Variables:Q(0),A1(0),A2(0),A0(0),B0(0)
Q=(2*Close+High+Low)/ 4
A1=Lowest(Low,Length)
A2=Highest(High,Length)
A0=Ema((Q-A1)/(A2-A1)*100,13)
B0=Ema(0.667*A0[1]+0.333*A0,3)
Value1=A0-B0
If Value1>0 then
Drawbar01(A0,B0,"",Red,Default,4)
End if
If Value1<0 then
Drawbar02(A0,B0,"",Green,Default,4)
End if
If A0 cross over B0 then
Drawbar03(0,100,"",Magenta)
End if
If A0 cross under B0 then
Drawbar03(0,100,"",Cyan)
End if
If Value1>3 then
Draw04(B0,"多方力道",Darkred)
Else NoDraw(04)
End if
If Value1<-3 then
Draw05(A0,"空方力道",Darkgreen)
Else NoDraw(05)
End if
If LastBarOnChart then
Draw1(A0,"A",Red)
Draw2(B0,"B",Green)
Draw3(Value1,"力度",Blue)
End if
編譯MC時繪圖不出來
Input:Length(13);
Variables:Q(0),A1(0),A2(0),A0(0),B0(0);
Q=(2*Close+High+Low)/ 4;
A1=Lowest(Low,Length);
A2=Highest(High,Length);
A0=XAverage((Q-A1)/(A2-A1)*100,13);
B0=XAverage(0.667*A0[1]+0.333*A0,3);
Value1=A0-B0;
If Value1>0 Then Begin
Plotbar01(A0,B0,"",Red,Default,4);
End;
If Value1<0 Then Begin
Plotbar02(A0,B0,"",Green,Default,4);
End;
If A0 cross over B0 Then Begin
Plotbar03(0,100,"",Magenta);
End;
If A0 cross under B0 Then Begin
Plotbar03(0,100,"",Cyan);
End;
If Value1>3 Then Begin
Plot04(B0,"多方力道",Darkred);
End Else Begin NoPlot(04);
End;
If Value1<-3 Then Begin
Plot05(A0,"空方力道",Darkgreen);
End Else Begin NoPlot(05);
End;
If LastBarOnChart Then Begin
Plot1(A0,"A",Red);
Plot2(B0,"B",Green);
Plot3(Value1,"力度",Blue);
End;
如何修改?
第1篇:
[發表] 行家指標-MC繪製不出來
by 2011-10-25 09:01:18
0
暱稱:
客服一號
信箱:folkchen.sp2@gmail.com
成就:發文(0) / 回文(0) / 推薦(96)
Input:Length(13);
Variables:Q(0),A1(0),A2(0),A0(0),B0(0);
Q=(2*Close+High+Low)/ 4;
A1=Lowest(Low,Length);
A2=Highest(High,Length);
if (A2-A1) <> 0 then A0=XAverage((Q-A1)/(A2-A1)*100,13);
B0=XAverage(0.667*A0[1]+0.333*A0,3);
Value1=A0-B0;
PlotPB(A0,B0,A0,B0,"", iff(Value1>0,Red,Green),Default,4);
If A0 cross over B0 Then Begin
Plot11(0,"",Magenta);
Plot12(100,"",Magenta);
End else If A0 cross under B0 Then Begin
Plot11(0,"",Cyan);
Plot12(100,"",Cyan);
End;
If Value1>3 Then Begin
Plot24(B0,"b-power",Darkred);
End Else Begin NoPlot(24);
End;
If Value1<-3 Then Begin
Plot25(A0,"s-Power",Darkgreen);
End Else Begin NoPlot(25);
End;
If LastBarOnChart Then Begin
Plot21(A0,"A",Red);
Plot22(B0,"B",Green);
Plot23(Value1,"power",Blue);
End;
// plot11 , plot12 要自己去改變樣式,改為柱狀圖
編輯文章 by 客服一號 2011-10-25 09:15:17
第2篇:
[發表] 行家指標-MC繪製不出來
by 2011-10-25 09:08:05
0
暱稱:
肥貓
信箱:不顯示
成就:發文(0) / 回文(0) / 推薦(0)
顯示浮點運算操作不正確,無法匯出?
第3篇:
[發表] 行家指標-MC繪製不出來
by 2011-10-25 09:20:06
0
暱稱:
客服一號
信箱:folkchen.sp2@gmail.com
成就:發文(0) / 回文(0) / 推薦(96)
漲跌停時會有除零溢位
修改紅字處
第4篇:
[發表] 行家指標-MC繪製不出來
by 2011-10-25 10:53:29
0
暱稱:
肥貓
信箱:不顯示
成就:發文(0) / 回文(0) / 推薦(0)
還是不行
顯示浮點運算操作不正確,無法匯出?
第5篇:
[發表] 行家指標-MC繪製不出來
by 2011-10-25 12:21:27
0
暱稱:
客服一號
信箱:folkchen.sp2@gmail.com
成就:發文(0) / 回文(0) / 推薦(96)
我這邊跑是OK的
你跑什麼商品,資料長度及設定為何?
第一頁
上一頁
1
下一頁
最後頁
討論區列表
元大MultiCharts
MultiCharts
│
討論區
│
會員專區
│
教學講座
│
支援與服務
│
產品購買
│
申請試用
All rights for MultiCharts Trading Software are reserved by MultiCharts, LLC
凱衛資訊股份有限公司 營利事業統一編號(21261212) 著作權所有 本網站最佳瀏覽解析度為 1024 x 768
隱私權政策
│
網站安全政策
│
著作權說明
若不清楚點選圖片更新驗證碼
註冊帳號
忘記密碼
解除鎖定