커뮤니티

수식 보완 요청드립니다.

프로필 이미지
바둑이
2022-04-21 14:03:47
999
글번호 158207
답변완료
안녕하세요. 시가와 전일중심가격 사이를 존으로 설정한 후 시가가 전일중심가격보다 높게 시작하면 현재가가 시가만든봉 바로 다음봉 시작에 매수진입하고 청산은 전일고가 또는 전일저가 또는 시가대비 피보나치비율 23.6 / 38.2 / 5 / 61.8 에서 청산 시가와 전일중심가격 사이를 존으로 설정한 후 시가가 전일중심가격보다 낮게 시작하면 현재가가 시가만든봉 바로 다음봉에 시작에 매도진입하고 청산은 전일고가 또는 전일저가 또는 시가대비 피보나치비율 23.6 / 38.2 / 5 / 61.8 에서 청산 아래 수식은 매매중간에는 진입신호가 나오나 시가만든봉 바로 다음봉에 진입이 안되고 전일고가 또는 전일저가에 청산도 되질 않습니다. 감사합니다. Input: dix(1),stopper(1.2),진입횟수(10); var : entry(0,Data1),idx(0,Data1),전일중심(0),zone(0); var : Bcond(False,Data1),Scond(False,Data1); setstoploss(stopper); if Bdate != bdate[1] Then { entry = 0; idx = 0; } Else idx = idx+1; if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; 전일중심 = ((dayhigh(1)+daylow(1))/2); zone = o+((dayhigh(1)+daylow(1))/2); bcond = ((o > 전일중심 ) and crossup(c,o)) or ((o < 전일중심 ) and crossup(c,전일중심)); scond = ((o > 전일중심 ) and crossdown(c,전일중심)) or ((o < 전일중심 ) and CrossDown(c,o)); if idx >= dix and stime > 083000 then { if entry < 10 and Bcond == true Then Buy(); if entry < 10 and Scond == true Then { Sell(); } } IF MarketPosition == 1 and crossup(c,dayhigh(1)) or crossup(c,daylow(1)) Then ExitLong(); IF MarketPosition == -1 and CrossDown(c,dayhigh(1)) or crossDown(c,daylow(1)) Then ExitShort();
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-04-21 16:39:59

안녕하세요 예스스탁입니다. 청산내용이 모호합니다. 진입이후 이미 가격이 전일고가 보다 크거나 혹은 가격이 이미 전일저가 보다 작으면 해당 기준으로 청산이 나오기 어렵습니다. 또한 피보나치도 어떤 값을 기준으로 폭을 지정하는지 알수 없습니다. 첫봉에서 시가와 전일평균값 대비 내용만 추가해 드립니다. Input: dix(1),stopper(1.2),진입횟수(10); var : entry(0),idx(0,Data1),전일중심(0),T(0); setstoploss(stopper); 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; 전일중심 = ((dayhigh(1)+daylow(1))/2); if Bdate != bdate[1] Then { T = 0; if O > 전일중심 Then { T = 1; Buy("b",AtMarket); } if O < 전일중심 Then { T = -1; Sell("s",AtMarket); } } Else { if T == -1 and CrossUp(C,전일중심) and entry < 진입횟수 Then Buy(); if T == 1 and CrossDown(C,전일중심) and entry < 진입횟수 Then Sell(); } IF MarketPosition == 1 and crossup(c,dayhigh(1)) or CrossDown(c,daylow(1)) Then ExitLong(); IF MarketPosition == -1 and CrossUp(c,dayhigh(1)) or crossDown(c,daylow(1)) Then ExitShort(); 즐거운 하루되세요 > 바둑이 님이 쓴 글입니다. > 제목 : 수식 보완 요청드립니다. > 안녕하세요. 시가와 전일중심가격 사이를 존으로 설정한 후 시가가 전일중심가격보다 높게 시작하면 현재가가 시가만든봉 바로 다음봉 시작에 매수진입하고 청산은 전일고가 또는 전일저가 또는 시가대비 피보나치비율 23.6 / 38.2 / 5 / 61.8 에서 청산 시가와 전일중심가격 사이를 존으로 설정한 후 시가가 전일중심가격보다 낮게 시작하면 현재가가 시가만든봉 바로 다음봉에 시작에 매도진입하고 청산은 전일고가 또는 전일저가 또는 시가대비 피보나치비율 23.6 / 38.2 / 5 / 61.8 에서 청산 아래 수식은 매매중간에는 진입신호가 나오나 시가만든봉 바로 다음봉에 진입이 안되고 전일고가 또는 전일저가에 청산도 되질 않습니다. 감사합니다. Input: dix(1),stopper(1.2),진입횟수(10); var : entry(0,Data1),idx(0,Data1),전일중심(0),zone(0); var : Bcond(False,Data1),Scond(False,Data1); setstoploss(stopper); if Bdate != bdate[1] Then { entry = 0; idx = 0; } Else idx = idx+1; if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; 전일중심 = ((dayhigh(1)+daylow(1))/2); zone = o+((dayhigh(1)+daylow(1))/2); bcond = ((o > 전일중심 ) and crossup(c,o)) or ((o < 전일중심 ) and crossup(c,전일중심)); scond = ((o > 전일중심 ) and crossdown(c,전일중심)) or ((o < 전일중심 ) and CrossDown(c,o)); if idx >= dix and stime > 083000 then { if entry < 10 and Bcond == true Then Buy(); if entry < 10 and Scond == true Then { Sell(); } } IF MarketPosition == 1 and crossup(c,dayhigh(1)) or crossup(c,daylow(1)) Then ExitLong(); IF MarketPosition == -1 and CrossDown(c,dayhigh(1)) or crossDown(c,daylow(1)) Then ExitShort();