안녕하세요.
항상 노고에 감사드립니다.
if c < o then
buy("당일최초매수",atlimit,dayopen - pricescale * 10,floor(100000/C));
if c < o and latestentryname == "당일최초매수" then
buy("매수추가",atlimit,latestentryprice - pricescale * 5,floor(100000/C));
1. 당일최초매수 - 당일시가대비 10틱이 빠지면 매수, 하루에 한번
2. 매수추가 - 반드시 당일최초매수 후 이전진입가격보다 5틱 빠지면 피라미딩 매수
if c < o and stime >= 120000 then
buy("오후장매수",atlimit,dayhigh - pricescale * 10,floor(100000/C));
if c < o and latestentryname == "오후장매수" then
buy("오후장매수추가",atlimit,latestentryprice - pricescale * 5,floor(100000/C));
3. 오후장매수 - 당일고가대비 10틱이 빠지면 매수, 당일 오후에 한번
4. 오후장매수추가 - 오후장매수 후 이전진입가격보다 5틱 빠지면 피라미딩 매수
위의 네가지 주문 방법을 부탁드립니다.
각각 4개의 주문은 서로 중복되지 않아야 한다는 전제도 부탁드립니다.
답변 1
예스스탁
예스스탁 답변
2021-02-03 09:17:39
안녕하세요
예스스탁입니다.
var : entry(0),EntryPM(0);
if bdate != Bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if (sTime >= 120000 and sTime[1] < 120000) Then
EntryPM = 0;
if sTime >= 120000 and
((MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1])) Then
EntryPM = EntryPM+1;
if sTime < 120000 Then
{
if entry < 1 and c < o then
buy("당일최초매수",atlimit,dayopen - pricescale * 10,floor(100000/C));
if MarketPosition == 1 and c < o and latestentryname(0) == "당일최초매수" then
buy("매수추가",atlimit,latestentryprice - pricescale * 5,floor(100000/C));
}
Else
{
if c < o then
buy("오후장매수",atlimit,dayhigh - pricescale * 10,floor(100000/C));
if MarketPosition == 1 and c < o and latestentryname(0) == "오후장매수" then
buy("오후장매수추가",atlimit,latestentryprice - pricescale * 5,floor(100000/C));
}
즐거운 하루되세요
> 탄탄시스템 님이 쓴 글입니다.
> 제목 : 시스템문의
> 안녕하세요.
항상 노고에 감사드립니다.
if c < o then
buy("당일최초매수",atlimit,dayopen - pricescale * 10,floor(100000/C));
if c < o and latestentryname == "당일최초매수" then
buy("매수추가",atlimit,latestentryprice - pricescale * 5,floor(100000/C));
1. 당일최초매수 - 당일시가대비 10틱이 빠지면 매수, 하루에 한번
2. 매수추가 - 반드시 당일최초매수 후 이전진입가격보다 5틱 빠지면 피라미딩 매수
if c < o and stime >= 120000 then
buy("오후장매수",atlimit,dayhigh - pricescale * 10,floor(100000/C));
if c < o and latestentryname == "오후장매수" then
buy("오후장매수추가",atlimit,latestentryprice - pricescale * 5,floor(100000/C));
3. 오후장매수 - 당일고가대비 10틱이 빠지면 매수, 당일 오후에 한번
4. 오후장매수추가 - 오후장매수 후 이전진입가격보다 5틱 빠지면 피라미딩 매수
위의 네가지 주문 방법을 부탁드립니다.
각각 4개의 주문은 서로 중복되지 않아야 한다는 전제도 부탁드립니다.