커뮤니티

부탁드립니다

프로필 이미지
시골소년
2016-02-23 05:20:12
109
글번호 95681
답변완료
진입식 1.9사 10분시작 2.포지션이 0이고 가격이 시초가보다 크고 볼린져 중심선을 상향돌파하거나 포지션이 0이고 가격이 시초가보다 크고 당일고가를 상향돌파시 매수 3 포지션이 0이고 가격이 시초가보다 작고 볼린져 중심선을 하향돌파하거나 포지션이 0이고 가격이 시초가보다 작고 당일저가를 하향돌파시 매도 4. 포지션이 1이고 가격이 시초가 하향돌파시 매도 5. 포지션이 -1이고 가격이 시초가 상향돌파시 매수 청산 0.5포 수익이고 볼린져 가격이 볼린져 중심선 골든크로스 매도청산 0.5포 수익이고 볼린져 가격이 볼린져 중심선 데드크로스 매수청산 아래수식을 참고하여 수정부탁드립니다. Input : Period(20), MultiD(2); var : BBmd(0),BBup(0),BBdn(0); BBmd = ma(C,Period); BBup = BollBandUp(Period,MultiD); BBdn = BollBandDown(Period,MultiD); if C > dayopen and crossup(c,BBmd) Then buy(); if C < dayopen and CrossDown(c,BBmd) Then sell(); if MarketPosition == 1 Then{ exitlong("bl",AtStop,dayopen-PriceScale); if highest(H,BarsSinceEntry) >= EntryPrice+0.5 and CrossDown(c,BBmd) Then ExitLong("bx"); } if MarketPosition == -1 then{ ExitShort("sl",AtStop,dayopen+PriceScale); if Lowest(L,BarsSinceEntry) <= EntryPrice-0.5 and CrossUp(c,BBmd) Then ExitShort("sx"); } 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-02-23 09:38:47

안녕하세요 예스스탁입니다. Input : Period(20), MultiD(2); var : BBmd(0),BBup(0),BBdn(0); BBmd = ma(C,Period); BBup = BollBandUp(Period,MultiD); BBdn = BollBandDown(Period,MultiD); if stime >= 91000 then{ if MarketPosition == 0 and C > dayopen and (crossup(c,BBmd) or crossup(c,dayhigh[1])) Then buy(); if MarketPosition == 0 and C < dayopen and (CrossDown(c,BBmd) or CrossDown(C,daylow[1])) Then sell(); } if MarketPosition == 1 Then{ exitlong("bl",AtStop,dayopen-PriceScale); if C >= EntryPrice+0.5 and CrossDown(c,BBmd) Then ExitLong("bx"); } if MarketPosition == -1 then{ ExitShort("sl",AtStop,dayopen+PriceScale); if C <= EntryPrice-0.5 and CrossUp(c,BBmd) Then ExitShort("sx"); } 즐거운 하루되세요 > 시골소년 님이 쓴 글입니다. > 제목 : 부탁드립니다 > 진입식 1.9사 10분시작 2.포지션이 0이고 가격이 시초가보다 크고 볼린져 중심선을 상향돌파하거나 포지션이 0이고 가격이 시초가보다 크고 당일고가를 상향돌파시 매수 3 포지션이 0이고 가격이 시초가보다 작고 볼린져 중심선을 하향돌파하거나 포지션이 0이고 가격이 시초가보다 작고 당일저가를 하향돌파시 매도 4. 포지션이 1이고 가격이 시초가 하향돌파시 매도 5. 포지션이 -1이고 가격이 시초가 상향돌파시 매수 청산 0.5포 수익이고 볼린져 가격이 볼린져 중심선 골든크로스 매도청산 0.5포 수익이고 볼린져 가격이 볼린져 중심선 데드크로스 매수청산 아래수식을 참고하여 수정부탁드립니다. Input : Period(20), MultiD(2); var : BBmd(0),BBup(0),BBdn(0); BBmd = ma(C,Period); BBup = BollBandUp(Period,MultiD); BBdn = BollBandDown(Period,MultiD); if C > dayopen and crossup(c,BBmd) Then buy(); if C < dayopen and CrossDown(c,BBmd) Then sell(); if MarketPosition == 1 Then{ exitlong("bl",AtStop,dayopen-PriceScale); if highest(H,BarsSinceEntry) >= EntryPrice+0.5 and CrossDown(c,BBmd) Then ExitLong("bx"); } if MarketPosition == -1 then{ ExitShort("sl",AtStop,dayopen+PriceScale); if Lowest(L,BarsSinceEntry) <= EntryPrice-0.5 and CrossUp(c,BBmd) Then ExitShort("sx"); } 감사합니다.