커뮤니티

부탁드립니다.

프로필 이미지
한걸
2012-03-04 08:32:33
349
글번호 48522
답변완료
수식 좀 부탁드립니다. 데이용입니다. 지표: price oscilator(단기10/장기20), stochastics slow(5,2,3) 분봉: 15분봉 1.진입: price oscilator가 중심선(0)을 넘어갈때 매수, 중심선을 내려갈때 매도 시초가가 price oscilator 중심선 위에서 시작하면 stochastics slow가 과매도(20) 아래에서 매수진입/ 시초에 price oscilator가 중심선 아래에서 시작하면 stochastics slow가 과매수(80)위에서 매도진입. 2. 청산: price oscilator 반대 신호 나올때까지 또는 종가. 진입후 2포 수익나는 시점에 손절을 본절로 옮기고 홀딩 3. 손절: 진입가 대비 1포 4. 매매횟수: 하루 3회 멕시멈(손절 1포내에서 하루 3회까지 매매)
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2012-03-05 11:48:41

안녕하세요 예스스탁입니다. Input : shortPeriod(10), longPeriod(20),sto1(5),sto2(2),sto3(3); var : PLR(0),XCommission(0),XSlippage(0),OpenPL(0),dayPL(0),count(0),cnt(0); #당일누적손익계산 시작 XCommission = ((C*ExitCommission)/100)*CurrentContracts; #%설정 XSlippage = (ExitSlippage)*CurrentContracts; #Pt설정 PLR = 0; count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then{ count = count+1; if cnt > 0 Then PLR = PLR+PositionProfit(cnt); } } if MarketPosition() == 0 Then{ OpenPL = 0; dayPL = PLR; } Else{ OpenPL = (PositionProfit-(XCommission+XSlippage)); dayPL = PLR+OpenPL; } var1 = OSCP(shortPeriod, longPeriod); var2 = StochasticsK(sto1,sto2); var3 = StochasticsD(sto1,sto2,sto3); if dayindex == 0 Then{ if var1 > 0 and var2 < 20 Then buy(); if var1 < 0 and var2 > 20 Then sell(); } if dayindex > 0 and dayPL > -1 and count < 3 Then{ if crossup(var1,0) Then buy(); if CrossDown(var1,0) Then sell(); } if MarketPosition == 1 Then{ if highest(H,BarsSinceEntry) < EntryPrice+2 Then exitlong("bx1",AtStop,EntryPrice-1); if highest(H,BarsSinceEntry) >= EntryPrice+2 Then exitlong("bx2",AtStop,EntryPrice); } if MarketPosition == -1 Then{ if Lowest(L,BarsSinceEntry) > EntryPrice-2 Then ExitShort("sx1",AtStop,EntryPrice+1); if Lowest(L,BarsSinceEntry) <= EntryPrice-2 Then ExitShort("sx2",AtStop,EntryPrice); } SetStopEndofday(150000); 즐거운 하루되세요 > 한걸 님이 쓴 글입니다. > 제목 : 부탁드립니다. > 수식 좀 부탁드립니다. 데이용입니다. 지표: price oscilator(단기10/장기20), stochastics slow(5,2,3) 분봉: 15분봉 1.진입: price oscilator가 중심선(0)을 넘어갈때 매수, 중심선을 내려갈때 매도 시초가가 price oscilator 중심선 위에서 시작하면 stochastics slow가 과매도(20) 아래에서 매수진입/ 시초에 price oscilator가 중심선 아래에서 시작하면 stochastics slow가 과매수(80)위에서 매도진입. 2. 청산: price oscilator 반대 신호 나올때까지 또는 종가. 진입후 2포 수익나는 시점에 손절을 본절로 옮기고 홀딩 3. 손절: 진입가 대비 1포 4. 매매횟수: 하루 3회 멕시멈(손절 1포내에서 하루 3회까지 매매)