커뮤니티

수식문의드립니다.

프로필 이미지
하늘선물
2023-12-01 12:51:42
727
글번호 174500
답변완료
안녕하세요. 시스템 청산수식 문의드립니다. 매수청산수식 : 매수진입후 + 350틱 이상부터는 아래로 -50틱 으로 떨어지면 강제청산하는 수식을 부탁드립니다. 매도청산수식 : 매도진입후 - 350틱 이상부터는 위로 +50틱 으로 올라가면 강제청산하는 수식을 부탁드립니다. 매수청산수식 ===== if MarketPosition <= 0 and CrossUp(var1,Var2) Then Buy ("B1", AtStop, C); if MarketPosition == 1 and CrossDown(var1,Var42 Then ExitLong("bx"); ExitLong( "be", 매수청산 필요수식.................); 매도청산수식 =========== if MarketPosition <= 0 and CrossDown(var1,Var2) Then Sell ("S1", AtStop, C); if MarketPosition == -1 and CrossUP(var1,Var2) Then ExitShort ("sx"); ExitShort("se", 매도청산 필요수식............); 늘 감사드립니다. 좋은 날되세요 ~
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-12-01 15:16:07

안녕하세요 예스스탁입니다. if MarketPosition <= 0 and CrossUp(var1,Var2) Then Buy ("B1", AtStop, C); if MarketPosition == 1 Then { if CrossDown(var1,Var2) Then ExitLong("bx"); if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*350 Then ExitLong( "be",AtStop,highest(H,BarsSinceEntry)-PriceScale*50); } if MarketPosition <= 0 and CrossDown(var1,Var2) Then Sell ("S1", AtStop, C); if MarketPosition == -1 Then { if CrossUP(var1,Var2) Then ExitShort ("sx"); if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*350 Then ExitShort("se",AtStop,lowest(L,BarsSinceEntry)+PriceScale*50); } 즐거운 하루되세요 > 하늘선물 님이 쓴 글입니다. > 제목 : 수식문의드립니다. > 안녕하세요. 시스템 청산수식 문의드립니다. 매수청산수식 : 매수진입후 + 350틱 이상부터는 아래로 -50틱 으로 떨어지면 강제청산하는 수식을 부탁드립니다. 매도청산수식 : 매도진입후 - 350틱 이상부터는 위로 +50틱 으로 올라가면 강제청산하는 수식을 부탁드립니다. 매수청산수식 ===== if MarketPosition <= 0 and CrossUp(var1,Var2) Then Buy ("B1", AtStop, C); if MarketPosition == 1 and CrossDown(var1,Var42 Then ExitLong("bx"); ExitLong( "be", 매수청산 필요수식.................); 매도청산수식 =========== if MarketPosition <= 0 and CrossDown(var1,Var2) Then Sell ("S1", AtStop, C); if MarketPosition == -1 and CrossUP(var1,Var2) Then ExitShort ("sx"); ExitShort("se", 매도청산 필요수식............); 늘 감사드립니다. 좋은 날되세요 ~