 |
mori868
資深會員
註冊日期: Jan 2004
來 自:
文章數量: 1044 |
無法顯示信號
T_in:=TIME>=084601 and TIME<=131500;
T_out:=132900;
口數:= 1 ;
QA:=AQ and T_in,Colorwhite,Linethick0;
QB:=BQ and T_in,Colorgreen,Linethick0;
ZA0:=Barslast(QA=0);
ZB0:=Barslast(QB=0);
A01:=QA=1 and ZA0=1;
B01:=QB=1 and ZB0=1;
BB:=A01;
SS:=B01;
買價:=ref(C,ZA0);
賣價:=ref(C,ZB0);
{== 基礎模組 =======}
多利:= 賣價-買價 ;
空利:= 賣價-買價 ;
多損:= 買價-4 ;
空損:= 賣價+4 ;
{== 多 ===========}
停利a:=If(BARSLAST(H>=多利),0,1);
停損a:=If(BARSLAST(L<=多損),0,1);
{== 空 ===========}
停利b:=If(BARSLAST(L<=空利),0,1);
停損b:=If(BARSLAST(H>=空損),0,1);
強平倉:=T_out;
PPa:=if(停利a or 停損a or 強平倉,0,if(BB,1,999));
PPa:=ref(PPa,barslast(PPa<>999));
PPb:=if(停利b or 停損b or 強平倉,0,if(SS,-1,999));
PPb:=ref(PPb,barslast(PPb<>999));
PP:=(PPa+PPb)*口;
請教錯誤在那裡 無法顯示PP 謝謝
|
|
向版主報告此篇 |  |
|
2021-11-23 12:14 |
|
|
|  |
 |
cgjj
總版主

註冊日期: Oct 2003
來 自:
文章數量: 18117 |
回覆: 無法顯示信號
引用: 最初由 mori868 發表
T_in:=TIME>=084601 and TIME<=131500;
T_out:=132900;
口數:= 1 ;
QA:=AQ and T_in,Colorwhite,Linethick0;
QB:=BQ and T_in,Colorgreen,Linethick0;
ZA0:=Barslast(QA=0);
ZB0:=Barslast(QB=0);
A01:=QA=1 and ZA0=1;
B01:=QB=1 and ZB0=1;
BB:=A01;
SS:=B01;
買價:=ref(C,ZA0);
賣價:=ref(C,ZB0);
{== 基礎模組 =======}
多利:= 賣價-買價 ;
空利:= 賣價-買價 ;
多損:= 買價-4 ;
空損:= 賣價+4 ;
{== 多 ===========}
停利a:=If(BARSLAST(H>=多利),0,1);
停損a:=If(BARSLAST(L<=多損),0,1);
{== 空 ===========}
停利b:=If(BARSLAST(L<=空利),0,1);
停損b:=If(BARSLAST(H>=空損),0,1);
強平倉:=T_out;
PPa:=if(停利a or 停損a or 強平倉,0,if(BB,1,999));
PPa:=ref(PPa,barslast(PPa<>999));
PPb:=if(停利b or 停損b or 強平倉,0,if(SS,-1,999));
PPb:=ref(PPb,barslast(PPb<>999));
PP:=(PPa+PPb)*口;
請教錯誤在那裡 無法顯示PP 謝謝
程式不完整!!!,單就提供的來看~~
PP:=(PPa+PPb)*口;
PP 沒有輸出(使用:=指定不輸出),當然不會顯示!
其中的 口 ,也沒有見到相關定義!
|
|
向版主報告此篇 |  |
|
2021-11-23 12:27 |
|
|
|  |
本站所有內容未經作者授權禁止轉貼節錄, 發表言論僅供參考勿作為投資決策依據。瀏覽本站請使用 IE 5.5 以上版本, 最佳瀏覽解析度 1024 x 768 全彩。
|
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved. 聯絡我們
|