커뮤니티

문의

프로필 이미지
목마와숙녀
2025-12-10 13:56:15
77
글번호 228830
답변완료

아래는  kospi200선물 5분봉 데이트레이딩 엑시트 수식입니다.

진입수식에 일률적으로 사용하고 있습니다.

진입수식은 하루 1번 거래입니다.


요청내용


1. 상승갭과 하락갭 발생을 반영하여 exit 6가지 적용


- 상승갭이 발생했을 때 갭크기에 따라 3가지

최소 0에서 최대 2.5 사이

최소 2.5에서 최대 5 사이

최소 5에서 최대 20 사이


- 하락갭이 발생했을 때 갭크기에 따라 3가지

최소 0에서 최대 2.5 사이

최소 2.5에서 최대 5 사이

최소 5에서 최대 20 사이


input : gup대3(20),gup소3(5),gupls3(5),guptr3(10);

input : gup대2(5),gup소2(2.5),gupls2(2.5),guptr2(5);

input : gup대1(2.5),gup소1(0),gupls1(1.25),guptr1(2.5);

input : gdn대3(20),gdn소3(5),gdnls3(5),gdntr3(10);

input : gdn대2(5),gdn소2(2.5),gdnls2(2.5),gdntr2(5);

input : gdn대1(2.5),gdn소1(0),gdnls1(1.25),gdntr1(2.5);


위 exit 조건을 수식에 반영바랍니다.

항상 고맙습니다.


*****************************************************************************************************************************************


input : ls(2.50),tr(5.00);

var : T1(0),entry(0);


var : T1(0),entry(0);

if Bdate != Bdate[1] Then

T1 = TotalTrades;

if MarketPosition == 0 Then

entry = TotalTrades-T1;

Else

entry = (TotalTrades-T1)+1;


if 진입수식 and entry==0 then  

   buy("b");


SetStopLoss(ls,PointStop);

SetStopTrailing(tr,0,PointStop);


시스템
답변 4
프로필 이미지

예스스탁 예스스탁 답변

2025-12-10 15:14:01

안녕하세요 예스스탁입니다. guptr3와 같은 값은 진입이후최고가에서 하락으로 작성해 드립니다. input : gup대3(20),gup소3(5),gupls3(5),guptr3(10); input : gup대2(5),gup소2(2.5),gupls2(2.5),guptr2(5); input : gup대1(2.5),gup소1(0),gupls1(1.25),guptr1(2.5); input : gdn대3(-20),gdn소3(-5),gdnls3(5),gdntr3(10); input : gdn대2(-5),gdn소2(-2.5),gdnls2(2.5),gdntr2(5); input : gdn대1(-2.5),gdn소1(0),gdnls1(1.25),gdntr1(2.5); var : T1(0),entry(0); var : Gap(0),ls(0),tr(0); if Bdate != Bdate[1] Then T1 = TotalTrades; if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = (TotalTrades-T1)+1; if 진입수식 and entry==0 then buy("b"); Gap = DayOpen-DayClose(1); if gup대3 > Gap and Gap >= gup소3 Then { ls = gupls3; tr = guptr3; } if gup대2 > Gap and Gap >= gup소2 Then { ls = gupls2; tr = guptr2; } if gup대1 > Gap and Gap >= gup소1 Then { ls = gupls1; tr = guptr1; } if gdn대1 <= Gap and Gap < gdn소1 Then { ls = gdnls1; tr = gdntr1; } if gdn대2 <= Gap and Gap < gdn소2 Then { ls = gdnls2; tr = gdntr2; } if gdn대3 <= Gap and Gap < gdn소3 Then { ls = gdnls3; tr = gdntr3; } if MarketPosition == 1 Then { ExitLong("ls",AtStop,EntryPrice-ls); ExitLong("tr",AtStop,highest(H,BarsSinceEntry)-tr); } SetStopLoss(ls,PointStop); SetStopTrailing(tr,0,PointStop); 즐거운 하루되세요
프로필 이미지

목마와숙녀

2025-12-10 16:10:04

SetStopLoss(ls,PointStop); SetStopTrailing(tr,0,PointStop);

이러한 강제청산식만을 적용해서 해주셨으면 좋겠습니다.
프로필 이미지

목마와숙녀

2025-12-10 16:13:26

식이 다소 길어지더라도
일반청산함수는 사용하지 않고 강제청산식만을 적용해서 해주셨으면 좋겠습니다.
프로필 이미지

예스스탁 예스스탁 답변

2025-12-10 16:48:20

안녕하세요 예스스탁입니다. input : gup대3(20),gup소3(5),gupls3(5),guptr3(10); input : gup대2(5),gup소2(2.5),gupls2(2.5),guptr2(5); input : gup대1(2.5),gup소1(0),gupls1(1.25),guptr1(2.5); input : gdn대3(-20),gdn소3(-5),gdnls3(5),gdntr3(10); input : gdn대2(-5),gdn소2(-2.5),gdnls2(2.5),gdntr2(5); input : gdn대1(-2.5),gdn소1(0),gdnls1(1.25),gdntr1(2.5); var : T1(0),entry(0); var : Gap(0),ls(0),tr(0); if Bdate != Bdate[1] Then T1 = TotalTrades; if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = (TotalTrades-T1)+1; if 진입수식 and entry==0 then buy("b"); if Bdate != Bdate[1] Then { Gap = DayOpen-DayClose(1); if gup대3 > Gap and Gap >= gup소3 Then { ls = gupls3; tr = guptr3; } if gup대2 > Gap and Gap >= gup소2 Then { ls = gupls2; tr = guptr2; } if gup대1 > Gap and Gap >= gup소1 Then { ls = gupls1; tr = guptr1; } if gdn대1 <= Gap and Gap < gdn소1 Then { ls = gdnls1; tr = gdntr1; } if gdn대2 <= Gap and Gap < gdn소2 Then { ls = gdnls2; tr = gdntr2; } if gdn대3 <= Gap and Gap < gdn소3 Then { ls = gdnls3; tr = gdntr3; } SetStopLoss(ls,PointStop); SetStopTrailing(tr,0,PointStop); } 즐거운 하루되세요