커뮤니티

price oscillator와 mao,이평선

프로필 이미지
jr1200
2018-09-05 16:01:54
166
글번호 121822
답변완료
Price Oscillator(10,20)가 기준선을 상향돌파시 매수, 하향돌파시 매도하며 Moving Average Oscillator(10,20)가 기준선을 상향돌파시 매수, 하향돌파시 매도하고 이동평균선(15)이 상승하면 매수하고 하락하면 매도하는 합성매매수식을 부탁합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-09-06 14:04:00

안녕하세요 예스스탁입니다. Input : short1(10), long1(20); Input : short2(5), long2(20); input : Period(15); var : PRO(0),MAO(0),MAV(0); PRO = OSCP(short1, long1); mao = ma(C,short1)-ma(C,long1); mav = ma(C,Period); Condition1 = PRO > 0 and MAO > 0 and Mav > Mav[1]; Condition2 = PRO < 0 and MAO < 0 and Mav < Mav[1]; if Condition1 == true and Condition1[1] == false Then buy(); if Condition2 == true and Condition2[1] == false Then sell(); 즐거운 하루되세요 > jr1200 님이 쓴 글입니다. > 제목 : price oscillator와 mao,이평선 > Price Oscillator(10,20)가 기준선을 상향돌파시 매수, 하향돌파시 매도하며 Moving Average Oscillator(10,20)가 기준선을 상향돌파시 매수, 하향돌파시 매도하고 이동평균선(15)이 상승하면 매수하고 하락하면 매도하는 합성매매수식을 부탁합니다.