奇狐社區論壇
在這個頁面顯示本主題全部的 2 個文章

奇狐社區論壇 (http://www.chiefox.com.tw/bbs/index.php)
- 問題交流 (http://www.chiefox.com.tw/bbs/forumdisplay.php?forumid=28)
-- [求救]Heiken Ashi (http://www.chiefox.com.tw/bbs/showthread.php?threadid=20887)


由 santienchang 在 2017-06-05 13:57 發表:

[求救]Heiken Ashi

ClosePrice:=IF(BARSCOUNT(CLOSE)=1 , (OPEN+HIGH+LOW+CLOSE)/4 , CLOSE);
OpenPrice:=IF(BARSCOUNT(CLOSE)=1 , (OPEN+CLOSE)/2 , SMA(REF(ClosePrice,1),2,1));
HighPrice:=HIGH;
LowPrice:=LOW;
STICKLINE( OpenPrice<ClosePrice , HighPrice , LowPrice , 0.1 , 0 ) , ColorRed ;
STICKLINE( OpenPrice<ClosePrice , ClosePrice , OpenPrice, 7 , 1 ) , ColorRed ;
STICKLINE( OpenPrice>ClosePrice , HighPrice , LowPrice , 0.1 , 0 ) , ColorCyan ;
STICKLINE( OpenPrice>ClosePrice , ClosePrice , OpenPrice , 7 , 0 ) , ColorCyan ;
STICKLINE( OpenPrice=ClosePrice and ClosePrice>=REF( ClosePrice , 1 ) , HighPrice , LowPrice , 0.1 , 0 ) , ColorRed ;
STICKLINE( OpenPrice=ClosePrice and ClosePrice>=REF( ClosePrice , 1 ) , ClosePrice , OpenPrice , 7 , 0 ) , ColorRed ;
STICKLINE( OpenPrice=ClosePrice and ClosePrice<REF( ClosePrice , 1 ) , HighPrice , LowPrice , 0.1 , 0 ) , ColorCyan ;
STICKLINE( OpenPrice=ClosePrice and ClosePrice<REF( ClosePrice , 1 ) , ClosePrice , OpenPrice , 7 , 0 ) , ColorCyan ;
STICKLINE( OpenPrice=ClosePrice and BARSCOUNT(CLOSE) , HighPrice, LowPrice, 0.1, 0 ) , ColorRed ;
STICKLINE( OpenPrice=ClosePrice and BARSCOUNT(CLOSE) , OpenPrice , ClosePrice , 7 , 0 ) , ColorRed ;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
可以在多分鐘大於300例如345分一根K
線完成?(從昨天13:00後一直到今收盤
完成一支K線.每天都這樣?)
謝謝總板主.


由 cgjj 在 2017-06-05 14:13 發表:

回覆: [求救]Heiken Ashi

引用:
最初由 santienchang 發表
ClosePrice:=IF(BARSCOUNT(CLOSE)=1 , (OPEN+HIGH+LOW+CLOSE)/4 , CLOSE);
OpenPrice:=IF(BARSCOUNT(CLOSE)=1 , (OPEN+CLOSE)/2 , SMA(REF(ClosePrice,1),2,1));
HighPrice:=HIGH;
LowPrice:=LOW;
STICKLINE( OpenPrice<ClosePrice , HighPrice , LowPrice , 0.1 , 0 ) , ColorRed ;
STICKLINE( OpenPrice<ClosePrice , ClosePrice , OpenPrice, 7 , 1 ) , ColorRed ;
STICKLINE( OpenPrice>ClosePrice , HighPrice , LowPrice , 0.1 , 0 ) , ColorCyan ;
STICKLINE( OpenPrice>ClosePrice , ClosePrice , OpenPrice , 7 , 0 ) , ColorCyan ;
STICKLINE( OpenPrice=ClosePrice and ClosePrice>=REF( ClosePrice , 1 ) , HighPrice , LowPrice , 0.1 , 0 ) , ColorRed ;
STICKLINE( OpenPrice=ClosePrice and ClosePrice>=REF( ClosePrice , 1 ) , ClosePrice , OpenPrice , 7 , 0 ) , ColorRed ;
STICKLINE( OpenPrice=ClosePrice and ClosePrice<REF( ClosePrice , 1 ) , HighPrice , LowPrice , 0.1 , 0 ) , ColorCyan ;
STICKLINE( OpenPrice=ClosePrice and ClosePrice<REF( ClosePrice , 1 ) , ClosePrice , OpenPrice , 7 , 0 ) , ColorCyan ;
STICKLINE( OpenPrice=ClosePrice and BARSCOUNT(CLOSE) , HighPrice, LowPrice, 0.1, 0 ) , ColorRed ;
STICKLINE( OpenPrice=ClosePrice and BARSCOUNT(CLOSE) , OpenPrice , ClosePrice , 7 , 0 ) , ColorRed ;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
可以在多分鐘大於300例如345分一根K
線完成?(從昨天13:00後一直到今收盤
完成一支K線.每天都這樣?)
謝謝總板主.



內建之 '多分鐘K棒' 不能跨日,故無法實現


全部時間均為台灣時間, 現在時間為09:31
在這個頁面顯示本主題全部的 2 個文章


Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.

簡愛洋行 製作 Copyright 2003-. All Rights Reserved.