안녕하세요? 간단한 수식두가지 부탁드립니다.
[1]
***진입
아랫꼬리가(외부변수 틱)이상일시 매수
윗꼬리가 (외부변수 틱) 이상일시 매도
***청산 및 재진입
다음매매신호 발생전까지 진입x
익절/손절 (외부변수)
하루매매횟수 (외부변수)
[2]
***진입
아랫꼬리가(외부변수 틱)이상인 양봉에 매수
윗꼬리가 (외부변수 틱) 이상인 음봉에 매도
***청산 및 재진입
다음매매신호 발생전까지 진입x
익절/손절 (외부변수)
하루매매횟수 (외부변수)
감사합니다.
답변 1
예스스탁
예스스탁 답변
2021-03-17 11:28:42
안녕하세요
예스스탁입니다.
1
input : 윗꼬리(5),아랫꼬리(5);
input : 익절틱수(50),손절틱수(50),진입횟수(3);
var : dnTail(0),uptail(0),entry(0);
if Bdate != Bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
dnTail = min(C,O)-L;
upTail = H-max(C,O);
if MarketPosition == 0 and dntail >= 아랫꼬리*PriceScale and entry < 진입횟수 Then
Buy();
if MarketPosition == 0 and uptail >= 윗꼬리*PriceScale and entry < 진입횟수 Then
Sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
2
input : 윗꼬리(5),아랫꼬리(5);
input : 익절틱수(50),손절틱수(50),진입횟수(3);
var : dnTail(0),uptail(0),entry(0);
if Bdate != Bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
dnTail = min(C,O)-L;
upTail = H-max(C,O);
if MarketPosition == 0 and dntail >= 아랫꼬리*PriceScale and C > O and entry < 진입횟수 Then
Buy();
if MarketPosition == 0 and uptail >= 윗꼬리*PriceScale and C < O and entry < 진입횟수 Then
Sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 대구어린울프 님이 쓴 글입니다.
> 제목 : 수식부탁드립니다.
> 안녕하세요? 간단한 수식두가지 부탁드립니다.
[1]
***진입
아랫꼬리가(외부변수 틱)이상일시 매수
윗꼬리가 (외부변수 틱) 이상일시 매도
***청산 및 재진입
다음매매신호 발생전까지 진입x
익절/손절 (외부변수)
하루매매횟수 (외부변수)
[2]
***진입
아랫꼬리가(외부변수 틱)이상인 양봉에 매수
윗꼬리가 (외부변수 틱) 이상인 음봉에 매도
***청산 및 재진입
다음매매신호 발생전까지 진입x
익절/손절 (외부변수)
하루매매횟수 (외부변수)
감사합니다.