커뮤니티
안녕하세요
2013-10-13 23:12:19
142
글번호 68395
윗부분 수식은 생략을 하였습니다
아래와 같이 수식을 사용하고 있습니다
가운데쯤 보시면 재매수 관련 수식이 있습니다
여기에 보면 매수청산4와 나머지 조건값이 맞을때 재매수가 되게 되어있습니다
재매수 부분에서 매수청산4 또는 청산7이 나오고 나머지 조건값이 맞을때
재매수를 하고 싶습니다 수식 부탁 드립니다 (010 8754 7432)
생략
if MarketPosition == 1 and ReEL < 재매수청산횟수 then{
if (BarsSinceEntry >= 청산양봉갯수 and Countif(cond1 == true,청산양봉갯수) == 청산양봉갯수) or RSIV < RSIvalue1 or
(BarsSinceEntry >= 청산음봉갯수 and Countif(cond2 == true,청산음봉갯수) == 청산음봉갯수) and C <= DayLow+N and
C < dayopen+z Then
ExitLong("매수청산4");
}
if MarketPosition == 0 and IsExitName("매수청산4",1) == true and count > 0 and RSIV > RSIvalue2 and
rebuy < 재매수횟수 and C > MAv6 and C > MAv5 and close > open and countif(C < mav5,BarsSinceExit(1)) < 1 and C <= DayLow+N and
C < dayopen+z then
buy("재매수");
if MarketPosition == 1 and C <= DayLow+q and C < dayopen+w and C >= DayLow+N and C > dayopen+z Then{
if highest(h,BarsSinceEntry) >= EntryPrice+Y Then
ExitLong("청산7",AtStop,highest(H,BarsSinceEntry)-x);
}
답변 2
예스스탁 예스스탁 답변
2013-10-14 15:50:54
안녕하세요
예스스탁입니다.
if MarketPosition == 1 and ReEL < 재매수청산횟수 then{
if (BarsSinceEntry >= 청산양봉갯수 and Countif(cond1 == true,청산양봉갯수) == 청산양봉갯수) or RSIV < RSIvalue1 or
(BarsSinceEntry >= 청산음봉갯수 and Countif(cond2 == true,청산음봉갯수) == 청산음봉갯수) and C <= DayLow+N and
C < dayopen+z Then
ExitLong("매수청산4");
}
if MarketPosition == 0 and (IsExitName("매수청산4",1) == true or IsExitName("청산7",1) == true) and count > 0 and RSIV > RSIvalue2 and
rebuy < 재매수횟수 and C > MAv6 and C > MAv5 and close > open and countif(C < mav5,BarsSinceExit(1)) < 1 and C <= DayLow+N and
C < dayopen+z then
buy("재매수");
if MarketPosition == 1 and C <= DayLow+q and C < dayopen+w and C >= DayLow+N and C > dayopen+z Then{
if highest(h,BarsSinceEntry) >= EntryPrice+Y Then
ExitLong("청산7",AtStop,highest(H,BarsSinceEntry)-x);
}
즐거운 하루되세요
> 난정욱 님이 쓴 글입니다.
> 제목 : 안녕하세요
>
윗부분 수식은 생략을 하였습니다
아래와 같이 수식을 사용하고 있습니다
가운데쯤 보시면 재매수 관련 수식이 있습니다
여기에 보면 매수청산4와 나머지 조건값이 맞을때 재매수가 되게 되어있습니다
재매수 부분에서 매수청산4 또는 청산7이 나오고 나머지 조건값이 맞을때
재매수를 하고 싶습니다 수식 부탁 드립니다 (010 8754 7432)
생략
if MarketPosition == 1 and ReEL < 재매수청산횟수 then{
if (BarsSinceEntry >= 청산양봉갯수 and Countif(cond1 == true,청산양봉갯수) == 청산양봉갯수) or RSIV < RSIvalue1 or
(BarsSinceEntry >= 청산음봉갯수 and Countif(cond2 == true,청산음봉갯수) == 청산음봉갯수) and C <= DayLow+N and
C < dayopen+z Then
ExitLong("매수청산4");
}
if MarketPosition == 0 and IsExitName("매수청산4",1) == true and count > 0 and RSIV > RSIvalue2 and
rebuy < 재매수횟수 and C > MAv6 and C > MAv5 and close > open and countif(C < mav5,BarsSinceExit(1)) < 1 and C <= DayLow+N and
C < dayopen+z then
buy("재매수");
if MarketPosition == 1 and C <= DayLow+q and C < dayopen+w and C >= DayLow+N and C > dayopen+z Then{
if highest(h,BarsSinceEntry) >= EntryPrice+Y Then
ExitLong("청산7",AtStop,highest(H,BarsSinceEntry)-x);
}
난정욱
2013-10-14 16:29:20
난정욱 님에 의해 삭제된 답변입니다.
이전글