커뮤니티
부탁 드립니다.
2018-01-24 17:01:55
243
글번호 116023
Var : value(0);
value = 0;
# 매수 / 매도청산
If CCI(9) > 0 Then
value = 1;
If MACD(12,26) > 0 Then
value = value+1;
If DIPlus(14) > DIMinus(14) Then
value = value+1;
If StochasticsK(12,5) > StochasticsD(12,5,5) Then
value = value+1;
# 매수/매도청산
If value >= 3 Then
{
Buy();
}
value = 0;
# 매도/매수청산
If CCI(9) < 0 Then
value = 1;
If MACD(12,26) < 0 Then
value = value+1;
If DIPlus(14) < DIMinus(14) Then
value = value+1;
If StochasticsK(12,5) < StochasticsD(12,5,5) Then
value = value+1;
If value >= 3 Then
{
Sell();
}
위 조건에 거래량 3.000 개 이상,
20 이평 골든 크로스 매수.
데드 크로스 매도.
추가 부탁 드립니다.
신호종료시간은 11:28 분.
매매횟수2회로 제한 합니다.
답변 1
예스스탁 예스스탁 답변
2018-01-25 10:09:37
안녕하세요
예스스탁입니다.
Var : value(0),mav(0),T1(0),entry(0),Tcond(false);
if bdate != bdate[1] Then{
T1 = TotalTrades;
Tcond = true;
}
if MarketPosition == 0 Then
entry = TotalTrades-T1;
Else
entry = TotalTrades-T1+1;
if stime == 112800 or (stime > 112800 and stime[1] < 112800) Then{
Tcond = false;
if MarketPosition == 1 Then
ExitLong();
if MarketPosition == -1 Then
ExitShort();
}
value = 0;
If CCI(9) > 0 Then
value = 1;
If MACD(12,26) > 0 Then
value = value+1;
If DIPlus(14) > DIMinus(14) Then
value = value+1;
If StochasticsK(12,5) > StochasticsD(12,5,5) Then
value = value+1;
mav = ma(C,20);
If value >= 3 and V >= 3000 and crossup(c,mav) and
entry < 2 and Tcond == true Then
{
Buy();
}
value = 0;
If CCI(9) < 0 Then
value = 1;
If MACD(12,26) < 0 Then
value = value+1;
If DIPlus(14) < DIMinus(14) Then
value = value+1;
If StochasticsK(12,5) < StochasticsD(12,5,5) Then
value = value+1;
If value >= 3 and V >= 3000 and CrossDown(C,mav) and
entry < 2 and Tcond == true Then
{
Sell();
}
즐거운 하루되세요
> 시그너스 님이 쓴 글입니다.
> 제목 : 부탁 드립니다.
> Var : value(0);
value = 0;
# 매수 / 매도청산
If CCI(9) > 0 Then
value = 1;
If MACD(12,26) > 0 Then
value = value+1;
If DIPlus(14) > DIMinus(14) Then
value = value+1;
If StochasticsK(12,5) > StochasticsD(12,5,5) Then
value = value+1;
# 매수/매도청산
If value >= 3 Then
{
Buy();
}
value = 0;
# 매도/매수청산
If CCI(9) < 0 Then
value = 1;
If MACD(12,26) < 0 Then
value = value+1;
If DIPlus(14) < DIMinus(14) Then
value = value+1;
If StochasticsK(12,5) < StochasticsD(12,5,5) Then
value = value+1;
If value >= 3 Then
{
Sell();
}
위 조건에 거래량 3.000 개 이상,
20 이평 골든 크로스 매수.
데드 크로스 매도.
추가 부탁 드립니다.
신호종료시간은 11:28 분.
매매횟수2회로 제한 합니다.
다음글
이전글