커뮤니티

수식 수정 좀 부탁드립니다.

프로필 이미지
산수유
2024-05-16 07:56:36
897
글번호 179547
답변완료
if MarketPosition == 1 and C < value2 Then ExitLong("bx2",AtStop,Value2); if MarketPosition == -1 and C > value1 Then ExitShort("sx2",AtStop,value1); 단 Value1- Value2 가 <=10을 경우에는 매수포지션은 Value2보다 4point 내려가면 즉시 손절 매도포지션은 Value1보다 4point올라가면 즉시 손절을 추가 하는 수식 좀 부탁드립니다.
시스템
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2024-05-16 13:54:19

안녕하세요 예스스탁입니다. if MarketPosition == 1 and C < value2 Then ExitLong("bx2",AtStop,Value2); if MarketPosition == 1 and Value1- Value2 <=10 Then ExitLong("bx3",AtStop,Value2-4); if MarketPosition == -1 and C > value1 Then ExitShort("sx2",AtStop,value1); if MarketPosition == -1 and Value1- Value2 <=10 Then ExitShort("sx3",AtStop,value1+4); 즐거운 하루되세요 > 산수유 님이 쓴 글입니다. > 제목 : 수식 수정 좀 부탁드립니다. > if MarketPosition == 1 and C < value2 Then ExitLong("bx2",AtStop,Value2); if MarketPosition == -1 and C > value1 Then ExitShort("sx2",AtStop,value1); 단 Value1- Value2 가 <=10을 경우에는 매수포지션은 Value2보다 4point 내려가면 즉시 손절 매도포지션은 Value1보다 4point올라가면 즉시 손절을 추가 하는 수식 좀 부탁드립니다.
프로필 이미지

산수유

2024-05-16 14:01:47

항상 감사드립니다. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수식 수정 좀 부탁드립니다. > 안녕하세요 예스스탁입니다. if MarketPosition == 1 and C < value2 Then ExitLong("bx2",AtStop,Value2); if MarketPosition == 1 and Value1- Value2 <=10 Then ExitLong("bx3",AtStop,Value2-4); if MarketPosition == -1 and C > value1 Then ExitShort("sx2",AtStop,value1); if MarketPosition == -1 and Value1- Value2 <=10 Then ExitShort("sx3",AtStop,value1+4); 즐거운 하루되세요 > 산수유 님이 쓴 글입니다. > 제목 : 수식 수정 좀 부탁드립니다. > if MarketPosition == 1 and C < value2 Then ExitLong("bx2",AtStop,Value2); if MarketPosition == -1 and C > value1 Then ExitShort("sx2",AtStop,value1); 단 Value1- Value2 가 <=10을 경우에는 매수포지션은 Value2보다 4point 내려가면 즉시 손절 매도포지션은 Value1보다 4point올라가면 즉시 손절을 추가 하는 수식 좀 부탁드립니다.