커뮤니티

문의드립니다

프로필 이미지
파인애플
2018-08-01 17:32:40
156
글번호 121070
답변완료
1 Var : cnt_total(0); Var : Entrycnt(0); Entrycnt = 0; for cnt_total = 0 to 100 { if sdate == EntryDate(cnt_total) Then Entrycnt = Entrycnt+1;} input : stime11(90000); input : stime12(95900); if MarketPosition == 0 and entrycnt <1 and Time >= stime11 and Time <= stime12 and RSI(10) > 60 Then buy("매수"); if MarketPosition == 0 and entrycnt <1 and Time >= stime11 and Time <= stime12 and RSI(10) < 40 Then sell("매도"); SetStopLoss(0.21,PointStop); SetStopProfittarget( 0.50 ,PointStop); SetStopTrailing(0.30,0.10,PointStop); 위의 기본식에서 매수 매도 시그널이 나오고 N봉 뒤 진입을 하고 싶습니다 2 1번 기본식에서 매수시그널이 나오면 청산 시그널이 나오기 전까지 봉에 +1 +2 +3 +4.... 이런식으로 번호를 매기고 싶습니다 1번 기본식에서 매도시그널이 나오면 청산 시그널이 나오기 전까지 봉에 -1 -2 -3 -4.... 이런식으로 번호를 매기고 싶습니다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-08-02 13:59:50

안녕하세요 예스스탁입니다. 1. input : n(3); Var : cnt_total(0); Var : Entrycnt(0); Entrycnt = 0; for cnt_total = 0 to 100 { if sdate == EntryDate(cnt_total) Then Entrycnt = Entrycnt+1;} input : stime11(90000); input : stime12(95900); if MarketPosition == 0 and entrycnt <1 and Time >= stime11 and Time <= stime12 and RSI(10) > 60 Then var1 = index; if index == var1+n Then buy("매수"); if MarketPosition == 0 and entrycnt <1 and Time >= stime11 and Time <= stime12 and RSI(10) < 40 Then var2 = index; if index == var2+n Then sell("매도"); SetStopLoss(0.21,PointStop); SetStopProfittarget( 0.50 ,PointStop); SetStopTrailing(0.30,0.10,PointStop); 2 input : n(3); Var : cnt_total(0); Var : Entrycnt(0); Entrycnt = 0; for cnt_total = 0 to 100 { if sdate == EntryDate(cnt_total) Then Entrycnt = Entrycnt+1;} input : stime11(90000); input : stime12(95900); if MarketPosition == 0 and entrycnt <1 and Time >= stime11 and Time <= stime12 and RSI(10) > 60 Then buy("매수"); if MarketPosition == 0 and entrycnt <1 and Time >= stime11 and Time <= stime12 and RSI(10) < 40 Then sell("매도"); if MarketPosition != 0 Then{ value1 = Text_New(sdate,stime,H+PriceScale*1,NumToStr(BarsSinceEntry,0)); Text_SetStyle(value1,2,2); } SetStopLoss(0.21,PointStop); SetStopProfittarget( 0.50 ,PointStop); SetStopTrailing(0.30,0.10,PointStop); 즐거운 하루되세요 > 파인애플 님이 쓴 글입니다. > 제목 : 문의드립니다 > 1 Var : cnt_total(0); Var : Entrycnt(0); Entrycnt = 0; for cnt_total = 0 to 100 { if sdate == EntryDate(cnt_total) Then Entrycnt = Entrycnt+1;} input : stime11(90000); input : stime12(95900); if MarketPosition == 0 and entrycnt <1 and Time >= stime11 and Time <= stime12 and RSI(10) > 60 Then buy("매수"); if MarketPosition == 0 and entrycnt <1 and Time >= stime11 and Time <= stime12 and RSI(10) < 40 Then sell("매도"); SetStopLoss(0.21,PointStop); SetStopProfittarget( 0.50 ,PointStop); SetStopTrailing(0.30,0.10,PointStop); 위의 기본식에서 매수 매도 시그널이 나오고 N봉 뒤 진입을 하고 싶습니다 2 1번 기본식에서 매수시그널이 나오면 청산 시그널이 나오기 전까지 봉에 +1 +2 +3 +4.... 이런식으로 번호를 매기고 싶습니다 1번 기본식에서 매도시그널이 나오면 청산 시그널이 나오기 전까지 봉에 -1 -2 -3 -4.... 이런식으로 번호를 매기고 싶습니다