커뮤니티

트리플 시크리닝 인데요

프로필 이미지
뚱자
2009-04-09 23:59:43
911
글번호 21593
답변완료
input : p1(12), p2(5), p3(5), upline(70), dnline(30), l1(12), l2(26), l3(9); var : stok(0), stoD(0), weekmacdh(0,data2); stok = stochasticsk(p1, p2); stod = stochasticsd(p1, p2, p3); WeekMACDH = data2(macd_osc(l1, l2, l3)); if WeekMACDH > weekmacdh[1] and crossdown(stok, dnline) then buy(); if weekmacdh < weekmacdh[1] and crossup(stok, upline) then sell(); if marketposition() == 1 then ExitLong("exl", atstop, l[barssinceentry]-PriceScale); if marketposition() == -1 then exitshort("exs", atstop, H[barssinceentry]+PriceScale); ////////////////////////////////// 완성하여서 돌리면 data2 값을 주라고 하는데 이거 어떻게 해야 되나요?
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2009-04-10 10:00:34

안녕하세요 예스스탁입니다. 수식에 WeekMACDH = data2(macd_osc(l1, l2, l3));과 같이 참조종목의 데이터를 요하는 문장이 있습니다. 그러므로 주종목과 참조종목한개가 필요합니다. 차트에는 종목선택창이 2개가 있습니다. 돋보기 아이콘이 2개가 있습니다. 그 중 화살표가 있는 돋보기아이콘을 클릭하시면 참조종목을 선택할 수 있는 종목선택창이 나타납니다. 해당 화면에서 종목을 선택하여 주기등을 선택하신 후 적용하시기 바랍니다. 즐거운 하루되세요 > 뚱자 님이 쓴 글입니다. > 제목 : 트리플 시크리닝 인데요 > input : p1(12), p2(5), p3(5), upline(70), dnline(30), l1(12), l2(26), l3(9); var : stok(0), stoD(0), weekmacdh(0,data2); stok = stochasticsk(p1, p2); stod = stochasticsd(p1, p2, p3); WeekMACDH = data2(macd_osc(l1, l2, l3)); if WeekMACDH > weekmacdh[1] and crossdown(stok, dnline) then buy(); if weekmacdh < weekmacdh[1] and crossup(stok, upline) then sell(); if marketposition() == 1 then ExitLong("exl", atstop, l[barssinceentry]-PriceScale); if marketposition() == -1 then exitshort("exs", atstop, H[barssinceentry]+PriceScale); ////////////////////////////////// 완성하여서 돌리면 data2 값을 주라고 하는데 이거 어떻게 해야 되나요?