커뮤니티
수정 부탁합니다.
2014-12-21 20:58:34
108
글번호 81526
*아래식의 매수(진입)을 수정해 주십시요.
<090000시~093000시>
-주가는 +10%이상 상승 없이, 피봇기준선 +2틱 이하로 하락시, 이후 첫봉에 진입
<093001시~100000시>
-주가는 +5%이상 상승 없이, 피봇기준선 +2틱 이하로 하락시, 이후 첫봉에 진입
<공통 : 진입, 청산은 하루 1회씩으로 제한>
=========================================================
Var : Pivot(0),R1(0),R2(0),S1(0),S2(0);
var : vol1(0),vol2(0),vol3(0);
Pivot = (DayHigh(1)+DayLow(1)+DayClose(1))/3;
R1 = 2*Pivot-DayLow(1);
R2 = Pivot+DayHigh(1)-DayLow(1);
S1 = 2*Pivot-DayHigh(1);
S2 = Pivot-DayHigh(1)+DayLow(1);
if stime >= 090000 and stime < 094000 and MarketPosition == 0 and ExitDate(1) != sdate Then{
if CrossDown(c,Pivot+PriceScale*2) and C < DayClose(1)*1.05 Then
buy();
}
if MarketPosition == 1 then{
if CodeCategoryEx == 11 and BasePrice < 50000 Then{
vol1 = int(int(CurrentContracts*0.20)/10)*10;
vol2 = int(int(CurrentContracts*0.25)/10)*10;
vol3 = int(int(CurrentContracts*0.50)/10)*10;
}
Else{
vol1 = int(CurrentContracts*0.20);
vol2 = int(CurrentContracts*0.25);
vol3 = int(CurrentContracts*0.50);
}
ExitLong("bx1",atlimit,EntryPrice*1.050,"",vol1,1);
ExitLong("bx2",atlimit,EntryPrice*1.065,"",vol2,1);
ExitLong("bx3",atlimit,EntryPrice*1.075,"",vol3,1);
ExitLong("bx4",atlimit,EntryPrice*1.085);
if highest(H,BarsSinceEntry) >= EntryPrice*1.050 Then
exitlong("bx",AtStop,EntryPrice*1.010);
}
SetStopLoss(4.5,PercentStop);
답변 1
예스스탁 예스스탁 답변
2014-12-22 10:50:25
안녕하세요
예스스탁입니다.
Var : Pivot(0),R1(0),R2(0),S1(0),S2(0);
var : vol1(0),vol2(0),vol3(0);
Pivot = (DayHigh(1)+DayLow(1)+DayClose(1))/3;
R1 = 2*Pivot-DayLow(1);
R2 = Pivot+DayHigh(1)-DayLow(1);
S1 = 2*Pivot-DayHigh(1);
S2 = Pivot-DayHigh(1)+DayLow(1);
if stime >= 090000 and stime < 093000 and
MarketPosition == 0 and
ExitDate(1) != sdate and
CrossDown(c,Pivot+PriceScale*2) and
C < DayClose(1)*1.10 Then
buy();
if stime >= 093000 and stime < 100000 and
MarketPosition == 0 and
ExitDate(1) != sdate and
CrossDown(c,Pivot+PriceScale*2) and
C < DayClose(1)*1.05 Then
buy();
if MarketPosition == 1 then{
if CodeCategoryEx == 11 and BasePrice < 50000 Then{
vol1 = int(int(CurrentContracts*0.20)/10)*10;
vol2 = int(int(CurrentContracts*0.25)/10)*10;
vol3 = int(int(CurrentContracts*0.50)/10)*10;
}
Else{
vol1 = int(CurrentContracts*0.20);
vol2 = int(CurrentContracts*0.25);
vol3 = int(CurrentContracts*0.50);
}
ExitLong("bx1",atlimit,EntryPrice*1.050,"",vol1,1);
ExitLong("bx2",atlimit,EntryPrice*1.065,"",vol2,1);
ExitLong("bx3",atlimit,EntryPrice*1.075,"",vol3,1);
ExitLong("bx4",atlimit,EntryPrice*1.085);
if highest(H,BarsSinceEntry) >= EntryPrice*1.050 Then
exitlong("bx",AtStop,EntryPrice*1.010);
}
SetStopLoss(4.5,PercentStop);
즐거운 하루되세요
> 쌀사비팔 님이 쓴 글입니다.
> 제목 : 수정 부탁합니다.
> *아래식의 매수(진입)을 수정해 주십시요.
<090000시~093000시>
-주가는 +10%이상 상승 없이, 피봇기준선 +2틱 이하로 하락시, 이후 첫봉에 진입
<093001시~100000시>
-주가는 +5%이상 상승 없이, 피봇기준선 +2틱 이하로 하락시, 이후 첫봉에 진입
<공통 : 진입, 청산은 하루 1회씩으로 제한>
=========================================================
Var : Pivot(0),R1(0),R2(0),S1(0),S2(0);
var : vol1(0),vol2(0),vol3(0);
Pivot = (DayHigh(1)+DayLow(1)+DayClose(1))/3;
R1 = 2*Pivot-DayLow(1);
R2 = Pivot+DayHigh(1)-DayLow(1);
S1 = 2*Pivot-DayHigh(1);
S2 = Pivot-DayHigh(1)+DayLow(1);
if stime >= 090000 and stime < 094000 and MarketPosition == 0 and ExitDate(1) != sdate Then{
if CrossDown(c,Pivot+PriceScale*2) and C < DayClose(1)*1.05 Then
buy();
}
if MarketPosition == 1 then{
if CodeCategoryEx == 11 and BasePrice < 50000 Then{
vol1 = int(int(CurrentContracts*0.20)/10)*10;
vol2 = int(int(CurrentContracts*0.25)/10)*10;
vol3 = int(int(CurrentContracts*0.50)/10)*10;
}
Else{
vol1 = int(CurrentContracts*0.20);
vol2 = int(CurrentContracts*0.25);
vol3 = int(CurrentContracts*0.50);
}
ExitLong("bx1",atlimit,EntryPrice*1.050,"",vol1,1);
ExitLong("bx2",atlimit,EntryPrice*1.065,"",vol2,1);
ExitLong("bx3",atlimit,EntryPrice*1.075,"",vol3,1);
ExitLong("bx4",atlimit,EntryPrice*1.085);
if highest(H,BarsSinceEntry) >= EntryPrice*1.050 Then
exitlong("bx",AtStop,EntryPrice*1.010);
}
SetStopLoss(4.5,PercentStop);