커뮤니티
시스템식문의
2016-09-24 09:47:15
139
글번호 102168
if MarketPosition == 1 Then{
HH = highest(H,BarsSinceEntry);
if HH >= EntryPrice+PriceScale*50 and HH < EntryPrice+PriceScale*60 Then
ExitLong("bx1",AtStop,EntryPrice+PriceScale*25);
if HH >= EntryPrice+PriceScale*60 and HH < EntryPrice+PriceScale*70 Then
Exitlong("bx2",AtStop,EntryPrice+PriceScale*45);
if HH >= EntryPrice+PriceScale*70 and HH < EntryPrice+PriceScale*90 Then
Exitlong("bx3",AtStop,EntryPrice+PriceScale*55);
if HH >= EntryPrice+PriceScale*90 Then
Exitshort("bx4",AtStop,EntryPrice+PriceScale*75);
}
if MarketPosition == -1 Then{
LL = lowest(L,BarsSinceEntry);
if LL <= EntryPrice-PriceScale*50 and LL > EntryPrice-PriceScale*60 Then
Exitshort("sx1",AtStop,EntryPrice-PriceScale*25);
if LL <= EntryPrice-PriceScale*60 and LL > EntryPrice-PriceScale*70 Then
Exitshort("sx2",AtStop,EntryPrice-PriceScale*45);
if LL <= EntryPrice-PriceScale*70 and LL > EntryPrice-PriceScale*90 Then
Exitshort("sx3",AtStop,EntryPrice-PriceScale*55);
if LL <= EntryPrice-PriceScale*90 Then
Exitshort("sx4",AtStop,EntryPrice-PriceScale*75);
}
위와같은식으로 시물레이션을해보면 이해가안가는 청산가가잇어 문의드립니다
25틱이나 45틱등으로 익절이되어잇는데 청산가격이 25틱이 정확히안나오고
가령23틱 15틱 -5틱등(거래비용-6틱설정)으로 청산이됩니다
무엇이문제인가요?
- 1. 102700_캡처.PNG (0.09 MB)
답변 3
예스스탁 예스스탁 답변
2016-09-26 10:26:44
안녕하세요
예스스탁입니다.
1
신호타입중 atstop은 완성봉에서 가격을 셋팅하고
다음봉 시세가 해당 가격 이상이나 이하의 시세가 발생하면 즉시
신호가 발생합니다.
봉의 시가가 해당 가격을 충족해서 발생하면
시가에서 신호가 발생하게 되는데 시가가 갭이 있으면
지정한수익보다 낮게 됩니다.
차트의 신호가 발생한 봉의 시가를 확인하시기 바랍니다.
2
리포트의 손익에는 지정한 수수료와 슬리피지가 적용되므로
리포트의 수익은 수수료와 슬리피지가 차감된 값입니다.
즐거운 하루되세요
> 수원 님이 쓴 글입니다.
> 제목 : 시스템식문의
> if MarketPosition == 1 Then{
HH = highest(H,BarsSinceEntry);
if HH >= EntryPrice+PriceScale*50 and HH < EntryPrice+PriceScale*60 Then
ExitLong("bx1",AtStop,EntryPrice+PriceScale*25);
if HH >= EntryPrice+PriceScale*60 and HH < EntryPrice+PriceScale*70 Then
Exitlong("bx2",AtStop,EntryPrice+PriceScale*45);
if HH >= EntryPrice+PriceScale*70 and HH < EntryPrice+PriceScale*90 Then
Exitlong("bx3",AtStop,EntryPrice+PriceScale*55);
if HH >= EntryPrice+PriceScale*90 Then
Exitshort("bx4",AtStop,EntryPrice+PriceScale*75);
}
if MarketPosition == -1 Then{
LL = lowest(L,BarsSinceEntry);
if LL <= EntryPrice-PriceScale*50 and LL > EntryPrice-PriceScale*60 Then
Exitshort("sx1",AtStop,EntryPrice-PriceScale*25);
if LL <= EntryPrice-PriceScale*60 and LL > EntryPrice-PriceScale*70 Then
Exitshort("sx2",AtStop,EntryPrice-PriceScale*45);
if LL <= EntryPrice-PriceScale*70 and LL > EntryPrice-PriceScale*90 Then
Exitshort("sx3",AtStop,EntryPrice-PriceScale*55);
if LL <= EntryPrice-PriceScale*90 Then
Exitshort("sx4",AtStop,EntryPrice-PriceScale*75);
}
위와같은식으로 시물레이션을해보면 이해가안가는 청산가가잇어 문의드립니다
25틱이나 45틱등으로 익절이되어잇는데 청산가격이 25틱이 정확히안나오고
가령23틱 15틱 -5틱등(거래비용-6틱설정)으로 청산이됩니다
무엇이문제인가요?
수원
2016-09-26 11:45:51
그러면 봉완성말고 조건만족즉시 신호가발생하는 stop방식은 없나요?
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 시스템식문의
>
안녕하세요
예스스탁입니다.
1
신호타입중 atstop은 완성봉에서 가격을 셋팅하고
다음봉 시세가 해당 가격 이상이나 이하의 시세가 발생하면 즉시
신호가 발생합니다.
봉의 시가가 해당 가격을 충족해서 발생하면
시가에서 신호가 발생하게 되는데 시가가 갭이 있으면
지정한수익보다 낮게 됩니다.
차트의 신호가 발생한 봉의 시가를 확인하시기 바랍니다.
2
리포트의 손익에는 지정한 수수료와 슬리피지가 적용되므로
리포트의 수익은 수수료와 슬리피지가 차감된 값입니다.
즐거운 하루되세요
> 수원 님이 쓴 글입니다.
> 제목 : 시스템식문의
> if MarketPosition == 1 Then{
HH = highest(H,BarsSinceEntry);
if HH >= EntryPrice+PriceScale*50 and HH < EntryPrice+PriceScale*60 Then
ExitLong("bx1",AtStop,EntryPrice+PriceScale*25);
if HH >= EntryPrice+PriceScale*60 and HH < EntryPrice+PriceScale*70 Then
Exitlong("bx2",AtStop,EntryPrice+PriceScale*45);
if HH >= EntryPrice+PriceScale*70 and HH < EntryPrice+PriceScale*90 Then
Exitlong("bx3",AtStop,EntryPrice+PriceScale*55);
if HH >= EntryPrice+PriceScale*90 Then
Exitshort("bx4",AtStop,EntryPrice+PriceScale*75);
}
if MarketPosition == -1 Then{
LL = lowest(L,BarsSinceEntry);
if LL <= EntryPrice-PriceScale*50 and LL > EntryPrice-PriceScale*60 Then
Exitshort("sx1",AtStop,EntryPrice-PriceScale*25);
if LL <= EntryPrice-PriceScale*60 and LL > EntryPrice-PriceScale*70 Then
Exitshort("sx2",AtStop,EntryPrice-PriceScale*45);
if LL <= EntryPrice-PriceScale*70 and LL > EntryPrice-PriceScale*90 Then
Exitshort("sx3",AtStop,EntryPrice-PriceScale*55);
if LL <= EntryPrice-PriceScale*90 Then
Exitshort("sx4",AtStop,EntryPrice-PriceScale*75);
}
위와같은식으로 시물레이션을해보면 이해가안가는 청산가가잇어 문의드립니다
25틱이나 45틱등으로 익절이되어잇는데 청산가격이 25틱이 정확히안나오고
가령23틱 15틱 -5틱등(거래비용-6틱설정)으로 청산이됩니다
무엇이문제인가요?
예스스탁 예스스탁 답변
2016-09-27 11:28:18
안녕하세요
예스스탁입니다.
수식으로는 미완성봉에서 수익과 수익감소를
모두 체크해서 신호를 발생하게 작성할수는 없습니다.
즐거운 하루되세요
> 수원 님이 쓴 글입니다.
> 제목 : Re : Re : 시스템식문의
> 그러면 봉완성말고 조건만족즉시 신호가발생하는 stop방식은 없나요?
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 시스템식문의
>
안녕하세요
예스스탁입니다.
1
신호타입중 atstop은 완성봉에서 가격을 셋팅하고
다음봉 시세가 해당 가격 이상이나 이하의 시세가 발생하면 즉시
신호가 발생합니다.
봉의 시가가 해당 가격을 충족해서 발생하면
시가에서 신호가 발생하게 되는데 시가가 갭이 있으면
지정한수익보다 낮게 됩니다.
차트의 신호가 발생한 봉의 시가를 확인하시기 바랍니다.
2
리포트의 손익에는 지정한 수수료와 슬리피지가 적용되므로
리포트의 수익은 수수료와 슬리피지가 차감된 값입니다.
즐거운 하루되세요
> 수원 님이 쓴 글입니다.
> 제목 : 시스템식문의
> if MarketPosition == 1 Then{
HH = highest(H,BarsSinceEntry);
if HH >= EntryPrice+PriceScale*50 and HH < EntryPrice+PriceScale*60 Then
ExitLong("bx1",AtStop,EntryPrice+PriceScale*25);
if HH >= EntryPrice+PriceScale*60 and HH < EntryPrice+PriceScale*70 Then
Exitlong("bx2",AtStop,EntryPrice+PriceScale*45);
if HH >= EntryPrice+PriceScale*70 and HH < EntryPrice+PriceScale*90 Then
Exitlong("bx3",AtStop,EntryPrice+PriceScale*55);
if HH >= EntryPrice+PriceScale*90 Then
Exitshort("bx4",AtStop,EntryPrice+PriceScale*75);
}
if MarketPosition == -1 Then{
LL = lowest(L,BarsSinceEntry);
if LL <= EntryPrice-PriceScale*50 and LL > EntryPrice-PriceScale*60 Then
Exitshort("sx1",AtStop,EntryPrice-PriceScale*25);
if LL <= EntryPrice-PriceScale*60 and LL > EntryPrice-PriceScale*70 Then
Exitshort("sx2",AtStop,EntryPrice-PriceScale*45);
if LL <= EntryPrice-PriceScale*70 and LL > EntryPrice-PriceScale*90 Then
Exitshort("sx3",AtStop,EntryPrice-PriceScale*55);
if LL <= EntryPrice-PriceScale*90 Then
Exitshort("sx4",AtStop,EntryPrice-PriceScale*75);
}
위와같은식으로 시물레이션을해보면 이해가안가는 청산가가잇어 문의드립니다
25틱이나 45틱등으로 익절이되어잇는데 청산가격이 25틱이 정확히안나오고
가령23틱 15틱 -5틱등(거래비용-6틱설정)으로 청산이됩니다
무엇이문제인가요?
다음글
이전글