커뮤니티

수식 요청합니다.

프로필 이미지
이형지
2020-03-19 10:28:43
342
글번호 137017
답변완료
아래수식을 적용하고 있습니다. 봉매매 국내주식 추가 기능 사항 2시 30분이후에는 매수 진입/ 매수 청산 되지 않게 요청합니다. 즉 진입 / 청산 모두 9시 - 2시 30분에만 활성화될수 있는 수식 기능을 요청합니다. input : n(200),P(10),금액1(100000),금액2(200000); var1 = highest(H,n); var2 = mfi(P); if MaxEntries < 100 and c < var1*0.9 and var2 < 30 and c < o and c <= c[1]*0.99 Then buy("b1",OnClose,def,Floor(금액1/c)); if MaxEntries < 100 and c < var1*0.8 and var2 < 15 and c < o and c <= c[1]*0.98 Then buy("b2",OnClose,def,Floor(금액2/c)); SetStopProfittarget(5,PercentStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-03-20 11:23:04

안녕하세요 예스스탁입니다. input : n(200),P(10),금액1(100000),금액2(200000); var1 = highest(H,n); var2 = mfi(P); if stime < 143000 then { if MaxEntries < 100 and c < var1*0.9 and var2 < 30 and c < o and c <= c[1]*0.99 Then buy("b1",OnClose,def,Floor(금액1/c)); if MaxEntries < 100 and c < var1*0.8 and var2 < 15 and c < o and c <= c[1]*0.98 Then buy("b2",OnClose,def,Floor(금액2/c)); SetStopProfittarget(5,PercentStop); } Else SetStopProfittarget(0); 즐거운 하루되세요 > 이형지 님이 쓴 글입니다. > 제목 : 수식 요청합니다. > 아래수식을 적용하고 있습니다. 봉매매 국내주식 추가 기능 사항 2시 30분이후에는 매수 진입/ 매수 청산 되지 않게 요청합니다. 즉 진입 / 청산 모두 9시 - 2시 30분에만 활성화될수 있는 수식 기능을 요청합니다. input : n(200),P(10),금액1(100000),금액2(200000); var1 = highest(H,n); var2 = mfi(P); if MaxEntries < 100 and c < var1*0.9 and var2 < 30 and c < o and c <= c[1]*0.99 Then buy("b1",OnClose,def,Floor(금액1/c)); if MaxEntries < 100 and c < var1*0.8 and var2 < 15 and c < o and c <= c[1]*0.98 Then buy("b2",OnClose,def,Floor(금액2/c)); SetStopProfittarget(5,PercentStop);