예스스탁
예스스탁 답변
2020-12-01 17:16:06
안녕하세요
예스스탁입니다.
1
INPUT : LENGTH(10);
VAR : upv(0), dnv(0);
input : StartTime(80000),EndTime(060000);
var : Tcond(false);
if (sdate != sdate[1] and stime >= 210000) or
(sdate == sdate[1] and stime >= 210000 and stime[1] < 210000) Then
{
Tcond = False;
if MarketPosition == 1 Then
ExitLong();
if MarketPosition == -1 Then
ExitLong();
}
if (sdate != sdate[1] and stime >= 170000) or
(sdate == sdate[1] and stime >= 170000 and stime[1] < 170000) Then
{
Tcond = False;
if MarketPosition == 1 Then
ExitLong();
if MarketPosition == -1 Then
ExitLong();
}
if (sdate != sdate[1] and stime >= 144000) or
(sdate == sdate[1] and stime >= 144000 and stime[1] < 144000) Then
{
Tcond = true;
}
if (sdate != sdate[1] and stime >= 181800) or
(sdate == sdate[1] and stime >= 181800 and stime[1] < 181800) Then
{
Tcond = true;
}
upv = HIGHEST(HIGH, LENGTH);
dnv = LOWEST(LOW, LENGTH);
if tcond == true Then
{
if MarketPosition <= 0 and L > dnv Then
Buy("b",AtLimit,dnv);
if MarketPosition == 1 Then
ExitLong("bx",AtStop,upv);
}
2
INPUT : P(20),dv(2);
VAR : upv(0), dnv(0);
input : StartTime(80000),EndTime(060000);
var : Tcond(false);
if (sdate != sdate[1] and stime >= 210000) or
(sdate == sdate[1] and stime >= 210000 and stime[1] < 210000) Then
{
Tcond = False;
if MarketPosition == 1 Then
ExitLong();
if MarketPosition == -1 Then
ExitLong();
}
if (sdate != sdate[1] and stime >= 170000) or
(sdate == sdate[1] and stime >= 170000 and stime[1] < 170000) Then
{
Tcond = False;
if MarketPosition == 1 Then
ExitLong();
if MarketPosition == -1 Then
ExitLong();
}
if (sdate != sdate[1] and stime >= 144000) or
(sdate == sdate[1] and stime >= 144000 and stime[1] < 144000) Then
{
Tcond = true;
}
if (sdate != sdate[1] and stime >= 181800) or
(sdate == sdate[1] and stime >= 181800 and stime[1] < 181800) Then
{
Tcond = true;
}
upv = BollBandUp(P,dv);
dnv = BollBandDown(P,dv);
if tcond == true Then
{
if MarketPosition <= 0 and L > dnv Then
Buy("b",AtLimit,dnv);
if MarketPosition == 1 Then
ExitLong("bx",AtStop,upv);
}
즐거운 하루되세요
> 판사 님이 쓴 글입니다.
> 제목 : 수식 문의드립니다.
> 안녕하세요.
하기 전략1 전략2 에
매수청산 스크립트 추가 부탁합니다.
즉, price channel(불린저밴드) 상단에 현재가 캔들이 터치하거나 돌파시 즉시 청산 (봉 완성후 아님).
그리고 시간 설정도 부탁드립니다.
오후 14시 40분 에 1차 시작하고, 오후 17시에 모든 포지션 청산 및 1차 종료하고,
다시 오후 18시 18분에 시작하여, 저녁 21시에 모든 포지션 청산 및 종료.
1
INPUT : LENGTH(10);
VAR : upv(0), dnv(0);
upv = HIGHEST(HIGH, LENGTH);
dnv = LOWEST(LOW, LENGTH);
if MarketPosition <= 0 and L > dnv Then
Buy("b",AtLimit,dnv);
2
INPUT : P(20),dv(2);
VAR : upv(0), dnv(0);
upv = BollBandUp(P,dv);
dnv = BollBandDown(P,dv);
if MarketPosition <= 0 and L > dnv Then
Buy("b",AtLimit,dnv);
안녕하세요. 아래전략에서 시간 설정 변수 입력 할 수 있도록 부탁드립니다.
1. 시작: 140000
2. 종료: 170000
3. 오후시작: 181000
4. 오후종료: 210000
1
INPUT : LENGTH(10);
VAR : upv(0), dnv(0);
input : StartTime(80000),EndTime(060000);
var : Tcond(false);
if (sdate != sdate[1] and stime >= 210000) or
(sdate == sdate[1] and stime >= 210000 and stime[1] < 210000) Then
{
Tcond = False;
if MarketPosition == 1 Then
ExitLong();
if MarketPosition == -1 Then
ExitLong();
}
if (sdate != sdate[1] and stime >= 170000) or
(sdate == sdate[1] and stime >= 170000 and stime[1] < 170000) Then
{
Tcond = False;
if MarketPosition == 1 Then
ExitLong();
if MarketPosition == -1 Then
ExitLong();
}
if (sdate != sdate[1] and stime >= 144000) or
(sdate == sdate[1] and stime >= 144000 and stime[1] < 144000) Then
{
Tcond = true;
}
if (sdate != sdate[1] and stime >= 181800) or
(sdate == sdate[1] and stime >= 181800 and stime[1] < 181800) Then
{
Tcond = true;
}
upv = HIGHEST(HIGH, LENGTH);
dnv = LOWEST(LOW, LENGTH);
if tcond == true Then
{
if MarketPosition <= 0 and L > dnv Then
Buy("b",AtLimit,dnv);
if MarketPosition == 1 Then
ExitLong("bx",AtStop,upv);
}