커뮤니티
수식부탁드립니다
2019-01-03 12:54:15
176
글번호 124915
Var : 전환선(0);
전환선 = (highest(H,9)+lowest(L,9))/2;
Plot1(전환선, "전환선");
위 전환선을 위로 돌파하면 매수 신호을 아래로 깨면 매도 신호을 나오게 부탁 드립니다
그리고 모두 신호 후 수익 5틱단위로 표기 부탁 드립니다
또한 신호 후 10틱이상 수익 후 최고 수익 대비 청산 신호 부탁 드립니다
분봉 틱봉 당일청산 시스템에서 진입수식 매수 매도 진입 후 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-03 15:28:56
안녕하세요
예스스탁입니다.
Var : 전환선(0);
전환선 = (highest(H,9)+lowest(L,9))/2;
IF crossup(c, 전환선) Then
buy();
IF CrossDown(c, 전환선) Then
sell();
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);
}
var : pp(0),ll(0),tx(0);
if MarketPosition == 1 Then
{
pp = Floor((highest(H,BarsSinceEntry)-EntryPrice)/(PriceScale*10));
if pp > pp[1] Then
{
tx = Text_New(sdate,stime,H+PriceScale*3,NumToStr(pp*10,0)+"틱");
Text_SetStyle(tx,2,1);
}
}
if MarketPosition == -1 Then
{
pp = Floor((EntryPrice-lowest(L,BarsSinceEntry))/(PriceScale*10));
if pp > pp[1] Then
{
tx = Text_New(sdate,stime,L-PriceScale*3,NumToStr(pp*10,0)+"틱");
Text_SetStyle(tx,2,0);
}
}
즐거운 하루되세요
> 아이아띠 님이 쓴 글입니다.
> 제목 : 수식부탁드립니다
>
Var : 전환선(0);
전환선 = (highest(H,9)+lowest(L,9))/2;
Plot1(전환선, "전환선");
위 전환선을 위로 돌파하면 매수 신호을 아래로 깨면 매도 신호을 나오게 부탁 드립니다
그리고 모두 신호 후 수익 5틱단위로 표기 부탁 드립니다
또한 신호 후 10틱이상 수익 후 최고 수익 대비 청산 신호 부탁 드립니다
분봉 틱봉 당일청산 시스템에서 진입수식 매수 매도 진입 후 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% 수익감소시 청산
매수 매도 청산 수식요청 드립이다.
감사합니다
다음글
이전글