COCO研究院

 找回密碼
 註冊
搜索
查看: 2176|回復: 7

AB要如何設定漲跌點數

[複製鏈接]
發表於 13-2-20 23:55 | 顯示全部樓層 |閱讀模式
版上的大大,請問一下,要怎麼設定AB的漲跌點數,我的只能顯示漲跌幅度,無法顯示漲跌點數
發表於 13-2-21 01:19 | 顯示全部樓層
In the title?


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

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

  6. if ( N_FN ) Name_ = FullName();
  7. else        Name_ = Name();

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

  9. _N( Title = StrFormat( Colortitle + Name_  + " - "  + Now( 2 ) + " - " + ColorTF + "{{INTERVAL}}" +
  10.                        Colortitle + " - " + DayName + " {{DATE}} Op=%g, Hi=%g, Lo=%g, Close=%g (%.2f%%), TickChg: %.1f {{VALUES}}",
  11.                        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
In the title?

大大謝謝你,但小弟程式不好,所以請問大大這要怎用
發表於 13-2-21 09:34 | 顯示全部樓層
Sorry, don't understand what you mean by "is not good". Maybe someone else can help you.
發表於 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
發表於 13-2-21 11:37 | 顯示全部樓層
獨孤求勝 發表於 13-2-21 08:53
大大謝謝你,但小弟程式不好,所以請問大大這要怎用

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

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

發表於 13-2-21 22:38 | 顯示全部樓層
kilroy 發表於 13-2-21 10:01
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
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.


您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

手機版|Archiver|站長信箱|廣告洽詢|COCO研究院

GMT+8, 24-12-23 18:33

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回復 返回頂部 返回列表
理財討論網站 |