안녕하세요?
아래 수식에서 하루매매횟수(외부변수) 추가부탁드립니다.
감사합니다.
input : 양봉(3),음봉(3);
input : 익절틱수(20),손절틱수(20);
if MarketPosition == 0 and C == O+양봉*PriceScale Then
Buy();
if MarketPosition == 0 and C == O-음봉*PriceScale Then
Sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
답변 1
예스스탁
예스스탁 답변
2021-07-12 13:26:19
안녕하세요
예스스탁입니다.
input : 양봉(3),음봉(3);
input : 익절틱수(20),손절틱수(20);
input : 매매횟수(10);
var : 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;
if MarketPosition == 0 and C == O+양봉*PriceScale and entry < 매매횟수 Then
Buy();
if MarketPosition == 0 and C == O-음봉*PriceScale and entry < 매매횟수 Then
Sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 대구어린울프 님이 쓴 글입니다.
> 제목 : 추가부탁드립니다.
> 안녕하세요?
아래 수식에서 하루매매횟수(외부변수) 추가부탁드립니다.
감사합니다.
input : 양봉(3),음봉(3);
input : 익절틱수(20),손절틱수(20);
if MarketPosition == 0 and C == O+양봉*PriceScale Then
Buy();
if MarketPosition == 0 and C == O-음봉*PriceScale Then
Sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);