커뮤니티

부탁드립니다

프로필 이미지
시골소년
2016-02-25 00:22:11
95
글번호 95775
답변완료
아래식에 청산식 추가부탁드립니다. 1.매도진입후 당일 고점돌파시 매도청산 2.매수진입후 당일 저점 돌파시 매수청산 Input : Period(20), MultiD(2); var : BBmd(0),BBup(0),BBdn(0); value1 = lowest(L,30); value2 = highest(H,30); BBmd = ma(C,Period); BBup = BollBandUp(Period,MultiD); BBdn = BollBandDown(Period,MultiD); if MarketPosition == 0 and daylow <= -1 and crossup(c,BBmd) Then buy(); if MarketPosition == 0 and dayhigh >= 1 and CrossDown(c,BBmd) Then sell(); if MarketPosition == 1 Then{ if highest(H,BarsSinceEntry) >= EntryPrice+0.5 and CrossDown(c,BBmd) Then ExitLong("bx"); } if MarketPosition == -1 then{ if Lowest(L,BarsSinceEntry) <= EntryPrice-0.5 and CrossUp(c,BBmd) Then ExitShort("sx"); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-02-25 10:22:40

안녕하세요 예스스탁입니다. Input : Period(20), MultiD(2); var : BBmd(0),BBup(0),BBdn(0); value1 = lowest(L,30); value2 = highest(H,30); BBmd = ma(C,Period); BBup = BollBandUp(Period,MultiD); BBdn = BollBandDown(Period,MultiD); if MarketPosition == 0 and daylow <= -1 and crossup(c,BBmd) Then buy(); if MarketPosition == 0 and dayhigh >= 1 and CrossDown(c,BBmd) Then sell(); if MarketPosition == 1 Then{ ExitLong("BL",AtStop,daylow); if highest(H,BarsSinceEntry) >= EntryPrice+0.5 and CrossDown(c,BBmd) Then ExitLong("bx"); } if MarketPosition == -1 then{ ExitShort("SL",AtStop,DayHigh); if Lowest(L,BarsSinceEntry) <= EntryPrice-0.5 and CrossUp(c,BBmd) Then ExitShort("sx"); } 즐거운 하루되세요 > 시골소년 님이 쓴 글입니다. > 제목 : 부탁드립니다 > 아래식에 청산식 추가부탁드립니다. 1.매도진입후 당일 고점돌파시 매도청산 2.매수진입후 당일 저점 돌파시 매수청산 Input : Period(20), MultiD(2); var : BBmd(0),BBup(0),BBdn(0); value1 = lowest(L,30); value2 = highest(H,30); BBmd = ma(C,Period); BBup = BollBandUp(Period,MultiD); BBdn = BollBandDown(Period,MultiD); if MarketPosition == 0 and daylow <= -1 and crossup(c,BBmd) Then buy(); if MarketPosition == 0 and dayhigh >= 1 and CrossDown(c,BBmd) Then sell(); if MarketPosition == 1 Then{ if highest(H,BarsSinceEntry) >= EntryPrice+0.5 and CrossDown(c,BBmd) Then ExitLong("bx"); } if MarketPosition == -1 then{ if Lowest(L,BarsSinceEntry) <= EntryPrice-0.5 and CrossUp(c,BBmd) Then ExitShort("sx"); }