예스스탁
예스스탁 답변
2022-02-23 11:22:15
안녕하세요
예스스탁입니다.
1
가능하지 않습니다.
예스랭귀지에는 호가값은 제공되지 않고
수식안에서 주문가격을 지정하는 부분이 없습니다.
차트에서 신호가 발생하면 설정창의 매매탭에서 지정한 진입/청산가격으로 주문이 집행됩니다.
해당 옵션에서 올리신 내용을 판별해 주문내는 기능이 없습니다.
2
아래식 참고하시기 바랍니다.
상한가를 직접 계산해 사용하셔야 합니다.
상한가 도돌하면 매수하는 내용입니다.
input : 금액(10000000);
var : 상한가(0), UpLimit(0);
var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(0),Up7(0);
if date >= 19981207 then {
if date < 20050328 && CodeCategory() == 2 then
UpLimit = (BP[0] * 1.12);
Else if date >= 20050328 and date < 20150615 Then
UpLimit = (BP[0] * 1.15);
Else
UpLimit = (BP[0] * 1.30);
if CodeCategory() == 2 then
{
if date >= 20030721 then
{
up1 = int(UpLimit/100+0.00001)*100;
up2 = int(UpLimit/100+0.00001)*100;
up3 = int(UpLimit/100+0.00001)*100;
up4 = int(UpLimit/50+0.00001)*50;
up5 = int(UpLimit/10+0.00001)*10;
up6 = int(UpLimit/5+0.00001)*5;
up7 = int(UpLimit/1+0.00001)*1;
}
else
{
up1 = int(UpLimit/1000+0.00001)*1000;
up2 = int(UpLimit/500+0.00001)*500;
up3 = int(UpLimit/100+0.00001)*100;
up4 = int(UpLimit/50+0.00001)*50;
up5 = int(UpLimit/10+0.00001)*10;
up6 = int(UpLimit/10+0.00001)*10;
up7 = int(UpLimit/1+0.00001)*1;
}
}
Else
{
up1 = int(UpLimit/1000+0.00001)*1000;
up2 = int(UpLimit/500+0.00001)*500;
up3 = int(UpLimit/100+0.00001)*100;
up4 = int(UpLimit/50+0.00001)*50;
up5 = int(UpLimit/10+0.00001)*10;
up6 = int(UpLimit/5+0.00001)*5;
up7 = int(UpLimit/1+0.00001)*1;
}
if CodeCategory() == 1 || CodeCategory() == 2 then
{
if sdate < 20101004 Then
{
If BP >= 500000 Then
상한가 = up1;
Else If BP >= 100000 Then
상한가 = iff(up2>=500000, up1, up2);
Else If BP >= 50000 Then
상한가 = iff(up3>=100000, up2, up3);
Else If BP >= 10000 Then
상한가 = iff(up4>=50000, up3, up4);
Else If BP >= 5000 Then
상한가 = iff(up5>=10000, up4, up5);
Else If BP >= 1000 Then
상한가 = iff(up5>=5000, up5, up6);
Else
상한가 = iff(up6>=1000, up6, up6);
}
Else
{
If BP >= 500000 Then
상한가 = up1;
Else If BP >= 100000 Then
상한가 = iff(up2>=500000, up1, up2);
Else If BP >= 50000 Then
상한가 = iff(up3>=100000, up2, up3);
Else If BP >= 10000 Then
상한가 = iff(up4>=50000, up3, up4);
Else If BP >= 5000 Then
상한가 = iff(up5>=10000, up4, up5);
Else If BP >= 1000 Then
상한가 = iff(up5>=5000, up5, up6);
Else
상한가 = iff(up6>=1000, up6, up7);
}
}
else if CodeCategory() == 8 || CodeCategory() == 9 then { // ETF
상한가 = up6;
}
}
if MarketPosition == 0 Then
Buy("b",AtStop,상한가);
즐거운 하루되세요
> 맴맴잉 님이 쓴 글입니다.
> 제목 : 궁금한 점이 있어 여쭤봅니다.
> 몇가지 질문이 있어 이렇게 여쭤봅니다.
1. 매수 시그널이 발생하였을때
근처 호가창 +- 10호가 중 가장 많은 물량에 주문이 나갈수 있게
가능한가요???
검색해보니... 예스트레이더는 호가데이터를 반영안한다고 봤던것 같은데
확인 부탁드립니다.
2. 주식시장 현물거래에서 상한가 매수 할때
각 종목당 주가마다 등락률이 30%으로 고정되어있지 않은데
시스템식을 30%로 설정하는거 말고 다른 방법이 있을까요??
어떻게 해야 할지 궁금합니다.
예를들어 오늘 상한가간 종목들 보면
상한가 등락률이 29.97%, 29.84%, 29.93% 인데
상한가 매수를 30%로 하기엔.. 시스템식이 안될것 같아서 여쭤봅니다.