커뮤니티
시스템 식 부탁드립니다
2015-04-23 19:00:38
169
글번호 85336
input : 시작시간(91000),끝시간(140000);
var : entry(false);
if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then
entry = true;
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
entry = False;
var1 = ema(c,25);
var2 = ema(c,75);
var3 = max(var1,var2);#2개 중 큰값
var4 = min(var1,var2);#2개중 작은값
#종가가 두개중 큰값보다 3틱이상 큼
if entry == true And
((MarketPosition == 0 and MarketPosition(1) != 1) or MarketPosition == -1)
and c >= var3+PriceScale*2 Then
buy();
#종가가 두개 중 작은값보다 3틱이상 작음
if entry == true And
((MarketPosition == 0 and MarketPosition(1) != -1) or MarketPosition == 1)
and c <= var4-PriceScale*2 Then
sell();
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then{
ExitLong();
ExitShort();
}
SetStopLoss(PriceScale*6,PointStop);
SetStopProfittarget(PriceScale*6,PointStop);
이게 기존 저의 시스템 수식 인데요 ..
여기에 매수는 macd 오실레이터 파스티브 10번째 캔들안에 조건을 추가하고 싶습니다
더불어 매도는 macd 오실레이터 네커티브 10번째 캔들안입니다
즉 강조선택에서 파스티브는 색깔이 분홍색으로 전환되고 네커티브는 녹색으로 전환이 되는데요 색깔전환후 10번째 캔들안에서 신호가 나오는걸 희망합니다 위에 제 수식에서 매수와 매도조건중 이내용을 첨가하고 싶습니다 감사합니다
답변 1
예스스탁 예스스탁 답변
2015-04-24 13:23:20
안녕하세요
예스스탁입니다.
input : 시작시간(91000),끝시간(140000),short(12),long(26),sig(9);
var : entry(false);
if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then
entry = true;
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
entry = False;
var1 = ema(c,25);
var2 = ema(c,75);
var3 = max(var1,var2);#2개 중 큰값
var4 = min(var1,var2);#2개중 작은값
var5 = MACD_OSC(Short,long,sig);
#종가가 두개중 큰값보다 3틱이상 큼
if entry == true And
((MarketPosition == 0 and MarketPosition(1) != 1) or MarketPosition == -1)
and c >= var3+PriceScale*2 And
var5 > 0 and countif(crossup(var5,0),10) >= 1 Then
buy();
#종가가 두개 중 작은값보다 3틱이상 작음
if entry == true And
((MarketPosition == 0 and MarketPosition(1) != -1) or MarketPosition == 1)
and c <= var4-PriceScale*2 And
var5 < 0 and countif(CrossDown(var5,0),10) >= 1 Then
sell();
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then{
ExitLong();
ExitShort();
}
SetStopLoss(PriceScale*6,PointStop);
SetStopProfittarget(PriceScale*6,PointStop);
즐거운 하루되세요
> 필로게이스 님이 쓴 글입니다.
> 제목 : 시스템 식 부탁드립니다
> input : 시작시간(91000),끝시간(140000);
var : entry(false);
if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then
entry = true;
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
entry = False;
var1 = ema(c,25);
var2 = ema(c,75);
var3 = max(var1,var2);#2개 중 큰값
var4 = min(var1,var2);#2개중 작은값
#종가가 두개중 큰값보다 3틱이상 큼
if entry == true And
((MarketPosition == 0 and MarketPosition(1) != 1) or MarketPosition == -1)
and c >= var3+PriceScale*2 Then
buy();
#종가가 두개 중 작은값보다 3틱이상 작음
if entry == true And
((MarketPosition == 0 and MarketPosition(1) != -1) or MarketPosition == 1)
and c <= var4-PriceScale*2 Then
sell();
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then{
ExitLong();
ExitShort();
}
SetStopLoss(PriceScale*6,PointStop);
SetStopProfittarget(PriceScale*6,PointStop);
이게 기존 저의 시스템 수식 인데요 ..
여기에 매수는 macd 오실레이터 파스티브 10번째 캔들안에 조건을 추가하고 싶습니다
더불어 매도는 macd 오실레이터 네커티브 10번째 캔들안입니다
즉 강조선택에서 파스티브는 색깔이 분홍색으로 전환되고 네커티브는 녹색으로 전환이 되는데요 색깔전환후 10번째 캔들안에서 신호가 나오는걸 희망합니다 위에 제 수식에서 매수와 매도조건중 이내용을 첨가하고 싶습니다 감사합니다
이전글