커뮤니티

문의드립니다.

프로필 이미지
as8282
2020-02-23 00:18:17
416
글번호 136237
답변완료

첨부 이미지

아래글 66159 에서 청산조건 4 가 제대로 안나오는것 같은데... 다른방법은 없는건가요? 또하나... 02시에 일괄청산하는 식을 부탁합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-02-24 10:21:46

안녕하세요 예스스탁입니다. 하락밴드의 값 할당이 잘못되어 수정했습니다. 02시 청산 추가했습니다. input : Period(12),Period1(20); input : P(20),BBP(20),dv(2); var : mav(0),i1(0),bbup(0),bbdn(0); mav = ma(C,P); bbup = BollBandUp(BBP,dv); bbdn = BollBandDown(BBP,dv); var1 = trix(Period); var2 = ma(C,Period1); if crossup(var1,0) Then value1 = var2; if var2 > value1 Then value1 = var2; if CrossDown(var1,0) Then value2 = var2; if var2 < value2 Then value2 = var2; if value1 == value1[1] and value2 == value2[1] and abs(value1-value2) >= PriceScale*45 and mav[1] == value2[1] and mav > value2 and mav > mav[1] Then { i1 = index; if c < value2+PriceScale*25 Then { buy("b1"); i1 = 0; } } if i1 > 0 and index < i1+5 and C > O Then buy("b11"); if ((value1 == value1[1] and value2 == value2[1] and abs(value1-value2) >= PriceScale*45) or (value1 > value1[1] and value2 == value2[1] )) and L <= value2 and c > value2 Then buy("b2"); if MarketPosition == 1 Then { if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*50 Then ExitLong("bx2-3",AtStop,highest(H,BarsSinceEntry)-PriceScale*5); ExitLong("bx2-4",AtStop,highest(BBdn,BarsSinceEntry)-PriceScale*15); ExitLong("bx2-5",AtStop,value2-PriceScale*15); } if sdate != sdate[1] Then SetStopEndofday(020000); if bdate != bdate[1] Then SetStopEndofday(0); 즐거운 하루되세요 > as8282 님이 쓴 글입니다. > 제목 : 문의드립니다. > 아래글 66159 에서 청산조건 4 가 제대로 안나오는것 같은데... 다른방법은 없는건가요? 또하나... 02시에 일괄청산하는 식을 부탁합니다.