예스스탁
예스스탁 답변
2022-06-27 13:46:13
안녕하세요
예스스탁입니다.
1
input : 익절틱수(120),손절틱수(20);
var1 = ma(C,1);
Var2 = ma(C,5);
if NextBarSdate != sDate and var1 < Var2 Then
{
if NextBarOpen > C Then
Sell("s",AtStop,NextBarOpen+PriceScale*-18);
if NextBarOpen < C Then
Sell("sx",AtStop,NextBarOpen-PriceScale*-18);
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
2
input : 익절틱수(120),손절틱수(20);
var1 = ma(C,1);
Var2 = ma(C,5);
if NextBarSdate != sDate and var1 > Var2 Then
{
if NextBarOpen > C Then
Buy("b",AtStop,NextBarOpen+PriceScale*-18);
if NextBarOpen < C Then
Buy("bx",AtStop,NextBarOpen-PriceScale*-18);
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
3
input : 익절틱수(100),손절틱수(15);
var : DD(0),Year(0),V1(0),V2(0),V3(0),V4(0),summer(False);
var : ST(0),ET(0),entry(0);
if NextBarSdate != sDate Then
{
DD = DayOfWeek(NextBarSdate);
Year = Floor(NextBarSdate/10000);
V1 = (10000 * Year) + (100 * 3) + 1;
V2 = 15 - dayofweek(v1);
v3 = (10000 * Year) + (100 * 11) + 1;
v4 = 8 - dayofweek(v3);
Summer = NextBarSdate > (10000 * Year) + (100 * 3) + v2
And NextBarSdate < (10000 * Year) + (100 * 11) + v4;
if summer == true Then
{
ST = 70000;
ET = 55000;
}
Else
{
ST = 80000;
ET = 65000;
}
}
if Year > 0 Then
{
IF ET > ST Then
SetStopEndofday(ET);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(ET);
}
if Bdate != Bdate[1] Then
{
entry = 0;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if ((NextBarSdate != sDate and NextBarStime >= ST) or
(NextBarSdate == sDate and NextBarStime >= ST and sTime < ST)) Then
{
IF ET <= ST Then
{
SetStopEndofday(0);
}
if NextBarOpen > C Then
{
Buy("b1",AtStop,NextBarOpen+PriceScale*1);
Sell("s1",AtStop,NextBarOpen-PriceScale*1);
}
if NextBarOpen < C Then
{
ExitLong("bx1",AtStop,NextBarOpen-PriceScale*1);
ExitShort("sx1",AtStop,NextBarOpen+PriceScale*1);
}
}
Else
{
if DayHigh < DayOpen+PriceScale*1 and DayOpen > DayClose(1) and entry < 1 Then
Buy("b2",AtStop,DayOpen+PriceScale*1);
if DayLow > DayOpen-PriceScale*1 and DayOpen > DayClose(1) and entry < 1 Then
Sell("s2",AtStop,DayOpen-PriceScale*1);
if DayOpen < DayClose(1) Then
{
if DayLow > DayOpen-PriceScale*1 Then
ExitLong("bx2",AtStop,DayOpen-PriceScale*1);
if DayHigh < DayOpen+PriceScale*1 Then
ExitShort("sx2",AtStop,DayOpen+PriceScale*1);
}
}
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 푸른 님이 쓴 글입니다.
> 제목 : 문의 드립니다.
> input : 익절틱수(120),손절틱수(20);
if NextBarSdate != sDate Then
{
if NextBarOpen > C Then
Sell("s",AtStop,NextBarOpen+PriceScale*-18);
if NextBarOpen < C Then
Sell("sx",AtStop,NextBarOpen-PriceScale*-18);
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
위 수식어는 일봉상 시가가 전일대비 갭상 갭하일때 둘다 Sell 주문 수식어 입니다.
그래프의 사각형 노란색은 일봉의 역배열인 단순 이동평균선 1,5일선 데드후 골든
의 사이 입니다.
위 수식어를 1,5일선 데드후 골든의 사이에서만 진입및 청산이 되게 수정 해 주셨으면
합니다.
-----------------------------------------
input : 익절틱수(140),손절틱수(20);
if NextBarSdate != sDate Then
{
if NextBarOpen > C Then
Buy("b",AtStop,NextBarOpen+PriceScale*-18);
if NextBarOpen < C Then
Buy("bx",AtStop,NextBarOpen-PriceScale*-18);
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
위 수식어는 일봉상 시가가 전일대비 갭상 갭하일때 둘다 Buy 주문 수식어 입니다.
일봉의 정배열인 단순 이동평균선 1,5일선 골든후 데드의 사이에서만 진입및 청산이 되게
수정 해 주셨으면 합니다.
-------------------------------------------------
input : 익절틱수(150),손절틱수(30);
if NextBarSdate != sDate Then
{
if NextBarOpen > C Then
{
Buy("b",AtStop,NextBarOpen+PriceScale*1);
Sell("s",AtStop,NextBarOpen-PriceScale*1);
}
if NextBarOpen < C Then
{
ExitLong("bx",AtStop,NextBarOpen-PriceScale*1);
ExitShort("sx",AtStop,NextBarOpen+PriceScale*1);
}
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
위 일봉매매 수식어를 5분봉으로 하고자 합니다
1. 매매시간은 아침7시부터 익일 아침 5시50분 (24시에 신호가 나오는것은 금지)
으로 하여주시고 썸머타임기간의 수식어도 포함