예스스탁
예스스탁 답변
2021-10-20 15:54:19
안녕하세요
예스스탁입니다.
input : 금액(10000000);
var : idx(0),count(0);
if Bdate != Bdate[1] Then
{
idx = 0;
count = 0;
}
idx = idx+1;
if C > DayOpen Then
{
count = count+1;
if MarketPosition == 0 and count == 1 and idx > 3 Then
Buy("b",OnClose,DEF,Floor(금액/C));
}
if MarketPosition == 1 Then
{
ExitLong("bx1",AtLimit,EntryPrice*1.03,"",Floor(MaxContracts*0.2),1);
ExitLong("bx2",AtLimit,EntryPrice*1.05,"",Floor(MaxContracts*0.2),1);
ExitLong("bx3",AtLimit,EntryPrice*1.07,"",Floor(MaxContracts*0.2),1);
ExitLong("bx4",AtLimit,EntryPrice*1.09,"",Floor(MaxContracts*0.2),1);
ExitLong("bx5",AtLimit,EntryPrice*1.12);
if C < DayOpen Then
ExitLong("bx");
}
즐거운 하루되세요
> 바나 님이 쓴 글입니다.
> 제목 : 시가돌파매매
> 장 시작시 3개봉 이상 진행(시가보다 떨어졌다가 오르는 경우에 한함)된뒤
시가돌파시 매수하되, 이전에 이미 돌파했을시엔 매수금지.
3%, 5%, 7%, 9%, 12% 동일수량 분할매도, 12%에서는 올매도
매수후 시가보다 아래로 내려갈땐 손절
수식 부탁드립니다.
예스스탁
예스스탁 답변
2021-10-21 09:10:01
안녕하세요
예스스탁입니다.
input : 금액(10000000);
var : idx(0),entry(0);
if Bdate != Bdate[1] Then
{
idx = 0;
entry = 0;
}
idx = idx+1;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if MarketPosition == 0 Then
{
if (Bdate != Bdate[1] and C > DayOpen) or (Bdate == Bdate[1] and CrossUp(c,DayOpen)) Then
{
if entry < 2 and idx > 3 Then
Buy("b",OnClose,DEF,Floor(금액/C));
}
}
if MarketPosition == 1 Then
{
ExitLong("bx1",AtLimit,EntryPrice*1.03,"",Floor(MaxContracts*0.2),1);
ExitLong("bx2",AtLimit,EntryPrice*1.05,"",Floor(MaxContracts*0.2),1);
ExitLong("bx3",AtLimit,EntryPrice*1.07,"",Floor(MaxContracts*0.2),1);
ExitLong("bx4",AtLimit,EntryPrice*1.09,"",Floor(MaxContracts*0.2),1);
ExitLong("bx5",AtLimit,EntryPrice*1.12);
if C < DayOpen Then
ExitLong("bx");
}
즐거운 하루되세요
> 바나 님이 쓴 글입니다.
> 제목 : Re : Re : 시가돌파매매
> 첫 익절이나 손절후 당일내에 재진입 한번더 할수 있도록 수정부탁 드립니다.
떨어졌다가 시초가 이상으로 다시 오를때 재진입입니다.
감사합니다.