예스스탁
예스스탁 답변
2023-09-14 11:14:12
안녕하세요
예스스탁입니다.
1
input : StartTime(203000),EndTime(53000);
input : 익절틱수(00),손절틱수(40);
var : Tcond(False),entry(0);
Variables: Mom(0);
Var : N1(0),dayPl(0),당일수익(0),당일손실(0),Xcond(false);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
{
Tcond = False;
}
if Tcond == true Then
{
if L == lowest(L,3) and highest(H,3) >= lowest(L,3)+PriceScale*30 Then
{
Buy("b",AtStop,(highest(H,3)+lowest(L,3))/3);
}
if MarketPosition == 1 and BarsSinceEntry == 1 Then
ExitLong();
if H == Highest(H,3) and highest(H,3) >= lowest(L,3)+PriceScale*30 Then
{
Sell("s",AtStop,(highest(H,3)+lowest(L,3))/3);
}
if MarketPosition == -1 and BarsSinceEntry == 1 Then
ExitShort();
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
2
input : StartTime(203000),EndTime(53000);
input : 익절틱수(00),손절틱수(40);
var : Tcond(False),entry(0);
Variables: Mom(0);
Var : N1(0),dayPl(0),당일수익(0),당일손실(0),Xcond(false);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
{
Tcond = False;
}
Variables: UpTail(0),DnTail(0),Body(0),Height(0);
UpTail = H-Max(C,O);
DnTail = Min(C,O)-L;
Body = Abs(C-O);
Height = H-L;
if Tcond == true Then
{
if C < Ma(C,10) and DnTail < Height*0.1 and
UpTail > Body*2 and
Height > Ma(Height,10) and
C != O Then
{
Sell("s",AtMarket);
}
if MarketPosition == -1 and BarsSinceEntry == 3 Then
ExitShort();
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 푸른 님이 쓴 글입니다.
> 제목 : 문의 드립니다
>
input : StartTime(203000),EndTime(53000);
input : 익절틱수(00),손절틱수(40);
var : Tcond(False),entry(0);
Variables: Mom(0);
Var : N1(0),dayPl(0),당일수익(0),당일손실(0),Xcond(false);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
{
Tcond = False;
}
if Tcond == true Then
{
if L ==lowest(L,3) and highest(H,3) >= lowest(L,3)+PriceScale*30 Then
{
Buy("b",AtStop,(highest(H,3)+lowest(L,3))/3);
}
if MarketPosition == 1 and BarsSinceEntry == 1 Then
ExitLong();
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
매도 청산의 수식어로 변경을 부탁드립니다.
--------------------------------------
역망치캔들 다음 매도진입후 3캔들에 청산의 수식어를 부탁 드립니다.