커뮤니티
부탁드립니다.
2015-05-25 19:32:42
161
글번호 86365
하기 수식은 예스스탁님이 작성해주신 시간, 트레일링을 포함한 수식입니다.
여기에 하루 100틱 수익이면 시간에 관계없이 거래종료하는 수식을 추가 부탁드립니다.
if stime >= 200000 or stime < 030000 then{
if crossup(SMIV,SMIS) Then
buy();
if CrossDown(SMIV,SMIS) Then
sell();
}
if MarketPosition == 1 Then{
exitlong("BL",AtStop,O[BarsSinceEntry]-PriceScale*10);
if highest(h,BarsSinceEntry) >= EntryPrice+PriceScale*20 Then
ExitLong("bx",AtStop,EntryPrice+PriceScale*1);
}
if MarketPosition == -1 Then{
ExitShort("SL",AtStop,O[BarsSinceEntry]+PriceScale*10);
if Lowest(l,BarsSinceEntry) <= EntryPrice-PriceScale*20 Then
ExitShort("sx",AtStop,EntryPrice-PriceScale*1);
}
- 추가문의가...(오일선물에 적용중입니다.)
상기수식에서 03시에 강제청산으로 포지션없이 종료하는걸로 알고있는데...
현대선물 모의중에서는 포지션 청산이 안되고 오버나잇이 되고있는데..
프로그램 오류인가요?
- 또하나는 매수,매도청산이 같이 일어나는 시스템인데..
가끔 매수나, 매도가 한번씩 체결이 안되니 다음포지션에 2계약이 진입되는 오류가 발생되네요..( 시장가 설정 )
어디로 문의를 드려야할지?
미리 감사드립니다.
답변 3
예스스탁 예스스탁 답변
2015-05-26 10:38:57
안녕하세요
예스스탁입니다.
1.
input : 당일수익(100);#틱수
var : NP(0),PreNP(0),dayPL(0),Econd(false);
NP = NetProfit;
if bdate != bdate[1] Then{
PreNP = NP[1];
Econd = false;
}
dayPL = NP-PreNP;
if BarsSinceExit(1) == 1 and (IsExitName("bx1",1) or IsExitName("sx1",1)) Then
Econd = true;
if Econd == false Then{
if stime >= 200000 or stime < 030000 then{
if crossup(SMIV,SMIS) Then
buy();
if CrossDown(SMIV,SMIS) Then
sell();
}
}
if MarketPosition == 1 Then{
exitlong("BL",AtStop,O[BarsSinceEntry]-PriceScale*10);
if highest(h,BarsSinceEntry) >= EntryPrice+PriceScale*20 Then{
ExitLong("bx",AtStop,EntryPrice+PriceScale*1);
}
ExitLong("bx1",AtLimit,EntryPrice+(당일수익-daypl));
}
if MarketPosition == -1 Then{
ExitShort("SL",AtStop,O[BarsSinceEntry]+PriceScale*10);
if Lowest(l,BarsSinceEntry) <= EntryPrice-PriceScale*20 Then{
ExitShort("sx",AtStop,EntryPrice-PriceScale*1);
}
ExitShort("sx1",AtLimit,EntryPrice-(당일수익-daypl) );
}
if stime == 030000 or (stime > 030000 and stime[1] < 030000) Then{
ExitLong();
ExitShort();
}
2.
올려주신 식에 3시 청산이 없었습니다.
3시 청산식 위에 추가해 드립니다.
주문후 미체결이 되는 부분은 수식에서 따로 처리가 되지 않습니다.
수식은 조건에 따라 주문만 발생시키므로
주문이 체결이 되지 않는 부분은 선물사에 문의를 해주셔야 합니다.
즐거운 하루되세요
> vmfha 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> 하기 수식은 예스스탁님이 작성해주신 시간, 트레일링을 포함한 수식입니다.
여기에 하루 100틱 수익이면 시간에 관계없이 거래종료하는 수식을 추가 부탁드립니다.
if stime >= 200000 or stime < 030000 then{
if crossup(SMIV,SMIS) Then
buy();
if CrossDown(SMIV,SMIS) Then
sell();
}
if MarketPosition == 1 Then{
exitlong("BL",AtStop,O[BarsSinceEntry]-PriceScale*10);
if highest(h,BarsSinceEntry) >= EntryPrice+PriceScale*20 Then
ExitLong("bx",AtStop,EntryPrice+PriceScale*1);
}
if MarketPosition == -1 Then{
ExitShort("SL",AtStop,O[BarsSinceEntry]+PriceScale*10);
if Lowest(l,BarsSinceEntry) <= EntryPrice-PriceScale*20 Then
ExitShort("sx",AtStop,EntryPrice-PriceScale*1);
}
- 추가문의가...(오일선물에 적용중입니다.)
상기수식에서 03시에 강제청산으로 포지션없이 종료하는걸로 알고있는데...
현대선물 모의중에서는 포지션 청산이 안되고 오버나잇이 되고있는데..
프로그램 오류인가요?
- 또하나는 매수,매도청산이 같이 일어나는 시스템인데..
가끔 매수나, 매도가 한번씩 체결이 안되니 다음포지션에 2계약이 진입되는 오류가 발생되네요..( 시장가 설정 )
어디로 문의를 드려야할지?
미리 감사드립니다.
vmfha
2015-05-26 11:01:41
하기수식이 예스스탁님이 작성해주신 전문입니다.
매매시간은 저녁 8시~새벽3시까지라고 작성해주셨는데...
03시에 강제청산이 안되는건가요?...제가 왕초보라...ㅠㅠ
다시부탁드립니다.
하기 시스템에 매매시간은 20시~03시 ( 03시에는 강제청산), 하루 100틱 이상이면 강제종료되게 다시 부탁드립니다.
ps) 시스템 모니터상 체결내역은 제대로 나오는데...실제 종합 주문 체결이나 잔고에는 체결이 안되는걸로 나와 현대선물에 문의하니 예스스탁으로 문의하라고하는데..ㅠㅠ
input : g(11),r(25),s(2),P(10);
var : SMIV(0),SMIS(0);
SMIv = ema(ema(c-(highest(H,g) + lowest(L,g))*0.5, r),s) * 100 /
(0.5 * ema(ema(highest(H,g)-lowest(L,g),r),s)) ;
SMIS = ema(SMIV,p);
if stime >= 200000 or stime < 030000 then{
if crossup(SMIV,SMIS) Then
buy();
if CrossDown(SMIV,SMIS) Then
sell();
}
if MarketPosition == 1 Then{
exitlong("BL",AtStop,O[BarsSinceEntry]-PriceScale*10);
exitlong("Btr",AtStop,highest(h,BarsSinceEntry)-PriceScale*25);
if highest(h,BarsSinceEntry) >= EntryPrice+PriceScale*20 Then
ExitLong("bx",AtStop,EntryPrice+PriceScale*1);
}
if MarketPosition == -1 Then{
ExitShort("SL",AtStop,O[BarsSinceEntry]+PriceScale*10);
ExitShort("Str",AtStop,lowest(L,BarsSinceEntry)+PriceScale*25);
if Lowest(l,BarsSinceEntry) <= EntryPrice-PriceScale*20 Then
ExitShort("sx",AtStop,EntryPrice-PriceScale*1);
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 부탁드립니다.
>
안녕하세요
예스스탁입니다.
1.
input : 당일수익(100);#틱수
var : NP(0),PreNP(0),dayPL(0),Econd(false);
NP = NetProfit;
if bdate != bdate[1] Then{
PreNP = NP[1];
Econd = false;
}
dayPL = NP-PreNP;
if BarsSinceExit(1) == 1 and (IsExitName("bx1",1) or IsExitName("sx1",1)) Then
Econd = true;
if Econd == false Then{
if stime >= 200000 or stime < 030000 then{
if crossup(SMIV,SMIS) Then
buy();
if CrossDown(SMIV,SMIS) Then
sell();
}
}
if MarketPosition == 1 Then{
exitlong("BL",AtStop,O[BarsSinceEntry]-PriceScale*10);
if highest(h,BarsSinceEntry) >= EntryPrice+PriceScale*20 Then{
ExitLong("bx",AtStop,EntryPrice+PriceScale*1);
}
ExitLong("bx1",AtLimit,EntryPrice+(당일수익-daypl));
}
if MarketPosition == -1 Then{
ExitShort("SL",AtStop,O[BarsSinceEntry]+PriceScale*10);
if Lowest(l,BarsSinceEntry) <= EntryPrice-PriceScale*20 Then{
ExitShort("sx",AtStop,EntryPrice-PriceScale*1);
}
ExitShort("sx1",AtLimit,EntryPrice-(당일수익-daypl) );
}
if stime == 030000 or (stime > 030000 and stime[1] < 030000) Then{
ExitLong();
ExitShort();
}
2.
올려주신 식에 3시 청산이 없었습니다.
3시 청산식 위에 추가해 드립니다.
주문후 미체결이 되는 부분은 수식에서 따로 처리가 되지 않습니다.
수식은 조건에 따라 주문만 발생시키므로
주문이 체결이 되지 않는 부분은 선물사에 문의를 해주셔야 합니다.
즐거운 하루되세요
> vmfha 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> 하기 수식은 예스스탁님이 작성해주신 시간, 트레일링을 포함한 수식입니다.
여기에 하루 100틱 수익이면 시간에 관계없이 거래종료하는 수식을 추가 부탁드립니다.
if stime >= 200000 or stime < 030000 then{
if crossup(SMIV,SMIS) Then
buy();
if CrossDown(SMIV,SMIS) Then
sell();
}
if MarketPosition == 1 Then{
exitlong("BL",AtStop,O[BarsSinceEntry]-PriceScale*10);
if highest(h,BarsSinceEntry) >= EntryPrice+PriceScale*20 Then
ExitLong("bx",AtStop,EntryPrice+PriceScale*1);
}
if MarketPosition == -1 Then{
ExitShort("SL",AtStop,O[BarsSinceEntry]+PriceScale*10);
if Lowest(l,BarsSinceEntry) <= EntryPrice-PriceScale*20 Then
ExitShort("sx",AtStop,EntryPrice-PriceScale*1);
}
- 추가문의가...(오일선물에 적용중입니다.)
상기수식에서 03시에 강제청산으로 포지션없이 종료하는걸로 알고있는데...
현대선물 모의중에서는 포지션 청산이 안되고 오버나잇이 되고있는데..
프로그램 오류인가요?
- 또하나는 매수,매도청산이 같이 일어나는 시스템인데..
가끔 매수나, 매도가 한번씩 체결이 안되니 다음포지션에 2계약이 진입되는 오류가 발생되네요..( 시장가 설정 )
어디로 문의를 드려야할지?
미리 감사드립니다.
예스스탁 예스스탁 답변
2015-05-26 11:28:14
안녕하세요
예스스탁입니다.
1.
기존수식이 3시까지만 진입이 발생하는 것으로 되어 있고 3시 청산은 없었습니다.
오늘 답변드린 식에 추가했습니다.
input : 당일수익(100);#틱수
var : NP(0),PreNP(0),dayPL(0),Econd(false);
input : g(11),r(25),s(2),P(10);
var : SMIV(0),SMIS(0);
SMIv = ema(ema(c-(highest(H,g) + lowest(L,g))*0.5, r),s) * 100 /
(0.5 * ema(ema(highest(H,g)-lowest(L,g),r),s)) ;
SMIS = ema(SMIV,p);
NP = NetProfit;
if bdate != bdate[1] Then{
PreNP = NP[1];
Econd = false;
}
dayPL = NP-PreNP;
if BarsSinceExit(1) == 1 and (IsExitName("bx1",1) or IsExitName("sx1",1)) Then
Econd = true;
if Econd == false Then{
if stime >= 200000 or stime < 030000 then{
if crossup(SMIV,SMIS) Then
buy();
if CrossDown(SMIV,SMIS) Then
sell();
}
}
if MarketPosition == 1 Then{
exitlong("BL",AtStop,O[BarsSinceEntry]-PriceScale*10);
if highest(h,BarsSinceEntry) >= EntryPrice+PriceScale*20 Then{
ExitLong("bx",AtStop,EntryPrice+PriceScale*1);
}
ExitLong("bx1",AtLimit,EntryPrice+(당일수익-daypl));
}
if MarketPosition == -1 Then{
ExitShort("SL",AtStop,O[BarsSinceEntry]+PriceScale*10);
if Lowest(l,BarsSinceEntry) <= EntryPrice-PriceScale*20 Then{
ExitShort("sx",AtStop,EntryPrice-PriceScale*1);
}
ExitShort("sx1",AtLimit,EntryPrice-(당일수익-daypl) );
}
if stime == 030000 or (stime > 030000 and stime[1] < 030000) Then{
ExitLong();
ExitShort();
}
3.
시스템은 수식상 조건만 보고 주문을 발생하는 것까지만 담당합니다.
주문발생후에는 시장에서 체결이 되는 부분으로
주문이 집행이 되었는데 체결이 안된부분은 저희쪽에서 상황을 알수가 없습니다.
미체결된 주문번호로 해당 주문번호가
시장가로 주문을 냈는데 미체결된 이유를 알고자 하신다고 선물사에 문의하셔야 할것 같습니다.
혹은 저희쪽으로 전화를 주셔서 해외선물 담당자를 찾아주시기 바랍니다.02-3453-1060
즐거운 하루되세요
> vmfha 님이 쓴 글입니다.
> 제목 : Re : Re : 부탁드립니다.
> 하기수식이 예스스탁님이 작성해주신 전문입니다.
매매시간은 저녁 8시~새벽3시까지라고 작성해주셨는데...
03시에 강제청산이 안되는건가요?...제가 왕초보라...ㅠㅠ
다시부탁드립니다.
하기 시스템에 매매시간은 20시~03시 ( 03시에는 강제청산), 하루 100틱 이상이면 강제종료되게 다시 부탁드립니다.
ps) 시스템 모니터상 체결내역은 제대로 나오는데...실제 종합 주문 체결이나 잔고에는 체결이 안되는걸로 나와 현대선물에 문의하니 예스스탁으로 문의하라고하는데..ㅠㅠ
input : g(11),r(25),s(2),P(10);
var : SMIV(0),SMIS(0);
SMIv = ema(ema(c-(highest(H,g) + lowest(L,g))*0.5, r),s) * 100 /
(0.5 * ema(ema(highest(H,g)-lowest(L,g),r),s)) ;
SMIS = ema(SMIV,p);
if stime >= 200000 or stime < 030000 then{
if crossup(SMIV,SMIS) Then
buy();
if CrossDown(SMIV,SMIS) Then
sell();
}
if MarketPosition == 1 Then{
exitlong("BL",AtStop,O[BarsSinceEntry]-PriceScale*10);
exitlong("Btr",AtStop,highest(h,BarsSinceEntry)-PriceScale*25);
if highest(h,BarsSinceEntry) >= EntryPrice+PriceScale*20 Then
ExitLong("bx",AtStop,EntryPrice+PriceScale*1);
}
if MarketPosition == -1 Then{
ExitShort("SL",AtStop,O[BarsSinceEntry]+PriceScale*10);
ExitShort("Str",AtStop,lowest(L,BarsSinceEntry)+PriceScale*25);
if Lowest(l,BarsSinceEntry) <= EntryPrice-PriceScale*20 Then
ExitShort("sx",AtStop,EntryPrice-PriceScale*1);
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 부탁드립니다.
>
안녕하세요
예스스탁입니다.
1.
input : 당일수익(100);#틱수
var : NP(0),PreNP(0),dayPL(0),Econd(false);
NP = NetProfit;
if bdate != bdate[1] Then{
PreNP = NP[1];
Econd = false;
}
dayPL = NP-PreNP;
if BarsSinceExit(1) == 1 and (IsExitName("bx1",1) or IsExitName("sx1",1)) Then
Econd = true;
if Econd == false Then{
if stime >= 200000 or stime < 030000 then{
if crossup(SMIV,SMIS) Then
buy();
if CrossDown(SMIV,SMIS) Then
sell();
}
}
if MarketPosition == 1 Then{
exitlong("BL",AtStop,O[BarsSinceEntry]-PriceScale*10);
if highest(h,BarsSinceEntry) >= EntryPrice+PriceScale*20 Then{
ExitLong("bx",AtStop,EntryPrice+PriceScale*1);
}
ExitLong("bx1",AtLimit,EntryPrice+(당일수익-daypl));
}
if MarketPosition == -1 Then{
ExitShort("SL",AtStop,O[BarsSinceEntry]+PriceScale*10);
if Lowest(l,BarsSinceEntry) <= EntryPrice-PriceScale*20 Then{
ExitShort("sx",AtStop,EntryPrice-PriceScale*1);
}
ExitShort("sx1",AtLimit,EntryPrice-(당일수익-daypl) );
}
if stime == 030000 or (stime > 030000 and stime[1] < 030000) Then{
ExitLong();
ExitShort();
}
2.
올려주신 식에 3시 청산이 없었습니다.
3시 청산식 위에 추가해 드립니다.
주문후 미체결이 되는 부분은 수식에서 따로 처리가 되지 않습니다.
수식은 조건에 따라 주문만 발생시키므로
주문이 체결이 되지 않는 부분은 선물사에 문의를 해주셔야 합니다.
즐거운 하루되세요
> vmfha 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> 하기 수식은 예스스탁님이 작성해주신 시간, 트레일링을 포함한 수식입니다.
여기에 하루 100틱 수익이면 시간에 관계없이 거래종료하는 수식을 추가 부탁드립니다.
if stime >= 200000 or stime < 030000 then{
if crossup(SMIV,SMIS) Then
buy();
if CrossDown(SMIV,SMIS) Then
sell();
}
if MarketPosition == 1 Then{
exitlong("BL",AtStop,O[BarsSinceEntry]-PriceScale*10);
if highest(h,BarsSinceEntry) >= EntryPrice+PriceScale*20 Then
ExitLong("bx",AtStop,EntryPrice+PriceScale*1);
}
if MarketPosition == -1 Then{
ExitShort("SL",AtStop,O[BarsSinceEntry]+PriceScale*10);
if Lowest(l,BarsSinceEntry) <= EntryPrice-PriceScale*20 Then
ExitShort("sx",AtStop,EntryPrice-PriceScale*1);
}
- 추가문의가...(오일선물에 적용중입니다.)
상기수식에서 03시에 강제청산으로 포지션없이 종료하는걸로 알고있는데...
현대선물 모의중에서는 포지션 청산이 안되고 오버나잇이 되고있는데..
프로그램 오류인가요?
- 또하나는 매수,매도청산이 같이 일어나는 시스템인데..
가끔 매수나, 매도가 한번씩 체결이 안되니 다음포지션에 2계약이 진입되는 오류가 발생되네요..( 시장가 설정 )
어디로 문의를 드려야할지?
미리 감사드립니다.
다음글