커뮤니티
주문을 10주로 끊을때..
2009-02-10 14:20:47
971
글번호 20137
아래의 표를 돌려서 신호가 발생하게 되면, ""주문을 10주 단위로 입력하시오"" 라고 나옵니다.
거래소 종목일 경우 주문이 10주 단위로 나가게 해야 할것 같습니다.
수식을 작성해 주세요..
새로 추가되는 부분은 밑줄이라든지 색을 달리하든지 해서 표시를 해주세요
수고하십시오.
참고 : 하단의 표는 엉터리 수식입니다.
--------------------------------------------------
var : downlimit(0),set1(false),set2(false);
if date != date[1] Then{
set1 = false;
set2 = false;
}
downlimit =
iff(C >= 500000, int((baseprice * 0.85) / 1000 + 0.999) * 1000,
iff(C >= 100000, int((baseprice * 0.85) / 500+0.999) * 500,
iff(C >= 50000, int((baseprice * 0.85) / 100+0.999) * 100,
iff(C >= 10000, int((baseprice* 0.85) / 50+0.999) * 50,
iff(C >= 5000, int((baseprice * 0.85) / 10+0.999) * 10,
int((baseprice * 0.85) / 5+0.999) * 5))))) ;
if Stime >= 90000 and stime <= 92000 Then{
if c >= dayclose(1)*(1-0.15) and disparity(40) <= 99 Then
buy("b1");
if C > downlimit and C <= dayclose(1)*0.88 and C[50] > dayclose(1)*0.88 and set1 == false Then
buy("b2");
}
if MarketPosition() == 1 and IsEntryName("b1") Then{
exitlong("b1수익",atlimit,EntryPrice()*1.3);
exitlong("b1손절",AtStop,EntryPrice*0.9);
if stime == 123000 Then
exitlong();
}
if MarketPosition() == 1 and IsEntryName("b2") Then{
if marketPosition()[1] == 0 Then{
var1 = CurrentContracts();
var2 = Int(var1*0.3);
var3 = int(var2*0.5);
var4 = var1-var2-var3;
}
if CurrentContracts == var1 Then
exitlong("b2수익1",atlimit,EntryPrice()*10.5,"",var2,1);
if CurrentContracts == var1-var2 Then
exitlong("b2수익2",atlimit,EntryPrice()*1.8,"",var3,1);
if CurrentContracts == var1-var2-var3 Then
exitlong("b2수익3",atlimit,EntryPrice()*1.1,"",var4,1);
if C <= downlimit and bids >= 40000 Then{
exitlong("하한가청산1");
set1 = True;
}
if stime == 123000 Then
exitlong();
}
if Stime >= 92100 and stime <= 120000 Then{
if c >= dayclose(1)*0.879 and disparity(20) <= 110 Then
buy("b3");
if c >= dayclose(1)*0.879 and disparity(20) <= 150 Then
buy("b4");
if C > downlimit and C <= dayclose(1)*0.88 and C[1000] > dayclose(1)*0.88 and set2 == false Then
buy("b5");
}
if MarketPosition() == 1 and IsEntryName("b5") Then{
if marketPosition()[1] == 0 Then{
var1 = CurrentContracts();
var2 = Int(var1*0.3);
var3 = int(var2*0.5);
var4 = var1-var2-var3;
}
if CurrentContracts == var1 Then
exitlong("b5수익1",atlimit,EntryPrice()*10.5,"",var2,1);
if CurrentContracts == var1-var2 Then
exitlong("b5수익2",atlimit,EntryPrice()*1000.08,"",var3,1);
if CurrentContracts == var1-var2-var3 Then
exitlong("b5수익3",atlimit,EntryPrice()*1000.11,"",var4,1);
if C <= downlimit and bids >= 40000 Then{
exitlong("하한가청산2");
set2 = True;
}
if stime == 123000 Then
exitlong();
}
if MarketPosition() == 1 and IsEntryName("b3") Then{
exitlong("b3수익",atlimit,EntryPrice()*1.015);
exitlong("b3손절",AtStop,EntryPrice*0.985);
if stime == 123000 Then
exitlong();
}
if MarketPosition() == 1 and IsEntryName("b4") Then{
exitlong("b4수익",atlimit,EntryPrice()*1.03);
exitlong("b4손절",AtStop,EntryPrice*0.985);
if stime == 123000 Then
exitlong();
}
if Stime >= 120100 and stime <= 142000 Then{
if c >= dayclose(1)*0.9 and disparity(20) <= 95 Then
buy("b6");
}
if MarketPosition() == 1 and IsEntryName("b6") Then{
exitlong("b6수익",atlimit,EntryPrice()*1.03);
}
SetStopEndofday(144000);
답변 1
예스스탁 예스스탁 답변
2009-02-10 15:35:19
안녕하세요
예스스탁입니다.
시스템식에 주문수량등을 지정하지 않으셨습니다.
설정창에서 설정하신 식입니다.'
설정창의 수량을 10단위로 입력하시거나
혹은 고정자산 기준진입이시면 첨부된 그림과 같이
금액을 입력하시고 하단에 단위수량을 10으로 입력해 주시면 됩니다.
즐거운 하루되세요
> 님의침묵 님이 쓴 글입니다.
> 제목 : 주문을 10주로 끊을때..
> 아래의 표를 돌려서 신호가 발생하게 되면, ""주문을 10주 단위로 입력하시오"" 라고 나옵니다.
거래소 종목일 경우 주문이 10주 단위로 나가게 해야 할것 같습니다.
수식을 작성해 주세요..
새로 추가되는 부분은 밑줄이라든지 색을 달리하든지 해서 표시를 해주세요
수고하십시오.
참고 : 하단의 표는 엉터리 수식입니다.
--------------------------------------------------
var : downlimit(0),set1(false),set2(false);
if date != date[1] Then{
set1 = false;
set2 = false;
}
downlimit =
iff(C >= 500000, int((baseprice * 0.85) / 1000 + 0.999) * 1000,
iff(C >= 100000, int((baseprice * 0.85) / 500+0.999) * 500,
iff(C >= 50000, int((baseprice * 0.85) / 100+0.999) * 100,
iff(C >= 10000, int((baseprice* 0.85) / 50+0.999) * 50,
iff(C >= 5000, int((baseprice * 0.85) / 10+0.999) * 10,
int((baseprice * 0.85) / 5+0.999) * 5))))) ;
if Stime >= 90000 and stime <= 92000 Then{
if c >= dayclose(1)*(1-0.15) and disparity(40) <= 99 Then
buy("b1");
if C > downlimit and C <= dayclose(1)*0.88 and C[50] > dayclose(1)*0.88 and set1 == false Then
buy("b2");
}
if MarketPosition() == 1 and IsEntryName("b1") Then{
exitlong("b1수익",atlimit,EntryPrice()*1.3);
exitlong("b1손절",AtStop,EntryPrice*0.9);
if stime == 123000 Then
exitlong();
}
if MarketPosition() == 1 and IsEntryName("b2") Then{
if marketPosition()[1] == 0 Then{
var1 = CurrentContracts();
var2 = Int(var1*0.3);
var3 = int(var2*0.5);
var4 = var1-var2-var3;
}
if CurrentContracts == var1 Then
exitlong("b2수익1",atlimit,EntryPrice()*10.5,"",var2,1);
if CurrentContracts == var1-var2 Then
exitlong("b2수익2",atlimit,EntryPrice()*1.8,"",var3,1);
if CurrentContracts == var1-var2-var3 Then
exitlong("b2수익3",atlimit,EntryPrice()*1.1,"",var4,1);
if C <= downlimit and bids >= 40000 Then{
exitlong("하한가청산1");
set1 = True;
}
if stime == 123000 Then
exitlong();
}
if Stime >= 92100 and stime <= 120000 Then{
if c >= dayclose(1)*0.879 and disparity(20) <= 110 Then
buy("b3");
if c >= dayclose(1)*0.879 and disparity(20) <= 150 Then
buy("b4");
if C > downlimit and C <= dayclose(1)*0.88 and C[1000] > dayclose(1)*0.88 and set2 == false Then
buy("b5");
}
if MarketPosition() == 1 and IsEntryName("b5") Then{
if marketPosition()[1] == 0 Then{
var1 = CurrentContracts();
var2 = Int(var1*0.3);
var3 = int(var2*0.5);
var4 = var1-var2-var3;
}
if CurrentContracts == var1 Then
exitlong("b5수익1",atlimit,EntryPrice()*10.5,"",var2,1);
if CurrentContracts == var1-var2 Then
exitlong("b5수익2",atlimit,EntryPrice()*1000.08,"",var3,1);
if CurrentContracts == var1-var2-var3 Then
exitlong("b5수익3",atlimit,EntryPrice()*1000.11,"",var4,1);
if C <= downlimit and bids >= 40000 Then{
exitlong("하한가청산2");
set2 = True;
}
if stime == 123000 Then
exitlong();
}
if MarketPosition() == 1 and IsEntryName("b3") Then{
exitlong("b3수익",atlimit,EntryPrice()*1.015);
exitlong("b3손절",AtStop,EntryPrice*0.985);
if stime == 123000 Then
exitlong();
}
if MarketPosition() == 1 and IsEntryName("b4") Then{
exitlong("b4수익",atlimit,EntryPrice()*1.03);
exitlong("b4손절",AtStop,EntryPrice*0.985);
if stime == 123000 Then
exitlong();
}
if Stime >= 120100 and stime <= 142000 Then{
if c >= dayclose(1)*0.9 and disparity(20) <= 95 Then
buy("b6");
}
if MarketPosition() == 1 and IsEntryName("b6") Then{
exitlong("b6수익",atlimit,EntryPrice()*1.03);
}
SetStopEndofday(144000);
다음글
이전글