해외선물 매매입니다.
1. 매매시간 08:00~ 익일06:00 익절 200틱 손절 50틱 진입청산 1회
1캔들이 150분봉인 경우의수에서 완성된 캔들 저점이 내려가는
(저점이 동일한건 포함 안됨) 6캔들후 매수
캔들 고점이 올라가는 (고점이 동일한건 포함안됨) 6캔들에 청산
2. 매매시간 08:00~ 익일06:00 익절 200틱 손절 50틱 진입청산 1회
1캔들이 150분봉인 경우의수에서 완성된 캔들 고점이 올라가는
(고점이 동일한건 포함 안됨) 6캔들후 매도
-----------------------
var1 = c-o;
Var2 = AccumN(var1,21);
input : starttime(180000),endtime(63000),n(0);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= endtime) or
(sdate == sdate[1] and stime >= endtime and stime[1] < endtime) then
{
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
if Var2 < 0 Then
Buy();
if var2 > 0 Then
Sell();
위 수식어는 1캔들이 150분봉 인데요.
2캔들 손실에 자동청산후 매매정지및 익절 200틱 손절 100틱를 포함 하고자 합니다.
답변 1
예스스탁
예스스탁 답변
2022-11-24 10:33:13
안녕하세요
예스스탁입니다.
1
input : StartTime(80000),EndTime(60000);
input : 익절틱수(200),손절틱수(50);
var : Tcond(false),count1(0),entry(0);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
count1 = 0;
entry = 0;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if Tcond == true Then
{
if L < L[1] Then
{
count1 = count1+1;
if count1 == 6 and entry < 1 Then
Buy();
}
if MarketPosition == 1 and CountIf(H>H[1],BarsSinceEntry) == 6 Then
ExitLong();
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
2
input : StartTime(80000),EndTime(60000);
input : 익절틱수(200),손절틱수(50);
var : Tcond(false),count1(0),entry(0);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
count1 = 0;
entry = 0;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if Tcond == true Then
{
if H > H[1] Then
{
count1 = count1+1;
if count1 == 6 and entry < 1 Then
Sell();
}
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
3
var1 = c-o;
Var2 = AccumN(var1,21);
input : starttime(180000),endtime(63000),n(0);
input : 익절틱수(200),손절틱수(100);
var : entry(0);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= endtime) or
(sdate == sdate[1] and stime >= endtime and stime[1] < endtime) then
{
entry = 0;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if Var2 < 0 and entry < 1 Then
Buy();
if var2 > 0 and entry < 1 Then
Sell();
if MarketPosition == 1 and BarsSinceEntry == 1 and c < EntryPrice Then
ExitLong();
if MarketPosition == -1 and BarsSinceEntry == 1 and c > EntryPrice Then
ExitShort();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 푸른 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> 해외선물 매매입니다.
1. 매매시간 08:00~ 익일06:00 익절 200틱 손절 50틱 진입청산 1회
1캔들이 150분봉인 경우의수에서 완성된 캔들 저점이 내려가는
(저점이 동일한건 포함 안됨) 6캔들후 매수
캔들 고점이 올라가는 (고점이 동일한건 포함안됨) 6캔들에 청산
2. 매매시간 08:00~ 익일06:00 익절 200틱 손절 50틱 진입청산 1회
1캔들이 150분봉인 경우의수에서 완성된 캔들 고점이 올라가는
(고점이 동일한건 포함 안됨) 6캔들후 매도
-----------------------
var1 = c-o;
Var2 = AccumN(var1,21);
input : starttime(180000),endtime(63000),n(0);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= endtime) or
(sdate == sdate[1] and stime >= endtime and stime[1] < endtime) then
{
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
if Var2 < 0 Then
Buy();
if var2 > 0 Then
Sell();
위 수식어는 1캔들이 150분봉 인데요.
2캔들 손실에 자동청산후 매매정지및 익절 200틱 손절 100틱를 포함 하고자 합니다.