안녕하세요
일 진입횟수를 1~10회까지 변경 적용할 수 있도록 수식 부탁드리빈다.
진입 수식은
매수 crossup(C,H[10]) then buy
매도 crossdown(C, L[10]) then sell
이 두가지로 적용해주시면 됩니다.
답변 1
예스스탁
예스스탁 답변
2025-06-20 14:42:55
안녕하세요
예스스탁입니다.
input : 진입횟수(10);
var : tt(0),t1(0),entry(0);
tt = TotalTrades;
if Bdate != Bdate[1] Then
t1 = tt[1];
entry = tt-t1 + IFf(MarketPosition != 0,1,0);
if MarketPosition <= 0 and crossup(C,H[10]) then
{
if entry < 진입횟수 Then
buy();
Else
ExitShort();
}
if MarketPosition >= 0 and crossdown(C, L[10]) then
{
if entry < 진입횟수 Then
Sell();
Else
ExitLong();
}
즐거운 하루되세요
> 소드노 님이 쓴 글입니다.
> 제목 : 진입횟수 조절
> 안녕하세요
일 진입횟수를 1~10회까지 변경 적용할 수 있도록 수식 부탁드리빈다.
진입 수식은
매수 crossup(C,H[10]) then buy
매도 crossdown(C, L[10]) then sell
이 두가지로 적용해주시면 됩니다.