 |
july2008
資深會員

註冊日期: Aug 2008
來 自: 台中
文章數量: 106 |
回覆: 看了交易範例.請問?如何顯示現在部位
引用: 最初由 et8i 發表
線上研讀,看了交易範例.請問?如何顯示現在部位
強出:=ACK0 or barpos=0;
多進:=AB01 and 強出=0 or barpos=0;
多出:=ABZ1 or barpos=0;
空進:=AS01 and 強出=0 or barpos=0;
空出:=ASZ1 or barpos=0;
進場:=多進-空進;
出場:=多出-空出;
控損:=30; 控利:=60;
進價:=0; CC:=C;
多空:=0; //1.多 -1.空 0.無
進出:C*0 NOAXIS;
盈虧:C*0 linethick;
for i = 1 to datacount do begin
if 多空=0 then begin
多空:=進場[i]; 進出[i]:=多空;
if 多空<>0 then 進價:=CC[i];
end else if 多空<>0 then begin
盈虧[i]:=(CC[i]-進價)*多空;
if 強出[i] then begin
進出[i]:=多空*5; 多空:=0;
end else if 多空=出場[i] then begin
進出[i]:=多空*2; 多空:=0;
end else if 盈虧[i]>=控利 then begin
進出[i]:=多空*3; 多空:=0;
end else if 盈虧[i]<=-控損 then begin
進出[i]:=多空*4; 多空:=0;
end;
end;
end;
--------------------------------------------------------------------------------
[進出] 這變數值代表意義如下:
1.多單進場, 2.多單出場, 3.多控利出, 4.多控損出
-1.空單進場,-2.空單出場,-3.空控利出, -4.空控損出
進出=1(多單進場) 進出=-1(空單進場) 其它以此類推
__________________
喬
|
|
向版主報告此篇 |  |
|
2010-08-11 08:40 |
|
|
|  |
 |
july2008
資深會員

註冊日期: Aug 2008
來 自: 台中
文章數量: 106 |
回覆: 誤會!是要圖形顯示 當時部位
引用: 最初由 et8i 發表
誤會!是要程式圖形顯示 當時部位
圖形顯示????
抱歉不懂意思 舉例說明一下
__________________
喬
|
|
向版主報告此篇 |  |
|
2010-08-11 19:48 |
|
|
|  |
本站所有內容未經作者授權禁止轉貼節錄, 發表言論僅供參考勿作為投資決策依據。瀏覽本站請使用 IE 5.5 以上版本, 最佳瀏覽解析度 1024 x 768 全彩。
|
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved. 聯絡我們
|