커뮤니티

함수

프로필 이미지
유인력11
2025-08-22 00:35:31
71
글번호 193423
답변완료
안녕하세요 가령 매수/매도 1개약 진입후 200틱 수익후 -40틱 빠졌을때 1개약 추가 진입되고 최종 2개약이 400틱 수익나면 all 익절청산 최종 2개약이 1개약 첫진입 도달시 all 손절청산 수고하세요
종목검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-08-22 10:11:53

안녕하세요 예스스탁입니다. 문의하신 내용은 시스템수식입니다. 첫진입에 대한 수식은 직접 추가하셔야 하며 추가진입을 하는 내용이므로 적용시 피라미딩을 모든진입신호 허용으로 설정하고 적용하셔야 합니다. if MarketPosition <= 0 and 첫매수진입조건 Then buy("b1",OnClose,Def,1); if MarketPosition >= 0 and 첫매도진입조건 Then Sell("s1",OnClose,Def,1); if MarketPosition == 1 Then { if MaxEntries == 1 and highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*200 Then Buy("bb",AtLimit,highest(H,BarsSinceEntry)-PriceScale*40,1); ExitLong("bp",AtLimit,EntryPrice+PriceScale*400); if MaxEntries == 2 Then ExitLong("bl",AtStop,EntryPrice); } if MarketPosition == -1 Then { if MaxEntries == 1 and lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*200 Then Sell("ss",AtLimit,lowest(L,BarsSinceEntry)+PriceScale*40,1); ExitShort("sp",AtLimit,EntryPrice-PriceScale*400); if MaxEntries == 2 Then ExitShort("sl",AtStop,EntryPrice); } 즐거운 하루되세요 > 유인력11 님이 쓴 글입니다. > 제목 : 함수 > 안녕하세요 가령 매수/매도 1개약 진입후 200틱 수익후 -40틱 빠졌을때 1개약 추가 진입되고 최종 2개약이 400틱 수익나면 all 익절청산 최종 2개약이 1개약 첫진입 도달시 all 손절청산 수고하세요