커뮤니티
수식요청 드립이다.
2018-12-31 14:04:56
193
글번호 124856
안녕하세요.
분봉 틱봉 당일청산 시스템에서 진입수식 매수 매도 진입 후 10틱이상 부터 최고수익이
20틱, 30틱, 40틱, 50틱, 60틱 이상 달성하는경우 각각 다른 청산 수식 적용
1. 10틱이상수익 부터 최고수익 20틱이상 29틱이하달성-> 최고수익대비 50% 수익감소시 청산
2. 10틱이상수익 부터 최고수익 30틱이상 39틱이하달성-> 최고수익대비 40% 수익감소시 청산
3. 10틱이상수익 부터 최고수익 40틱이상 49틱이하달성-> 최고수익대비 30% 수익감소시 청산
4. 10틱이상수익 부터 최고수익 50틱이상 59틱이하달성-> 최고수익대비 20% 수익감소시 청산
5. 10틱이상수익 부터 최고수익 60틱이상 달성-> 최고수익대비 10% 수익감소시 청산
매수 매도 청산 수식요청 드립이다.
감사합니다
답변 1
예스스탁 예스스탁 답변
2019-01-02 15:44:32
안녕하세요
예스스탁입니다.
var : maxv(0),minv(0);
if MarketPosition == 1 Then
{
maxv = highest(H,BarsSinceEntry);
if maxv >= EntryPrice+PriceScale*20 and maxv < EntryPrice+PriceScale*30 Then
ExitLong("bx1",AtStop,maxv-(maxv-EntryPrice)*0.5);
if maxv >= EntryPrice+PriceScale*30 and maxv < EntryPrice+PriceScale*40 Then
ExitLong("bx2",AtStop,maxv-(maxv-EntryPrice)*0.4);
if maxv >= EntryPrice+PriceScale*40 and maxv < EntryPrice+PriceScale*50 Then
ExitLong("bx3",AtStop,maxv-(maxv-EntryPrice)*0.3);
if maxv >= EntryPrice+PriceScale*50 and maxv < EntryPrice+PriceScale*60 Then
ExitLong("bx4",AtStop,maxv-(maxv-EntryPrice)*0.2);
if maxv >= EntryPrice+PriceScale*60 Then
ExitLong("bx5",AtStop,maxv-(maxv-EntryPrice)*0.1);
}
if MarketPosition == 1 Then
{
minv = lowest(L,BarsSinceEntry);
if minv <= EntryPrice-PriceScale*20 and minv > EntryPrice-PriceScale*30 Then
ExitShort("sx1",AtStop,minv+(EntryPrice-minv)*0.5);
if minv <= EntryPrice-PriceScale*30 and minv > EntryPrice-PriceScale*40 Then
ExitShort("sx2",AtStop,minv+(EntryPrice-minv)*0.4);
if minv <= EntryPrice-PriceScale*40 and minv > EntryPrice-PriceScale*50 Then
ExitShort("sx3",AtStop,minv+(EntryPrice-minv)*0.3);
if minv <= EntryPrice-PriceScale*50 and minv > EntryPrice-PriceScale*60 Then
ExitShort("sx4",AtStop,minv+(EntryPrice-minv)*0.2);
if minv <= EntryPrice-PriceScale*60 Then
ExitShort("sx5",AtStop,minv+(EntryPrice-minv)*0.1);
}
즐거운 하루되세요
> dandy 님이 쓴 글입니다.
> 제목 : 수식요청 드립이다.
> 안녕하세요.
분봉 틱봉 당일청산 시스템에서 진입수식 매수 매도 진입 후 10틱이상 부터 최고수익이
20틱, 30틱, 40틱, 50틱, 60틱 이상 달성하는경우 각각 다른 청산 수식 적용
1. 10틱이상수익 부터 최고수익 20틱이상 29틱이하달성-> 최고수익대비 50% 수익감소시 청산
2. 10틱이상수익 부터 최고수익 30틱이상 39틱이하달성-> 최고수익대비 40% 수익감소시 청산
3. 10틱이상수익 부터 최고수익 40틱이상 49틱이하달성-> 최고수익대비 30% 수익감소시 청산
4. 10틱이상수익 부터 최고수익 50틱이상 59틱이하달성-> 최고수익대비 20% 수익감소시 청산
5. 10틱이상수익 부터 최고수익 60틱이상 달성-> 최고수익대비 10% 수익감소시 청산
매수 매도 청산 수식요청 드립이다.
감사합니다
다음글
이전글