커뮤니티
64328 delay time 재문의
2019-11-01 09:52:07
203
글번호 132433
아래 수식의 결과가 나오지 않아서 64328로 문의드렸는데요
delay time을 1분으로 적용해보니 결과값이 한달에 10회~ 20회는 나오는군요
delay time을 1분
연결선물 1분차트 적용
시뮬레이션을 해보았습니다.
2019년 1월부터 10월1일까지 시뮬레이션을 하면
첨부파일 1처럼 1월과 2월에만 결과가 나옵니다.
2019년 7월부터 10월1일까지 시뮬레이션 결과는
첨부파일 2처럼 7월,8월,9월,10월 결과가 모두 나옵니다.
시뮬레이션 기간이 길면 안나오고 좁으면 나오는 것을 해결할 방법은 없는지요?
input : 당일최대진입횟수(1);
var : T1(0),entry(0);
var : BuySetup(false),SellSetup(false),Buyprice(0),SellPrice(0),BD(0),BT(0),SD(0),ST(0);
if bdate != Bdate[1] Then
T1 = TotalTrades;
if MarketPosition == 0 Then
entry = TotalTrades-T1;
Else
entry = TotalTrades-T1+1;
if MarketPosition <= 0 and BuySetup == false and dayindex == 0 and C > O Then
{
BuySetup = true;
Buyprice = C;
BD = sdate;
BT = TimeToMinutes(stime);
}
if MarketPosition >= 0 and BuySetup == false and dayindex == 0 and C < O Then
{
SellSetup = true;
SellPrice = C;
SD = sDate;
ST = TimeToMinutes(stime);
}
if MarketPosition == 1 Then
BuySetup = false;
if MarketPosition == -1 Then
SellSetup = false;
if MarketPosition <= 0 and BuySetup == true and Sdate == BD and TimeToMinutes(stime) >= BT+1 and crossup(c,BuyPrice) and entry < 당일최대진입횟수 Then
buy("b");
if MarketPosition >= 0 and SellSetup == true and Sdate == SD and TimeToMinutes(stime) >= ST+1 and CrossDown(c,SellPrice) and entry < 당일최대진입횟수 Then
sell("s");
- 1. 2019_7월부터_현재.jpg (0.30 MB)
- 2. 2019전기간.jpg (0.27 MB)
답변 1
예스스탁 예스스탁 답변
2019-10-02 09:47:17
안녕하세요
예스스탁입니다.
날짜변경시에 초기화되게 수정해 드립니다.
input : 당일최대진입횟수(1);
var : T1(0),entry(0);
var : BuySetup(false),SellSetup(false),Buyprice(0),SellPrice(0),BD(0),BT(0),SD(0),ST(0);
if bdate != Bdate[1] Then
{
T1 = TotalTrades;
BuySetup = false;
SellSetup = false;
}
if MarketPosition == 0 Then
entry = TotalTrades-T1;
Else
entry = TotalTrades-T1+1;
if MarketPosition <= 0 and BuySetup == false and dayindex == 0 and C > O Then
{
BuySetup = true;
Buyprice = C;
BD = sdate;
BT = TimeToMinutes(stime);
}
if MarketPosition >= 0 and SellSetup == false and dayindex == 0 and C < O Then
{
SellSetup = true;
SellPrice = C;
SD = sDate;
ST = TimeToMinutes(stime);
}
if MarketPosition == 1 Then
BuySetup = false;
if MarketPosition == -1 Then
SellSetup = false;
if MarketPosition <= 0 and BuySetup == true and Sdate == BD and TimeToMinutes(stime) >= BT+1 and crossup(c,BuyPrice) and entry < 당일최대진입횟수 Then
buy("b");
if MarketPosition >= 0 and SellSetup == true and Sdate == SD and TimeToMinutes(stime) >= ST+1 and CrossDown(c,SellPrice) and entry < 당일최대진입횟수 Then
sell("s");
즐거운 하루되세요
> 목마와숙녀 님이 쓴 글입니다.
> 제목 : 64328 재문의
> 아래 수식의 결과가 나오지 않아서 64328로 문의드렸는데요
delay time을 1분으로 적용해보니 결과값이 한달에 10회~ 20회는 나오는군요
delay time을 1분
연결선물 1분차트 적용
시뮬레이션을 해보았습니다.
2019년 1월부터 10월1일까지 시뮬레이션을 하면
첨부파일 1처럼 1월과 2월에만 결과가 나옵니다.
2019년 7월부터 10월1일까지 시뮬레이션 결과는
첨부파일 2처럼 7월,8월,9월,10월 결과가 모두 나옵니다.
시뮬레이션 기간이 길면 안나오고 좁으면 나오는 것을 해결할 방법은 없는지요?
input : 당일최대진입횟수(1);
var : T1(0),entry(0);
var : BuySetup(false),SellSetup(false),Buyprice(0),SellPrice(0),BD(0),BT(0),SD(0),ST(0);
if bdate != Bdate[1] Then
T1 = TotalTrades;
if MarketPosition == 0 Then
entry = TotalTrades-T1;
Else
entry = TotalTrades-T1+1;
if MarketPosition <= 0 and BuySetup == false and dayindex == 0 and C > O Then
{
BuySetup = true;
Buyprice = C;
BD = sdate;
BT = TimeToMinutes(stime);
}
if MarketPosition >= 0 and BuySetup == false and dayindex == 0 and C < O Then
{
SellSetup = true;
SellPrice = C;
SD = sDate;
ST = TimeToMinutes(stime);
}
if MarketPosition == 1 Then
BuySetup = false;
if MarketPosition == -1 Then
SellSetup = false;
if MarketPosition <= 0 and BuySetup == true and Sdate == BD and TimeToMinutes(stime) >= BT+1 and crossup(c,BuyPrice) and entry < 당일최대진입횟수 Then
buy("b");
if MarketPosition >= 0 and SellSetup == true and Sdate == SD and TimeToMinutes(stime) >= ST+1 and CrossDown(c,SellPrice) and entry < 당일최대진입횟수 Then
sell("s");