커뮤니티

안녕하세요?

프로필 이미지
상중하
2022-03-15 09:16:40
1058
글번호 157167
답변완료
안녕하세요? 아래수식에서 질문 드립니다. 신호명 S-SL,B-SL 으로 진입이후 다른신호 S1,B1으로 스위칭 되지 않게 수식 수정이 가능 하면 수정 부탁드립니다. S-SL 진입후 익절,손절만 적용. B1으로 스위칭 되지 않게요. B-SL 진입후 익절,손절만 적용. S1으로 스위칭 되지 않게요. 감사합니다. If MarketPosition >= 0 and wave==2 and h < value5 Then Sell("S1",AtLimit,value5,1); if MarketPosition == -1 and IsEntryName("S1") == true then { if l> value6 Then ExitShort("S-TP",AtLimit,value6); Buy("S-SL",AtStop,value1,2); } if MarketPosition == 1 and IsEntryName("S-SL") == true then { ExitLong("bx",AtLimit,EntryPrice+abs(EntryPrice(1)-ExitPrice(1))*2); ExitLong("BB-SL",AtStop,value4,def,2); } If MarketPosition >= 0 and wave==3 and l > value6 Then Buy("B1",AtLimit,value6,1); if MarketPosition == 1 and IsEntryName("B1") == true Then { if h < value5 Then ExitLong("B-TP",AtLimit,value5); Sell("B-SL",AtStop,value4,2); } if MarketPosition == -1 and IsEntryName("B-SL") == true then { ExitShort("sx",AtLimit,EntryPrice-abs(EntryPrice(1)-ExitPrice(1))*2); ExitShort("SS-SL",AtStop,value1,def,2); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-03-15 15:09:23

안녕하세요 예스스탁입니다. If wave==2 and h < value5 Then { if MarketPosition == 0 or (MarketPosition == 1 and IsEntryName("S-SL") == False) Then Sell("S1",AtLimit,value5,1); } if MarketPosition == -1 and IsEntryName("S1") == true then { if l> value6 Then ExitShort("S-TP",AtLimit,value6); Buy("S-SL",AtStop,value1,2); } if MarketPosition == 1 and IsEntryName("S-SL") == true then { ExitLong("bx",AtLimit,EntryPrice+abs(EntryPrice(1)-ExitPrice(1))*2); ExitLong("BB-SL",AtStop,value4,def,2); } If wave==3 and l > value6 Then { if MarketPosition == 0 or (MarketPosition == -1 and IsEntryName("B-SL") == False) Then Buy("B1",AtLimit,value6,1); } if MarketPosition == 1 and IsEntryName("B1") == true Then { if h < value5 Then ExitLong("B-TP",AtLimit,value5); Sell("B-SL",AtStop,value4,2); } if MarketPosition == -1 and IsEntryName("B-SL") == true then { ExitShort("sx",AtLimit,EntryPrice-abs(EntryPrice(1)-ExitPrice(1))*2); ExitShort("SS-SL",AtStop,value1,def,2); } 즐거운 하루되세요 > 상중하 님이 쓴 글입니다. > 제목 : 안녕하세요? > 안녕하세요? 아래수식에서 질문 드립니다. 신호명 S-SL,B-SL 으로 진입이후 다른신호 S1,B1으로 스위칭 되지 않게 수식 수정이 가능 하면 수정 부탁드립니다. S-SL 진입후 익절,손절만 적용. B1으로 스위칭 되지 않게요. B-SL 진입후 익절,손절만 적용. S1으로 스위칭 되지 않게요. 감사합니다. If MarketPosition >= 0 and wave==2 and h < value5 Then Sell("S1",AtLimit,value5,1); if MarketPosition == -1 and IsEntryName("S1") == true then { if l> value6 Then ExitShort("S-TP",AtLimit,value6); Buy("S-SL",AtStop,value1,2); } if MarketPosition == 1 and IsEntryName("S-SL") == true then { ExitLong("bx",AtLimit,EntryPrice+abs(EntryPrice(1)-ExitPrice(1))*2); ExitLong("BB-SL",AtStop,value4,def,2); } If MarketPosition >= 0 and wave==3 and l > value6 Then Buy("B1",AtLimit,value6,1); if MarketPosition == 1 and IsEntryName("B1") == true Then { if h < value5 Then ExitLong("B-TP",AtLimit,value5); Sell("B-SL",AtStop,value4,2); } if MarketPosition == -1 and IsEntryName("B-SL") == true then { ExitShort("sx",AtLimit,EntryPrice-abs(EntryPrice(1)-ExitPrice(1))*2); ExitShort("SS-SL",AtStop,value1,def,2); }