늘감사합니다.
해외선물이구요
하루에 매수1회 매도1회로 제한,
당일 청산,
매수 : 시가보다 50틱 하락하면 진입,
저가보다 50틱 상승하면 진입,
매도 : 시가보다 50틱 상승하면 진입,
고가보다 50틱 하락하면 진입.
감사합니다.
답변 1
예스스탁
예스스탁 답변
2019-11-12 10:52:04
안녕하세요
예스스탁입니다.
var : B(0),S(0);
if sdate != sdate[1] Then
SetStopEndofday(050000);
if bdate != bdate[1] Then
{
B = 0;
S = 0;
SetStopEndofday(0);
}
if MarketPosition == 1 and MarketPosition != MarketPosition[1] Then
B = B+1;
if MarketPosition == -1 and MarketPosition != MarketPosition[1] Then
S = S+1;
if B < 1 then
{
if MarketPosition <= 0 and L > dayopen-PriceScale*50 Then
buy("b1",Atlimit,dayopen-PriceScale*50);
if MarketPosition <= 0 and H < daylow+PriceScale*50 Then
buy("b2",AtStop,DayLow+PriceScale*50);
}
if S < 1 then
{
if MarketPosition >= 0 and H < dayopen+PriceScale*50 Then
sell("s1",Atlimit,dayopen+PriceScale*50);
if MarketPosition >= 0 and L > DayHigh-PriceScale*50 Then
Sell("s2",AtStop,DayHigh-PriceScale*50);
}
즐거운 하루되세요
> 하늘북 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> 늘감사합니다.
해외선물이구요
하루에 매수1회 매도1회로 제한,
당일 청산,
매수 : 시가보다 50틱 하락하면 진입,
저가보다 50틱 상승하면 진입,
매도 : 시가보다 50틱 상승하면 진입,
고가보다 50틱 하락하면 진입.
감사합니다.