커뮤니티

수식 부탁드립니다~

프로필 이미지
푸른물결
2017-09-11 01:28:06
127
글번호 112634
답변완료
안녕하세요 수고하십니다 다음과같이 수식 좀 부탁드립니다~ #현주가가 금일저가를 하향 돌파시 신호발생가-30틱에서 매수진입하고, 금일고가 돌파시 매수청산 현주가가 금일고가를 상향 돌파시 신호발생가+30틱에서 매도진입하고, 금일저가 돌파시 매도청산 손절은 20틱,익절30틱 1번째수식: 수식그대로 작성 2번째수식: 원수식+하루 한번할수있는 매매횟수 제한하는 수식추가 3번째수식: 원수식+진입가격,손절가,익절값이 텍스트표기 및 라인으로 작성되는식 추가 너무 많이 부탁드려 지송합니다~ 감사합니다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-09-12 10:38:06

안녕하세요 예스스탁입니다. 진입식 내용에 대해서 정확히 이해하지 못했습니다. 시스템은 지정한 가격이 발생해야 신호가 발생합니다. 올려주신 내용은 당일저가-30틱 매수, 당일고가+30틱 매도인데 발생할수 없는 가격이라 어떤 내용으로 작성해 드려야 할지 모르겠습니다. 금일저가 갱신시 매수진입/매도청산 금일고가 갱신시 매도진입/매수청산 으로 작성해 드립니다. 1 var : HH(0),LL(0); if Bdate != Bdate[1] Then{ HH = H; LL = L; } if L < LL Then{ LL = L; buy("B"); } if H > HH Then{ HH = H; Sell("S"); } SetStopLoss(PriceScale*20,PointStop); SetStopProfittarget(PriceScale*30,PointStop); 2 var : HH(0),LL(0),T1(0),entry(0); if Bdate != Bdate[1] Then{ HH = H; LL = L; T1 = TotalTrades; } if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = TotalTrades-T1+1; if entry < 1 Then{ if L < LL Then{ LL = L; buy("B"); } if H > HH Then{ HH = H; Sell("S"); } } SetStopLoss(PriceScale*20,PointStop); SetStopProfittarget(PriceScale*30,PointStop); 3 var : HH(0),LL(0),T1(0),entry(0),TL1(0),TL2(0),TL3(0),tx1(0),tx2(0),tx3(0); if Bdate != Bdate[1] Then{ HH = H; LL = L; T1 = TotalTrades; } if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = TotalTrades-T1+1; if entry < 1 Then{ if L < LL Then{ LL = L; buy("B"); } if H > HH Then{ HH = H; Sell("S"); } } SetStopLoss(PriceScale*20,PointStop); SetStopProfittarget(PriceScale*30,PointStop); if MarketPosition != 0 then{ if CurrentContracts > CurrentContracts[1] Then{ TL1 = TL_New(sdate[1],sTime[1],EntryPrice,sdate,stime,EntryPrice); tx1 = Text_New(EntryDate,EntryTime,EntryPrice,"진입 : "+NumToStr(EntryPrice,2)); if MarketPosition == 1 Then{ TL2 = TL_New(sdate[1],sTime[1],EntryPrice+PriceScale*30,sdate,stime,EntryPrice+PriceScale*30); TL3 = TL_New(sdate[1],sTime[1],EntryPrice-PriceScale*20,sdate,stime,EntryPrice-PriceScale*20); tx2 = Text_New(EntryDate,EntryTime,EntryPrice+PriceScale*30,"익절 : "+NumToStr(EntryPrice+PriceScale*30,2)); tx3 = Text_New(EntryDate,EntryTime,EntryPrice-PriceScale*20,"손절 : "+NumToStr(EntryPrice-PriceScale*20,2)); } if MarketPosition == -1 Then{ TL2 = TL_New(sdate[1],sTime[1],EntryPrice-PriceScale*30,sdate,stime,EntryPrice-PriceScale*30); TL3 = TL_New(sdate[1],sTime[1],EntryPrice+PriceScale*20,sdate,stime,EntryPrice+PriceScale*20); tx2 = Text_New(EntryDate,EntryTime,EntryPrice-PriceScale*30,"익절 : "+NumToStr(EntryPrice-PriceScale*30,2)); tx3 = Text_New(EntryDate,EntryTime,EntryPrice+PriceScale*20,"손절 : "+NumToStr(EntryPrice+PriceScale*20,2)); } } if CurrentContracts == CurrentContracts[1] then{ TL_SetEnd(TL1,sdate,stime,EntryPrice); Text_SetLocation(tx1,sdate,stime,EntryPrice); if MarketPosition == 1 then{ TL_SetEnd(TL2,sdate,stime,EntryPrice+PriceScale*30); TL_SetEnd(TL3,sdate,stime,EntryPrice-PriceScale*20); Text_SetLocation(tx2,sdate,stime,EntryPrice+PriceScale*30); Text_SetLocation(tx3,sdate,stime,EntryPrice-PriceScale*20); } if MarketPosition == -1 then{ TL_SetEnd(TL2,sdate,stime,EntryPrice-PriceScale*30); TL_SetEnd(TL3,sdate,stime,EntryPrice+PriceScale*20); Text_SetLocation(tx2,sdate,stime,EntryPrice-PriceScale*30); Text_SetLocation(tx3,sdate,stime,EntryPrice+PriceScale*20); } } } if TotalTrades > TotalTrades[1] Then Text_New(EntryDate,EntryTime,EntryPrice,"청산 : "+NumToStr(ExitPrice(1),2)); 즐거운 하루되세요 > 푸른물결 님이 쓴 글입니다. > 제목 : 수식 부탁드립니다~ > 안녕하세요 수고하십니다 다음과같이 수식 좀 부탁드립니다~ #현주가가 금일저가를 하향 돌파시 신호발생가-30틱에서 매수진입하고, 금일고가 돌파시 매수청산 현주가가 금일고가를 상향 돌파시 신호발생가+30틱에서 매도진입하고, 금일저가 돌파시 매도청산 손절은 20틱,익절30틱 1번째수식: 수식그대로 작성 2번째수식: 원수식+하루 한번할수있는 매매횟수 제한하는 수식추가 3번째수식: 원수식+진입가격,손절가,익절값이 텍스트표기 및 라인으로 작성되는식 추가 너무 많이 부탁드려 지송합니다~ 감사합니다