zqqz000 發表於 13-1-25 21:27

請問如何將RSI指標改為成交量?

請問如何將RSI指標改為成交量?
留下其提示音功能~例如達到500口後可發出提示音~~
改了好久都不行{:4_161:},請幫幫小弟~感謝

以下是MC的RSI指標~~

inputs:
    Price( Close ),
    Length( 14 ),
    OverSold( 30 ),
    OverBought( 70 ),
    OverSColor( Cyan ),
    OverBColor( Red ) ;

variables:var0( 0 ) ;

var0 = RSI( Price, Length ) ;

Plot1( var0, "RSI" ) ;
Plot2( OverBought, "OverBot" ) ;
Plot3( OverSold, "OverSld" ) ;

                  
if var0 > OverBought then
    SetPlotColor( 1, OverBColor )
else if var0 < OverSold then
    SetPlotColor( 1, OverSColor ) ;

condition1 = var0 crosses over OverSold ;
if condition1 then
    Alert( "Indicator exiting oversold zone" )
else
begin
condition1 = var0 crosses under OverBought ;
if condition1 then
    Alert( "Indicator exiting overbought zone" ) ;
end;


googleandy 發表於 13-1-25 21:47

試試看~

plot1(VOLUME, "volume", red);
if volume>500 then Alert( "Volume>500 !!" )

zqqz000 發表於 13-1-25 22:12

googleandy 發表於 13-1-25 21:47 static/image/common/back.gif
試試看~

plot1(VOLUME, "volume", red);


感謝大大回復~~{:4_209:}
500口的部份其實是想當可變數值在1分鐘K中隨時調整,
所以才會想以RSI指標當範本修改~~例如RSI中70,30參數那樣調整~~
謝謝~~



googleandy 發表於 13-1-25 22:17

zqqz000 發表於 13-1-25 22:12 static/image/common/back.gif
感謝大大回復~~
500口的部份其實是想當可變數值在1分鐘K中隨時調整,
所以才會想以RSI指標當範 ...
input: Vol(500);

plot1(VOLUME, "volume", red);
if volume>Vol then Alert( "Giant Volume !!" )

另, 成交量 "樣式" 用 "柱狀圖" 比較習慣.

頁: [1]
查看完整版本: 請問如何將RSI指標改為成交量?