![]() |
在這個頁面顯示本主題全部的 2 個文章 |
奇狐社區論壇 (http://www.chiefox.com.tw/bbs/index.php)
- 問題交流 (http://www.chiefox.com.tw/bbs/forumdisplay.php?forumid=28)
-- 無法顯示信號 (http://www.chiefox.com.tw/bbs/showthread.php?threadid=23185)
無法顯示信號
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 謝謝
回覆: 無法顯示信號
引用:
最初由 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 謝謝
全部時間均為台灣時間, 現在時間為14:32 | 在這個頁面顯示本主題全部的 2 個文章 |
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved.