커뮤니티
수정식 부탁드려요..
2015-01-22 13:35:58
112
글번호 82502
var : entry(false);
#첫봉에서는 false
if dayindex == 0 Then
entry = false;
#무포지션 상태이고
#두번째봉 부터
#당일 최저가가 갱신되면
#entry는 true
if MarketPosition == 0 and
dayindex > 0 and
L < daylow[1] Then
entry = true;
#entry가 true인 상태에서 청산발생하면
#entry는 false
if entry == true And
MarketPosition == 0 and
MarketPosition != MarketPosition[1] Then
entry = false;
#entry가 true인 상태에서
#당일저가+12틱이면 매수
if MarketPosition == 0 and entry == true and stime < 150000 Then
sell("s1",AtLimit,daylow()+PriceScale*12);
SetStopLoss(PriceScale*20,PointStop);
SetStopProfittarget(PriceScale*25,PointStop);
## 안녕하세요 ... 지난번 만들어주신 수식을 잘 사용하고 있습니다.
수익실현, 손절이 나가도 나간 가격에서 신호가 재발생하지 않아서 좋았습니다.
이수식을 조금 변경하고 싶은 것이 있어서. 수고스럽드래도 한번 더 부탁드릴께요
조건:
1. 캔들3개이상이 정배열이 만들어지면 매수포지션....40이평가격(1차매수진입),60이평가격
(2차매수진입)
2. 캔들3개이상이 역배열이 만들어지면 매도포지션....40이평가격(1차매도진입),60이평가격
(2차매도진입)
3. 매수진입, 매도진입시 ------> 소리출력....
감사합니다.
답변 1
예스스탁 예스스탁 답변
2015-01-22 16:17:00
안녕하세요
예스스탁입니다.
동일포지션에 대해 누적하시는 내용이므로
적용하실때 시스템 트레디이 설정창의 피라미딩탭에서
다른진입신호만 허용으로 선택하고 적용하시기 바랍니다.
소리출력은 시스템 적용시에 매매탭에서 경보음 설정하시면 됩니다.
var : entry(false),mav1(0),mav2(0);
mav1 = ma(c,40);
mav2 = ma(c,60);
#첫봉에서는 false
if dayindex == 0 Then
entry = false;
#무포지션 상태이고
#두번째봉 부터
#당일 최저가가 갱신되면
#entry는 true
if MarketPosition == 0 and
dayindex > 0 and
L < daylow[1] Then
entry = true;
#entry가 true인 상태에서 청산발생하면
#entry는 false
if entry == true And
MarketPosition == 0 and
MarketPosition != MarketPosition[1] Then
entry = false;
#entry가 true인 상태에서
if MarketPosition == 0 and entry == true and stime < 150000 Then{
if MarketPosition <= 0 and countif(mav1>mav2,3) == 3 Then
buy("b1",atlimit,mav1);
if MarketPosition == 1 and MaxEntries == 1 Then
buy("b2",atlimit,mav2);
if MarketPosition <= 0 and countif(mav1<mav2,3) == 3 Then
sell("s1",atlimit,mav1);
if MarketPosition == -1 and MaxEntries == 1 Then
sell("s2",atlimit,mav2);
}
SetStopLoss(PriceScale*20,PointStop);
SetStopProfittarget(PriceScale*25,PointStop);
즐거운 하루되세요
> 신나는파파 님이 쓴 글입니다.
> 제목 : 수정식 부탁드려요..
> var : entry(false);
#첫봉에서는 false
if dayindex == 0 Then
entry = false;
#무포지션 상태이고
#두번째봉 부터
#당일 최저가가 갱신되면
#entry는 true
if MarketPosition == 0 and
dayindex > 0 and
L < daylow[1] Then
entry = true;
#entry가 true인 상태에서 청산발생하면
#entry는 false
if entry == true And
MarketPosition == 0 and
MarketPosition != MarketPosition[1] Then
entry = false;
#entry가 true인 상태에서
#당일저가+12틱이면 매수
if MarketPosition == 0 and entry == true and stime < 150000 Then
sell("s1",AtLimit,daylow()+PriceScale*12);
SetStopLoss(PriceScale*20,PointStop);
SetStopProfittarget(PriceScale*25,PointStop);
## 안녕하세요 ... 지난번 만들어주신 수식을 잘 사용하고 있습니다.
수익실현, 손절이 나가도 나간 가격에서 신호가 재발생하지 않아서 좋았습니다.
이수식을 조금 변경하고 싶은 것이 있어서. 수고스럽드래도 한번 더 부탁드릴께요
조건:
1. 캔들3개이상이 정배열이 만들어지면 매수포지션....40이평가격(1차매수진입),60이평가격
(2차매수진입)
2. 캔들3개이상이 역배열이 만들어지면 매도포지션....40이평가격(1차매도진입),60이평가격
(2차매도진입)
3. 매수진입, 매도진입시 ------> 소리출력....
감사합니다.