예스스탁
예스스탁 답변
2022-06-10 11:28:21
안녕하세요
예스스탁입니다.
1
input : StartTime(70000),EndTime(055000);
input : N(100),익절틱수(50),손절틱수(20);
var : Tcond(false);
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
{
var1 = O;
Tcond = true;
SetStopEndofday(0);
}
if Tcond == true Then
{
if MarketPosition <= 0 and L >= DayOpen-N*PriceScale Then
Buy("b",AtLimit,DayOpen-N*PriceScale);
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
2
input : StartTime(70000),EndTime(055000);
input : N(120),익절틱수(55),손절틱수(20);
var : Tcond(false);
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
{
var1 = O;
Tcond = true;
SetStopEndofday(0);
}
if Tcond == true Then
{
if MarketPosition <= 0 and L >= DayOpen-N*PriceScale Then
Sell("s",AtLimit,DayOpen+N*PriceScale);
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
3
input : n(4),손절틱수(20);
var : cnt(0),hh(0),ll(0);
hh = 0;
ll = 0;
For cnt = 0 to n-1
{
if hh == 0 or (hh > 0 and DayHigh(cnt) > hh) Then
hh = DayHigh(cnt);
if ll == 0 or (ll > 0 and DayLow(cnt) < ll) Then
ll = DayLow(cnt);
}
Sell("s",AtLimit,hh-(hh-ll)*0.118);
ExitShort("sx",AtLimit,hh-(hh-ll)*0.618);
SetStopLoss(PriceScale*손절틱수,PointStop);
4
input : n(1),손절틱수(20);
var : cnt(0),hh(0),ll(0);
hh = 0;
ll = 0;
For cnt = 0 to n-1
{
if hh == 0 or (hh > 0 and DayHigh(cnt) > hh) Then
hh = DayHigh(cnt);
if ll == 0 or (ll > 0 and DayLow(cnt) < ll) Then
ll = DayLow(cnt);
}
Sell("s",AtLimit,hh-(hh-ll)*0.382);
ExitShort("sx",AtLimit,hh-(hh-ll)*1.382);
SetStopLoss(PriceScale*손절틱수,PointStop);
5
input : n(1),손절틱수(20);
var : cnt(0),hh(0),ll(0);
hh = 0;
ll = 0;
For cnt = 0 to n-1
{
if hh == 0 or (hh > 0 and DayHigh(cnt) > hh) Then
hh = DayHigh(cnt);
if ll == 0 or (ll > 0 and DayLow(cnt) < ll) Then
ll = DayLow(cnt);
}
Buy("b",AtLimit,hh-(hh-ll)*1.10);
ExitLong("sx",AtLimit,hh-(hh-ll)*0.382);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 푸른 님이 쓴 글입니다.
> 제목 : 수식어 부탁드립니다
> input : StartTime(70000),EndTime(055000);
input : N(20);
var : Tcond(false);
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
{
var1 = O;
Tcond = true;
SetStopEndofday(0);
}
if Tcond == true Then
{
if MarketPosition <= 0 and L >= DayOpen-N*PriceScale Then
Buy("b",AtLimit,DayOpen-N*PriceScale);
if MarketPosition <= 0 and L >= DayOpen-N*PriceScale Then
Sell("s",AtLimit,DayOpen+N*PriceScale);
}
SetStopProfittarget(PriceScale*N,PointStop);
SetStopLoss(PriceScale*N,PointStop);
-------------------
위 수식어는
당일 07:00시부터 익일 05:50 사이
N틱 하락시 매수후 N틱에 청산
N틱 상승시 매도후 N틱에 청산의 수식어입니다.
아래와같이 2가지수식으로 각각 부탁 드립니다.
1.
당일 07:00시부터 익일 05:50 사이
-100틱 하락시 매수후 +50틱에 청산
손절 -20틱
2.
당일 07:00시부터 익일 05:50 사이
+120틱 상승시 매도후 -55틱에 청산
손절 -20틱
-----------------------
1번 그래프로 작성할 수식어 내용입니다.
일봉매매에서
일봉 4일동안 피보나치 수열의 11.80%에 매도후 61.80%
청산하는 수식어
손절 -20틱
-----------------------
2번 그래프로 작성할 수식어 내용입니다.
일봉매매에서
전일 피보나치 수열의 38.20%에 매도후 138.20%
청산하는 수식어
손절 -20틱
-------------------------
3번 그래프로 작성할 수식어 내용입니다.
일봉매매에서
전일 피보나치 수열의 110.00%에 매수후 38.20%
청산하는 수식어
손절 -20틱
미리 감사 드립니다.