커뮤니티
문의 드립니다.
2015-08-18 21:11:57
164
글번호 89627
아래의 수식에
분할매수 2차 : value4 = (((BB-AA)/5)*2)+AA;
손절 : value5 = AA;
내용을 추가하고자 합니다 감사합니다.
------아래----
input : N(1);
var : AA(0),BB(0),CC(0);
var : TF(0),VV(0),VH(0),VH1(0);
var : cnt(0),count(0);
count = 0;
for cnt = 0 to 20{
if sdate ==EntryDate(cnt) Then
count = count+1;
}
AA = (highest(H,1500)+lowest(L,1500))/2;
BB = Highest(H,900);
var1 = NthHighestBar(1,H,900);
CC = lowest(L,var1);
value1 = (((BB-AA)/5)*3)+AA;
value2 = (((BB-AA)/5)*1.5)+CC;
TF = dayindex%15;
if date != date[1] then{
VV = 0;
VH = 0;
VH1 = VH[1];
}
if (TF < TF[1] and date == date[1]) Then
VV = 0;
VV = VV +V;
if VV > VH Then
VH = VV;
if stime < 91500 Then
value3 = VH;
if (stime >= 091500 and value3 <= VH1/2) or (stime >= 123000 and value3 > VH/2) then{
if CrossDown(c,value1) and count < N Then
buy();
if crossup(c,value2) Then
ExitLong();
}
답변 1
예스스탁 예스스탁 답변
2015-08-19 10:14:54
안녕하세요
예스스탁입니다.
input : N(1);
var : AA(0),BB(0),CC(0);
var : TF(0),VV(0),VH(0),VH1(0);
var : cnt(0),count(0);
count = 0;
for cnt = 0 to 20{
if sdate ==EntryDate(cnt) Then
count = count+1;
}
AA = (highest(H,1500)+lowest(L,1500))/2;
BB = Highest(H,900);
var1 = NthHighestBar(1,H,900);
CC = lowest(L,var1);
value1 = (((BB-AA)/5)*3)+AA;
value2 = (((BB-AA)/5)*1.5)+CC;
TF = dayindex%15;
if date != date[1] then{
VV = 0;
VH = 0;
VH1 = VH[1];
}
if (TF < TF[1] and date == date[1]) Then
VV = 0;
VV = VV +V;
if VV > VH Then
VH = VV;
if stime < 91500 Then
value3 = VH;
value4 = (((BB-AA)/5)*2)+AA;
if (stime >= 091500 and value3 <= VH1/2) or (stime >= 123000 and value3 > VH/2) then{
if MarketPosition == 0 and CrossDown(c,value1) and count < N Then
buy("b1");
if MarketPosition == 1 and MaxEntries == 1 Then
buy("b2",atlimit,value4);
if crossup(c,value2) Then
ExitLong();
if CrossDown(c,AA) Then
exitlong();
}
즐거운 하루되세요
> 사과쥬스 님이 쓴 글입니다.
> 제목 : 문의 드립니다.
>
아래의 수식에
분할매수 2차 : value4 = (((BB-AA)/5)*2)+AA;
손절 : value5 = AA;
내용을 추가하고자 합니다 감사합니다.
------아래----
input : N(1);
var : AA(0),BB(0),CC(0);
var : TF(0),VV(0),VH(0),VH1(0);
var : cnt(0),count(0);
count = 0;
for cnt = 0 to 20{
if sdate ==EntryDate(cnt) Then
count = count+1;
}
AA = (highest(H,1500)+lowest(L,1500))/2;
BB = Highest(H,900);
var1 = NthHighestBar(1,H,900);
CC = lowest(L,var1);
value1 = (((BB-AA)/5)*3)+AA;
value2 = (((BB-AA)/5)*1.5)+CC;
TF = dayindex%15;
if date != date[1] then{
VV = 0;
VH = 0;
VH1 = VH[1];
}
if (TF < TF[1] and date == date[1]) Then
VV = 0;
VV = VV +V;
if VV > VH Then
VH = VV;
if stime < 91500 Then
value3 = VH;
if (stime >= 091500 and value3 <= VH1/2) or (stime >= 123000 and value3 > VH/2) then{
if CrossDown(c,value1) and count < N Then
buy();
if crossup(c,value2) Then
ExitLong();
}