안녕하세요?
답변 감사히 잘받았습니다.
현재 매매횟수가 변경이 1회에서 바꿔지질않네요.
아래수식에서 변수로 매매횟수가 바뀌도록 점검및 수정 부탁드리겠습니다.
감사합니다.
----------------------------------------------------------------------------------------
안녕하세요
예스스탁입니다.
Input : 손절 (1), 익절 (1), 틱 (1);
input : 진입횟수(1);
var : entry(0);
var : plusF(0), isToBuy(False), isToSell(False), length(0), entryIdx(0);
var : isTodayEntered(False);
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 sTime == 90000 then isTodayEntered = False;
length = c - o;
isToBuy = length == 틱 * PriceScale;
isToSell = length == -1 * 틱 * PriceScale;
if MarketPosition == 0 then {
if isToBuy and !isTodayEntered and entry < 진입횟수 then {
Buy("수진");
isTodayEntered = True;
entryIdx = Index;
}
if isToSell and !isTodayEntered and entry < 진입횟수 then {
Sell("도진");
isTodayEntered = True;
entryIdx = Index;
}
}
else if MarketPosition == 1 then {
if entryIdx == Index[1] and isToSell and entry < 진입횟수 then {
Sell("수청도역진");
}
}
else if MarketPosition == -1 then {
if entryIdx == Index[1] and isToBuy and entry < 진입횟수 then {
Buy("도청수역진");
}
}
즐거운 하루되세요
> 대구어린울프 님이 쓴 글입니다.
> 제목 : 수정부탁드립니다.
> 안녕하세요?
아래수식에 하루매매횟수를 넣고싶습니다.
input : 진입횟수(1);
var : entry(1);
여기까지는 했는데, entry < 진입횟수 and 이부분을 제가 지식이 짧아 아래수식에는 적용하지를 못하겠네요. 도와주시면 감사하겠습니다.
Input : 손절 (1), 익절 (1), 틱 (1);
var : plusF(0), isToBuy(False), isToSell(False), length(0), entryIdx(0);
var : isTodayEntered(False);
if sTime == 90000 then isTodayEntered = False;
length = c - o;
isToBuy = length == 틱 * PriceScale;
isToSell = length == -1 * 틱 * PriceScale;
if MarketPosition == 0 then {
if isToBuy and !isTodayEntered then {
Buy("수진");
isTodayEntered = True;
entryIdx = Index;
}
else if isToSell and !isTodayEntered then {
Sell("도진");
isTodayEntered = True;
entryIdx = Index;
}
}
else if MarketPosition == 1 then {
if entryIdx == Index[1] and isToSell then {
Sell("수청도역진");
}
}
else if MarketPosition == -1 then {
if entryIdx == Index[1] and isToBuy then {
Buy("도청수역진");
}
}
답변 1
예스스탁
예스스탁 답변
2020-05-12 16:24:13
안녕하세요
예스스탁입니다.
1
진입횟수 설정에 문제가 없습니다.
올려주신 시스템의 전략 내용을 확인하시기 바랍니다.
해당 원본 전략식이
"수진","도진"신호는 당일 첫신호일때만 발생하는 내용이고
"수청도역진"은 매수진입후 바로다음봉이 음봉이고 지정한 틱수의 몸통일때만
"도청수역진"은 매도진입후 바로다음봉이 양봉이고 지정한 틱수의 몸통일대만 신호가 발생합니다.
만약 중간에 목표수익이나 손절매로 청산되면 더이상 진입할 내용이 없어지게 됩니다.
조건자체가 신호가 많이 발생할수 없습니다.
2
만약 목표수익이나 손절매로 청산후에
"수진","도진"이 조건만족하면 다시 발생하고자 하시면
전략에서 !isTodayEntered 조건이 삭제되어야 합니다.
!isTodayEntered이 해당 전략에서 당일 처음만 신호가 발생하게 제어하는 내용입니다.
즐거운 하루되세요
> 대구어린울프 님이 쓴 글입니다.
> 제목 : 매매횟수 점검 부탁드립니다.
> 안녕하세요?
답변 감사히 잘받았습니다.
현재 매매횟수가 변경이 1회에서 바꿔지질않네요.
아래수식에서 변수로 매매횟수가 바뀌도록 점검및 수정 부탁드리겠습니다.
감사합니다.
----------------------------------------------------------------------------------------
안녕하세요
예스스탁입니다.
Input : 손절 (1), 익절 (1), 틱 (1);
input : 진입횟수(1);
var : entry(0);
var : plusF(0), isToBuy(False), isToSell(False), length(0), entryIdx(0);
var : isTodayEntered(False);
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 sTime == 90000 then isTodayEntered = False;
length = c - o;
isToBuy = length == 틱 * PriceScale;
isToSell = length == -1 * 틱 * PriceScale;
if MarketPosition == 0 then {
if isToBuy and !isTodayEntered and entry < 진입횟수 then {
Buy("수진");
isTodayEntered = True;
entryIdx = Index;
}
if isToSell and !isTodayEntered and entry < 진입횟수 then {
Sell("도진");
isTodayEntered = True;
entryIdx = Index;
}
}
else if MarketPosition == 1 then {
if entryIdx == Index[1] and isToSell and entry < 진입횟수 then {
Sell("수청도역진");
}
}
else if MarketPosition == -1 then {
if entryIdx == Index[1] and isToBuy and entry < 진입횟수 then {
Buy("도청수역진");
}
}
즐거운 하루되세요
> 대구어린울프 님이 쓴 글입니다.
> 제목 : 수정부탁드립니다.
> 안녕하세요?
아래수식에 하루매매횟수를 넣고싶습니다.
input : 진입횟수(1);
var : entry(1);
여기까지는 했는데, entry < 진입횟수 and 이부분을 제가 지식이 짧아 아래수식에는 적용하지를 못하겠네요. 도와주시면 감사하겠습니다.
Input : 손절 (1), 익절 (1), 틱 (1);
var : plusF(0), isToBuy(False), isToSell(False), length(0), entryIdx(0);
var : isTodayEntered(False);
if sTime == 90000 then isTodayEntered = False;
length = c - o;
isToBuy = length == 틱 * PriceScale;
isToSell = length == -1 * 틱 * PriceScale;
if MarketPosition == 0 then {
if isToBuy and !isTodayEntered then {
Buy("수진");
isTodayEntered = True;
entryIdx = Index;
}
else if isToSell and !isTodayEntered then {
Sell("도진");
isTodayEntered = True;
entryIdx = Index;
}
}
else if MarketPosition == 1 then {
if entryIdx == Index[1] and isToSell then {
Sell("수청도역진");
}
}
else if MarketPosition == -1 then {
if entryIdx == Index[1] and isToBuy then {
Buy("도청수역진");
}
}