커뮤니티

수식 문의

프로필 이미지
에구머니
2024-02-08 23:44:44
413
글번호 176514
답변완료
안녕하세요? 수식을 부탁드립니다. 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2024-02-08 09:24:48

안녕하세요 예스스탁입니다. input : n1(1),s1(3),pr1(4),n2(2),tr(5); var : ATRv(0),RSIV(0),bh(0),sl(0); ATRv = ATr(50); RSIV = RSI(9); if MarketPosition <= 0 and CrossUp(RSIV,30) Then Buy("b1",OnClose,Def,n1); if MarketPosition == 1 Then { ExitLong("bl",AtStop,EntryPrice-s1*ATRv); if CurrentContracts > CurrentContracts[1] Then bh = h; if bh > 0 and h > bh Then bh = h; if MaxEntries == 1 Then Buy("b2",AtStop,EntryPrice+pr1*ATRv,n2); if MaxEntries == 2 Then ExitLong("btr",AtStop,bh*(1-tr/100)); } if MarketPosition >= 0 and CrossDown(RSIV,70) Then Sell("s1",OnClose,Def,n1); if MarketPosition == -1 Then { ExitShort("sl",AtStop,EntryPrice+s1*ATRv); if CurrentContracts > CurrentContracts[1] Then sl = l; if sl > 0 and l < sl Then sl = l; if MaxEntries == 1 Then Sell("s2",AtStop,EntryPrice-pr1*ATRv,n2); if MaxEntries == 2 Then ExitShort("str",AtStop,sl*(1+tr/100)); } 즐거운 명절되세요 > 에구머니 님이 쓴 글입니다. > 제목 : 수식 문의 > 안녕하세요? 수식을 부탁드립니다. 감사합니다.