請問師兄,師姐有冇ZeroLAG MACD 及PPO指標
請問師兄師姐可否給我 ZeroLAG MACD及Percentage Price Oscillator (PPO)指標.謝謝
kennylai 發表於 17-8-24 10:46
謝謝大大...........但我不懂如果改成multicharts 的指標碼,請大大呢位善心人幫幫我,謝謝
...
ZeroLag MACD:
Input:Price(Close),FP(12),SP(24),SigP(9);
Vars:ZeroLagMACD(0),Signal(0);
ZeroLagMACD = (2*Xaverage(Close,FP)-Xaverage(Xaverage(Close,FP),FP))- (2*Xaverage(Close,SP)-XAverage(XAverage(Close,SP),SP));
Signal = (2*xaverage(ZeroLagMACD,SigP)-XAverage(XAverage(ZeroLagMACD,SigP),SigP));
Plot1(ZeroLagMACD,"ZLMACD");
Plot2(Signal,"Signal");
Zero Lag MACD
http://www.danglanglang.com/gupiao/2524
Percentage Price Oscillator
http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:price_oscillators_ppo
把看到的公式寫成指標是最好的練習囉~加油~
俗在素感謝樓上的分享{:4_113:} apollochung 發表於 17-8-24 08:12
Zero Lag MACD
http://www.danglanglang.com/gupiao/2524
謝謝大大...........但我不懂如果改成multicharts 的指標碼,請大大呢位善心人幫幫我,謝謝
apollochung 發表於 17-8-24 08:12
Zero Lag MACD
http://www.danglanglang.com/gupiao/2524
大大我識入就不會請教你,做人唔好做到咁自私,它日到你有求於人時,你就明白做人道理.Sadhu
我真係咁自私就唔幫你google資料啦...哈哈... apollochung 發表於 17-8-25 08:16
我真係咁自私就唔幫你google資料啦...哈哈...
ZeroLAG MACD 及PPO指標的資料之前已經查過很多,亦花了兩星期都未能成功,不懂如何入改成multicharts碼,multicharts試用亦差不多到期無時間研究,已經對大大講到請求,幫忙之類............(人求我易,我求人難)
ZLMACD=(2*EMA(C,SN)-EMA(EMA(C,SN),SN))-(2*EMA(C,LP)-EMA(EMA(C,LP),LP));
ZLMACDS=2*EMA(ZLMACD,M)-EMA(EMA(ZLMACD,M),M);
幫你寫,表面幫你,實際害了你。
SN 是快線 12
LP 是慢線 26
M 是拉的均線 9
不懂甚麼呢?
EMA 該轉為甚麼? Average? AverageFC? XAverage? WAverage?
為何不找找現有的 Mov Avg Exponential 指標看清楚?
太難了,那現有的 macd 指標也看一看吧,抄也是看著它來抄啊。
本帖最後由 kiyi0317 於 17-11-21 22:21 編輯
我有興趣,等我試試
Inputs : FastLength( 12 ), SlowLength( 26 ), MACDLength( 9 );
variables : ZLMACD (0), ZLMACDS (0), EMA1 (0), EMA2 (0), EMA3 (0), DIFF (0);
EMA1 = XAverage(close,FastLength);
EMA2 = XAverage(close,SlowLength);
ZLMACD = (2*EMA1-EMA1(EMA1,FastLength))-(2*EMA2-EMA2(EMA2,SlowLength));
EMA3 = XAverage(ZLMACD,MACDLength);
ZLMACDS = 2*EMA3-EMA3(EMA3,MACDLength);
DIFF = ZLMACD - ZLMACDS;
Plot1( ZLMACD, "ZLMACD" ) ;
Plot2( ZLMACDS, "MACDAvg" ) ;
Plot3( DIFF, "MACDDiff" ) ;
Plot4( 0, "ZeroLine" ) ;
為何不能complied?
感謝大大分享{:4_209:} input: SN(12),LP(26),M(9);
vars:ZLMACD(0),ZLMACDS(0),DIFF(0);
ZLMACD=(2*XAverage(C,SN)-XAverage(XAverage(C,SN),SN))-(2*XAverage(C,LP)-XAverage(XAverage(C,LP),LP));
ZLMACDS=2*XAverage(ZLMACD,M)-XAverage(XAverage(ZLMACD,M),M);
DIFF = ZLMACD - ZLMACDS;
Plot1( ZLMACD, "ZLMACD" ) ;
Plot2( ZLMACDS, "MACDAvg" ) ;
Plot3( DIFF, "MACDDiff" ) ;
Plot4( 0, "ZeroLine" ) ;
if (XXX) then SetPlotColor(1, upColor2); // 指標一轉色就可以係圖度睇到好靚的 V
if (XXX) then SetPlotColor(1, upColor2); // 唔加 才係 stock scanner度睇到轉色
事實上,我想見到 四隻顏色:
紅色 - 剛 macd cross over Avgmacd,
黃色 macd > Avgmacd,
綠色 剛 macd corss below Avgmacd,
靛色 macd < Avgmacd。
這樣才是係 Stock Scanner 清楚睇到邊隻剛打交叉。
雖然我已寫好了,這個「小練習」,應該很樂意去做吧!
因為所有打交叉的指標都可以「套用這套顏色著法」
頁:
[1]