 |
cgjj
總版主

註冊日期: Oct 2003
來 自:
文章數量: 18091 |
引用: 最初由 qaq1689 發表
2.以上1根k棒.漲跌數字『分k棒』
pp:=SYSPARAM(1);
if PP<1 or PP>datacount then PP:=datacount;
差:=C-ref(C,1);
漲跌:=SGN(差);
DRAWTEXT(barpos=PP and 漲跌=1,H,'漲') colorred ALIGN2 pxup35;
DRAWTEXT(barpos=PP and 漲跌=-1,H,'跌') colorgreen ALIGN2 pxup35;
DRAWNUMBER(barpos=PP and 漲跌=1,H,差,2) colorred ALIGN1 pxup35;
DRAWTEXT(barpos=PP and 漲跌=-1,H,'跌') colorgreen ALIGN2 pxup35;
DRAWNUMBER(barpos=PP and 漲跌=-1,H,差,2) colorgreen ALIGN1 pxup35;
|
|
向版主報告此篇 |  |
|
2012-02-19 13:03 |
|
|
|  |
 |
cgjj
總版主

註冊日期: Oct 2003
來 自:
文章數量: 18091 |
引用: 最初由 qaq1689 發表
1.以當日漲跌數字『以作天收磐價基準為漲跌』
pp:=SYSPARAM(1);
if PP<1 or PP>datacount then PP:=datacount;
昨收:ref(C,barslast(date<>ref(date,1))+1);
差:=C-昨收;
漲跌:=SGN(差);
DRAWTEXT(barpos=PP and 漲跌=1,H,'漲') colorred ALIGN2 pxup35;
DRAWTEXT(barpos=PP and 漲跌=-1,H,'跌') colorgreen ALIGN2 pxup35;
DRAWNUMBER(barpos=PP and 漲跌=1,H,差,2) colorred ALIGN1 pxup35;
DRAWTEXT(barpos=PP and 漲跌=-1,H,'跌') colorgreen ALIGN2 pxup35;
DRAWNUMBER(barpos=PP and 漲跌=-1,H,差,2) colorgreen ALIGN1 pxup35;
|
|
向版主報告此篇 |  |
|
2012-02-19 13:06 |
|
|
|  |
本站所有內容未經作者授權禁止轉貼節錄, 發表言論僅供參考勿作為投資決策依據。瀏覽本站請使用 IE 5.5 以上版本, 最佳瀏覽解析度 1024 x 768 全彩。
|
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved. 聯絡我們
|