feelboring 發表於 09-10-14 00:34

請問一下AB的BIAS的公式要如何寫壓??

可以請會的大大指導一下嗎~~ 感恩!!!

綠茶妹 發表於 09-10-15 10:06

Bias公式,請試試!

我把公式更改,让你可以改参数:
_SECTION_BEGIN("Bias");
Period1 = Param( "Period1", 6, 0, 900, 1 );
Period2 = Param( "Period2", 12, 0, 900, 1 );
Period3 = Param( "Period3", 24, 0, 900, 1 );
Period4 = Param( "Period4", 48, 0, 900, 1 );
Period5 = Param( "Period5", 96, 0, 900, 1 );
Graph0=((Close-MA(Close,Period1))/MA(Close,Period1))*100;
Graph1=((Close-MA(Close,Period2))/MA(Close,Period2))*100;
Graph2=((Close-MA(Close,Period3))/MA(Close,Period3))*100;
Graph3=((Close-MA(Close,Period4))/MA(Close,Period4))*100;
Graph4=((Close-MA(Close,Period5))/MA(Close,Period5))*100;
Plot(Graph0,"Graph0",colorRed);
Plot(Graph1,"Graph1",colorBlue);
Plot(Graph2,"Graph2",colorGreen);
Plot(Graph3,"Graph3",colorViolet);
Plot(Graph4,"Graph4",colorOrange);
_SECTION_END();

如果要改参数,步骤如下:
1在Bias视窗按右键
2在弹出的功能表中,用左键点按最上面的Parameters
3对话盒会显示Parameters | Axes&Grid,用左键点按Parameters
4对话盒会显示
Period1 6
.....
Period5 96
5如果要把Period5改为60,则左键点按96,改为60

usana642 發表於 11-5-16 22:00

謝謝綠茶妹的分享....
頁: [1]
查看完整版本: 請問一下AB的BIAS的公式要如何寫壓??