커뮤니티
시스템성과에서 수익이 표시되지않는건 어떤이유때문인가요?
2014-09-22 13:46:56
140
글번호 78723
위와 같은 상황에서 수익이 전혀 안나오는건 어떤 이유때문인가요?
아래는 수식입니다.
var : mav(0),HH(0),Upcnt(0),upidx(0),LL(0),Dncnt(0),Dnidx(0);
if date != date[1] Then{
Upcnt= -2;
Dncnt = -2;
}
mav = ma(c,5);
if L == L[1] Then{
Upcnt = -1;
HH = H;
}
if Upcnt == -1 and C > mav Then{
Upcnt = 0;
upidx = index;
if H > HH Then
HH = H;
}
if Upcnt >= 0 and index > upidx and H > HH Then{
HH = H;
Upcnt = Upcnt+1;
if UPcnt == 3 Then{
buy("b1",AtStop,mav+PriceScale*2);
upcnt = -2;
}
}
if H == H[1] Then{
Dncnt = -1;
LL = L;
}
if Dncnt == -1 and C < mav Then{
Dncnt = 0;
Dnidx = index;
if L < LL Then
LL = L;
}
if Dncnt >= 0 and index > Dnidx and L < LL Then{
LL = L;
Dncnt = Dncnt+1;
if Dncnt == 3 Then{
sell("s1",AtStop,floor(mav/PriceScale)*PriceScale-PriceScale*2);
Dncnt = -2;
}
}
if dayindex+1 <= 3 Then{
value1 = H;
value2 = L;
}
if dayindex+1 >= 3 Then{
if H < value1+PriceScale*1 then
buy("b2",AtStop,value1+PriceScale*1);
if L > value2-PriceScale*1 then
Sell("s2",AtStop,value2-PriceScale*1);
}
if MarketPosition == 1 and IsEntryName("B1") == true Then{
ExitLong("BL1",AtStop,EntryPrice-0.25);
ExitLong("BP1",atlimit,EntryPrice+0.5);
}
if MarketPosition == 1 and IsEntryName("B2") == true Then{
ExitLong("BL2",AtStop,EntryPrice-0.30);
ExitLong("BP2",atlimit,EntryPrice+1.0);
}
if MarketPosition == 1 and IsEntryName("S1") == true Then{
ExitShort("SL1",AtStop,EntryPrice+0.25);
ExitShort("SP1",AtLimit,EntryPrice-0.5);
}
if MarketPosition == 1 and IsEntryName("S2") == true Then{
ExitShort("SL2",AtStop,EntryPrice+0.30);
ExitShort("SP2",AtLimit,EntryPrice-1.0);
}
- 1. 20140922_135113.png (0.01 MB)
- 2. 20140922_135120.png (0.02 MB)
답변 2
예스스탁 예스스탁 답변
2014-09-22 15:16:02
안녕하세요
예스스탁입니다.
시스템의 손익에는
시스템 트레이딩 설정창의 비용수량탭에서
지정한 수수료와 슬리피지가 반영이 됩니다.
시스템 적용하실 때 시스템 트레이딩 설정창의
비용수량탭에서 수수료와 슬리피지를 0으로 셋팅하고 적용해서
리포트 보시기 바랍니다.
0으로 지정하시면 수수료와 슬리피지가 반영되지 않은 리포트 보실수 있습니다.
즐거운 하루되세요
> 타푸 님이 쓴 글입니다.
> 제목 : 시스템성과에서 수익이 표시되지않는건 어떤이유때문인가요?
> 위와 같은 상황에서 수익이 전혀 안나오는건 어떤 이유때문인가요?
아래는 수식입니다.
var : mav(0),HH(0),Upcnt(0),upidx(0),LL(0),Dncnt(0),Dnidx(0);
if date != date[1] Then{
Upcnt= -2;
Dncnt = -2;
}
mav = ma(c,5);
if L == L[1] Then{
Upcnt = -1;
HH = H;
}
if Upcnt == -1 and C > mav Then{
Upcnt = 0;
upidx = index;
if H > HH Then
HH = H;
}
if Upcnt >= 0 and index > upidx and H > HH Then{
HH = H;
Upcnt = Upcnt+1;
if UPcnt == 3 Then{
buy("b1",AtStop,mav+PriceScale*2);
upcnt = -2;
}
}
if H == H[1] Then{
Dncnt = -1;
LL = L;
}
if Dncnt == -1 and C < mav Then{
Dncnt = 0;
Dnidx = index;
if L < LL Then
LL = L;
}
if Dncnt >= 0 and index > Dnidx and L < LL Then{
LL = L;
Dncnt = Dncnt+1;
if Dncnt == 3 Then{
sell("s1",AtStop,floor(mav/PriceScale)*PriceScale-PriceScale*2);
Dncnt = -2;
}
}
if dayindex+1 <= 3 Then{
value1 = H;
value2 = L;
}
if dayindex+1 >= 3 Then{
if H < value1+PriceScale*1 then
buy("b2",AtStop,value1+PriceScale*1);
if L > value2-PriceScale*1 then
Sell("s2",AtStop,value2-PriceScale*1);
}
if MarketPosition == 1 and IsEntryName("B1") == true Then{
ExitLong("BL1",AtStop,EntryPrice-0.25);
ExitLong("BP1",atlimit,EntryPrice+0.5);
}
if MarketPosition == 1 and IsEntryName("B2") == true Then{
ExitLong("BL2",AtStop,EntryPrice-0.30);
ExitLong("BP2",atlimit,EntryPrice+1.0);
}
if MarketPosition == 1 and IsEntryName("S1") == true Then{
ExitShort("SL1",AtStop,EntryPrice+0.25);
ExitShort("SP1",AtLimit,EntryPrice-0.5);
}
if MarketPosition == 1 and IsEntryName("S2") == true Then{
ExitShort("SL2",AtStop,EntryPrice+0.30);
ExitShort("SP2",AtLimit,EntryPrice-1.0);
}
럭셔리궁디
2014-09-22 15:42:56
럭셔리궁디 님에 의해 삭제된 답변입니다.
다음글
이전글