커뮤니티
형님 질문이요
2013-05-29 10:53:47
182
글번호 63737
300틱에서 음봉4개면 매도 조건만족시 즉시
양봉4개면 마찬가지로 매수 연속된 양봉이나 음봉이어야 합니다.
최대수익은 2포 추적청산 1포넣어주시고요
초반이든 중반이든 1포 50손실시 매매스톱이요
그리고 당일 2시45분에 스탑이요
답변 1
예스스탁 예스스탁 답변
2013-05-29 12:25:59
condition1 = ExitDate(1) == sdate and IsEntryName("StopLoss",1);
if condition1 == false Then{
if dayindex >= 3 and countif(C>O,4) == 4 Then
buy();
if dayindex >= 3 and countif(C<O,4) == 4 Then
Sell();
}
if MarketPosition == 1 Then{
ExitLong("BP",AtLimit,EntryPrice+2);
if highest(H,BarsSinceEntry) >= EntryPrice+1.5 Then
ExitLong("Btr",AtStop,EntryPrice+1.1);
}
if MarketPosition == -1 Then{
ExitShort("SP",AtLimit,EntryPrice-2);
if Lowest(L,BarsSinceEntry) <= EntryPrice-1.5 Then
ExitShort("Str",AtStop,EntryPrice-1.1);
}
SetStopLoss(1,PointStop);
> 다다링 님이 쓴 글입니다.
> 제목 : 형님 질문이요
>
300틱에서 음봉4개면 매도 조건만족시 즉시
양봉4개면 마찬가지로 매수 연속된 양봉이나 음봉이어야 합니다.
최대수익은 2포 추적청산 1포넣어주시고요
초반이든 중반이든 1포 50손실시 매매스톱이요
그리고 당일 2시45분에 스탑이요