커뮤니티

부탁드립니다

프로필 이미지
tjsdud
2024-05-22 14:15:19
657
글번호 179866
답변완료
다시 부탁드립니다 옵션입니다 2계약 이상(짝수) 진입시 목표수익(예0.5)에 도달하면 반 청산하고 나머지는 매도청산신호에 따라 청산 만일 목표수익에 도달하지 못하면 모두다 매도청산신호에 청산 보내주신 것은 반 청산후 다시 매도가 발생되게 되어있는 듯 합니다 미리 감사드립니다 input : 익절(0.5); var : AA(0),BB(0),TX(0),Xcond(False); AA= AccumN(H-O,20) / AccumN(O-L,20) * 100; BB= AccumN(H-C,20) / AccumN(C-L,20) * 100; TX = wma((((C-C[11])/C[11])*100) + (((C-C[14])/C[14])*100),10); #매도진입 if TX<0 and AA < BB Then sell(); #매도청산 if MarketPosition == -1 Then { if TX >0 and AA > BB Then ExitShort("sx"); if CurrentContracts == MaxContracts Then ExitShort("sp",AtLimit,EntryPrice-익절,"",Floor(MaxContracts*0.5),1); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2024-05-22 14:38:42

안녕하세요 예스스탁입니다. input : 익절(0.5); var : AA(0),BB(0),TX(0),Xcond(False); AA= AccumN(H-O,20) / AccumN(O-L,20) * 100; BB= AccumN(H-C,20) / AccumN(C-L,20) * 100; TX = wma((((C-C[11])/C[11])*100) + (((C-C[14])/C[14])*100),10); Condition1 = TX < 0 and AA < BB; #매도진입 if MarketPosition == 0 and Condition1 == true and Condition1[1] == False Then sell(); #매도청산 if MarketPosition == -1 Then { if TX >0 and AA > BB Then ExitShort("sx"); if CurrentContracts == MaxContracts Then ExitShort("sp",AtLimit,EntryPrice-익절,"",Floor(MaxContracts*0.5),1); } 즐거운 하루되세요 > tjsdud 님이 쓴 글입니다. > 제목 : 부탁드립니다 > 다시 부탁드립니다 옵션입니다 2계약 이상(짝수) 진입시 목표수익(예0.5)에 도달하면 반 청산하고 나머지는 매도청산신호에 따라 청산 만일 목표수익에 도달하지 못하면 모두다 매도청산신호에 청산 보내주신 것은 반 청산후 다시 매도가 발생되게 되어있는 듯 합니다 미리 감사드립니다 input : 익절(0.5); var : AA(0),BB(0),TX(0),Xcond(False); AA= AccumN(H-O,20) / AccumN(O-L,20) * 100; BB= AccumN(H-C,20) / AccumN(C-L,20) * 100; TX = wma((((C-C[11])/C[11])*100) + (((C-C[14])/C[14])*100),10); #매도진입 if TX<0 and AA < BB Then sell(); #매도청산 if MarketPosition == -1 Then { if TX >0 and AA > BB Then ExitShort("sx"); if CurrentContracts == MaxContracts Then ExitShort("sp",AtLimit,EntryPrice-익절,"",Floor(MaxContracts*0.5),1); }