커뮤니티

수식문의드립니다

프로필 이미지
아트차트
2019-06-20 08:51:12
308
글번호 129600
답변완료
키움사용하다가 이번에 넘어왓는데 예스 랭귀지가 어렵게만 느껴지네요... 키움에서 사용하던 수식은 @@@매수 A1=shift((highest(high,9)+lowest(low,9)+highest(high,1)+lowest(low,1))/4,1-1); A2=shift((highest(high,52)+lowest(low,52))/2,1-1); B2=avg(c,120); if(A1>A2 && c>B2 && time >=113000 and time <= 123000 and Crossup(C,SAR(0.02,0.2)),1,0) @@@매도 A1=shift((highest(high,9)+lowest(low,9)+highest(high,1)+lowest(low,1))/4,1-1); A2=shift((highest(high,52)+lowest(low,52))/2,1-1); B2=avg(c,120); if(A1<A2 && c<B2 && time >=113000 and time <= 123000 and Crossdown(C,SAR(0.02,0.2)),1,0) 매수매도 예스랭귀지로 수식좀 부탁드립니다 PS 아 그리고 혹시 매수와매도중 처음 나오는 신호만 하루한번 표시되는 수식이 가능할까요 매수인지 매도인지 구분은 가도록해서요 당일 첫신호가 매수이면 매수표시,매도이면 매도표시로 매수든 매도든 딱 한번 나오는걸루요 시스템트레이닝으로 하루에 한번 거래하도록해야하는건지.... 좀 부탁드립니다
검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-06-20 10:39:54

안녕하세요 예스스탁입니다. var : entry(0),A1(0),A2(0),B2(0); if bdate != bdate[1] Then entry = 0; if MarketPosition(0) != 0 and MarketPosition(0) != MarketPosition(0)[1] Then entry = entry+1; A1 = (highest(high,9)+lowest(low,9)+highest(high,1)+lowest(low,1))/4; A2 = (highest(high,52)+lowest(low,52))/2; B2 = ma(C,120); var1 = SAR(0.02,0.2); if entry < 1 Then { if A1>A2 && c>B2 && stime >=113000 and stime <= 123000 and Crossup(C,var1) Then buy(); if A1<A2 && c<B2 && time >=113000 and time <= 123000 and Crossdown(C,var1) Then sell(); } 즐거운 하루되세요 > 아트차트 님이 쓴 글입니다. > 제목 : 수식문의드립니다 > 키움사용하다가 이번에 넘어왓는데 예스 랭귀지가 어렵게만 느껴지네요... 키움에서 사용하던 수식은 @@@매수 A1=shift((highest(high,9)+lowest(low,9)+highest(high,1)+lowest(low,1))/4,1-1); A2=shift((highest(high,52)+lowest(low,52))/2,1-1); B2=avg(c,120); if(A1>A2 && c>B2 && time >=113000 and time <= 123000 and Crossup(C,SAR(0.02,0.2)),1,0) @@@매도 A1=shift((highest(high,9)+lowest(low,9)+highest(high,1)+lowest(low,1))/4,1-1); A2=shift((highest(high,52)+lowest(low,52))/2,1-1); B2=avg(c,120); if(A1<A2 && c<B2 && time >=113000 and time <= 123000 and Crossdown(C,SAR(0.02,0.2)),1,0) 매수매도 예스랭귀지로 수식좀 부탁드립니다 PS 아 그리고 혹시 매수와매도중 처음 나오는 신호만 하루한번 표시되는 수식이 가능할까요 매수인지 매도인지 구분은 가도록해서요 당일 첫신호가 매수이면 매수표시,매도이면 매도표시로 매수든 매도든 딱 한번 나오는걸루요 시스템트레이닝으로 하루에 한번 거래하도록해야하는건지.... 좀 부탁드립니다