獨孤求勝 發表於 13-2-20 23:55

AB要如何設定漲跌點數

版上的大大,請問一下,要怎麼設定AB的漲跌點數,我的只能顯示漲跌幅度,無法顯示漲跌點數

joshsmi 發表於 13-2-21 01:19

In the title?


Colortitle= EncodeColor( ParamColor( "Fonts Color of Title", colorLightGrey ) );
ColorTF   = EncodeColor( ParamColor( "Fonts Color of Timeframe in Title", colorRed ) );
N_FN      = ParamToggle( "Show Name or Fullname in Title", "Name|FullName" );

Timeframe   = Interval();
Now4      = Now( 4 );

if ( N_FN ) Name_ = FullName();
else      Name_ = Name();

DayName = StrExtract( "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday", SelectedValue( DayOfWeek() ) );

_N( Title = StrFormat( Colortitle + Name_+ " - "+ Now( 2 ) + " - " + ColorTF + "{{INTERVAL}}" +
                     Colortitle + " - " + DayName + " {{DATE}} Op=%g, Hi=%g, Lo=%g, Close=%g (%.2f%%), TickChg: %.1f {{VALUES}}",
                     O, H, L, C, SelectedValue( ROC( C, 1 ) ), (C - Ref(C, -1)) / TickSize ) );

You can define Ticksize in 'Information' window.


獨孤求勝 發表於 13-2-21 08:53

joshsmi 發表於 13-2-21 01:19 static/image/common/back.gif
In the title?




大大謝謝你,但小弟程式不好,所以請問大大這要怎用

joshsmi 發表於 13-2-21 09:34

Sorry, don't understand what you mean by "is not good". Maybe someone else can help you.

kilroy 發表於 13-2-21 10:01

joshsmi 發表於 13-2-21 09:34
Sorry, don't understand what you mean by "is not good". Maybe someone else can help you.

He “is not good” at amibroker formula language”. XD

Sirius 發表於 13-2-21 11:37

獨孤求勝 發表於 13-2-21 08:53 static/image/common/back.gif
大大謝謝你,但小弟程式不好,所以請問大大這要怎用

那個必須修改你的圖表Chart用的程式
建議你應該是先看一下AmiBroker本身的說明,不然人家做好的東西,你也不知要如何用

小弟簽名檔裡面的連結,大大也可以參考一下

joshsmi 發表於 13-2-21 22:38

kilroy 發表於 13-2-21 10:01 static/image/common/back.gif
He “is not good” at amibroker formula language”. XD

THX, mate! I'm European so my Chinese is not the best (yet), sorry. It's more difficult than programming. :-( But I like it. And it looks very nice and impressive.

Anyway, it seems the code was the right one. Perfect. :-)

綠茶妹 發表於 13-3-23 08:52

本帖最後由 綠茶妹 於 13-3-23 10:16 編輯

joshsmi 發表於 13-2-21 22:38 static/image/common/back.gif
THX, mate! I'm European so my Chinese is not the best (yet), sorry. It's more difficult than progr ...
Nice to meet you. Maybe you are the only European here. Google translation is a powerful tool for you to understanding Chinese. Many people here have good English skill.


頁: [1]
查看完整版本: AB要如何設定漲跌點數