커뮤니티
부탁드립니다-------------
2012-02-21 13:23:18
368
글번호 48013
if crossup(Stok,85) Then
Condition1 = false;
if CrossDown(Stok,20) Then
Condition1 = false;
if time-stime[봉수] <시간 and stime >= 92000 and dayPL > -(PriceScale*당일손절) then{
if (MarketPosition == 0 or highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*25) and
C > C[3] and tema82[0] < tema82[1] +0.08 then{
if stok <= 85 and stok >= 20 Then
sell();
if stok > 85 Then{
ExitLong();
Condition1 = true;
}
}
if CrossDown(Stok,85) and Condition1 == true Then
sell();
if (MarketPosition == 0 or Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*25) and
C < C[3] and tema82[0] > tema82[1] -0.14 then{
if stok >= 20 and stok <= 85 Then
buy();
if stok < 20 Then{
ExitShort();
Condition2 = true;
}
if Crossup(Stok,20) and Condition2 == true Then
buy();
}
if MarketPosition == -1 and MarketPosition[1] != -1 Then
Condition1 = false;
if MarketPosition == -1 and MarketPosition[1] != 1 Then
Condition2 = false;
SetStopLoss(PriceScale*13,PointStop);
부탁드린 대로 과열,침체권에서 청산후 진입이나 신규진입은 안하는데요 그후가
문제입니다
1)포지션이 없을때 과열,침체권 에서 신규 진입신호가 나오면 진입보류하는것은 맞는데 과열침체권 벗어날때는 진입(과열벗어나면 매도,침체 벗어나면 매수) 하게 해주세요
2)포지션이 있는경우 과열,침체권 에서 리버스 진입신호가 나오면 청산만하고 진입보류하는것은 맞는데 진입보류하다 과열침체 권 벗어날때 진입(과열벗어나면 매도,침체 벗어나면 매수) 하게 해주세요
답변 1
예스스탁 예스스탁 답변
2012-02-21 14:57:21
안녕하세요
예스스탁입니다.
if crossup(Stok,85) Then
Condition1 = false;
if CrossDown(Stok,20) Then
Condition1 = false;
if MarketPosition == -1 and MarketPosition[1] != -1 Then
Condition1 = false;
if MarketPosition == 1 and MarketPosition[1] != 1 Then
Condition2 = false;
if time-stime[봉수] <시간 and stime >= 92000 and dayPL > -(PriceScale*당일손절) then{
if C > C[3] and tema82[0] < tema82[1] +0.08 then{
if (MarketPosition == 0 or (MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*25))
and stok <= 85 and stok >= 20 Then
sell();
if stok > 85 Then{
ExitLong();
Condition1 = true;
}
}
if CrossDown(Stok,85) and Condition1 == true Then
sell();
if C < C[3] and tema82[0] > tema82[1] -0.14 then{
if (MarketPosition == 0 or (MarketPosition == -1 and Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*25) and
stok >= 20 and stok <= 85 Then
buy();
if stok < 20 Then{
ExitShort();
Condition2 = true;
}
if Crossup(Stok,20) and Condition2 == true Then
buy();
}
}
SetStopLoss(PriceScale*13,PointStop);
즐거운 하루되세요
> leekss1 님이 쓴 글입니다.
> 제목 : 부탁드립니다-------------
> if crossup(Stok,85) Then
Condition1 = false;
if CrossDown(Stok,20) Then
Condition1 = false;
if time-stime[봉수] <시간 and stime >= 92000 and dayPL > -(PriceScale*당일손절) then{
if (MarketPosition == 0 or highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*25) and
C > C[3] and tema82[0] < tema82[1] +0.08 then{
if stok <= 85 and stok >= 20 Then
sell();
if stok > 85 Then{
ExitLong();
Condition1 = true;
}
}
if CrossDown(Stok,85) and Condition1 == true Then
sell();
if (MarketPosition == 0 or Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*25) and
C < C[3] and tema82[0] > tema82[1] -0.14 then{
if stok >= 20 and stok <= 85 Then
buy();
if stok < 20 Then{
ExitShort();
Condition2 = true;
}
if Crossup(Stok,20) and Condition2 == true Then
buy();
}
if MarketPosition == -1 and MarketPosition[1] != -1 Then
Condition1 = false;
if MarketPosition == -1 and MarketPosition[1] != 1 Then
Condition2 = false;
SetStopLoss(PriceScale*13,PointStop);
부탁드린 대로 과열,침체권에서 청산후 진입이나 신규진입은 안하는데요 그후가
문제입니다
1)포지션이 없을때 과열,침체권 에서 신규 진입신호가 나오면 진입보류하는것은 맞는데 과열침체권 벗어날때는 진입(과열벗어나면 매도,침체 벗어나면 매수) 하게 해주세요
2)포지션이 있는경우 과열,침체권 에서 리버스 진입신호가 나오면 청산만하고 진입보류하는것은 맞는데 진입보류하다 과열침체 권 벗어날때 진입(과열벗어나면 매도,침체 벗어나면 매수) 하게 해주세요
이전글