커뮤니티
부탁드립니다
2013-07-16 14:28:56
213
글번호 65394
1.
진입시점에서 N봉이내 5틱이상 수익권에 도달하지 못한다면 청산
2.
진입시점에서 N봉이내 수익권이 아니면 청산
3.
진입시점에서 N봉이내 5틱이상 손실이라면 청산
N봉이내 10틱이상 손실이라면 청산
매수청산 매도청산 모두 부탁드립니다
답변 1
예스스탁 예스스탁 답변
2013-07-16 16:08:11
안녕하세요
예스스탁입니다.
1.
input : N(5);
if MarketPosition == 1 and
BarsSinceEntry == N and
highest(H,BarsSinceEntry) < EntryPrice+0.5 Then
exitlong();
if MarketPosition == -1 and
BarsSinceEntry == N and
Lowest(L,BarsSinceEntry) > EntryPrice-0.5 Then
ExitShort();
2.
input : N(5);
if MarketPosition == 1 and
BarsSinceEntry == N and
c < EntryPrice Then
exitlong();
if MarketPosition == -1 and
BarsSinceEntry == N and
c > EntryPrice Then
ExitShort();
3.
input : N(5);
if MarketPosition == 1 and
BarsSinceEntry == N and
c < EntryPrice-PriceScale*5 Then
exitlong();
if MarketPosition == 1 and
BarsSinceEntry == N and
c < EntryPrice-PriceScale*10 Then
exitlong();
if MarketPosition == -1 and
BarsSinceEntry == N and
c > EntryPrice+PriceScale*5 Then
ExitShort();
if MarketPosition == -1 and
BarsSinceEntry == N and
c > EntryPrice+PriceScale*10 Then
ExitShort();
즐거운 하루되세요
> 1231241 님이 쓴 글입니다.
> 제목 : 부탁드립니다
> 1.
진입시점에서 N봉이내 5틱이상 수익권에 도달하지 못한다면 청산
2.
진입시점에서 N봉이내 수익권이 아니면 청산
3.
진입시점에서 N봉이내 5틱이상 손실이라면 청산
N봉이내 10틱이상 손실이라면 청산
매수청산 매도청산 모두 부탁드립니다
다음글
이전글