안녕하세요?
현재 진입은,
갭상승 양봉다음 음봉에 매도진입 / 갭하락 음봉다음 양봉에 매수진입 입니다.
여기서 갭상승한 캔들 대신 도지로 바꾸고싶습니다.
--> 갭상승한 도지다음 음봉에 매도진입 / 갭하락한 도지다음 양봉에 매수진입
으로 부탁드립니다.
감사합니다.
input : P1(5),P2(20),n(0);
input : 익절틱수(50),손절틱수(50);
var : Scond(False),Bcond(False),SI(0),BI(0);
var1 = ma(C,5);
Var2 = ma(C,20);
if var1 > Var2 and ((O > C[1] and C == O) or (C > O)) Then
{
SI = Index;
Scond = true;
}
if MarketPosition == 0 and Scond == true and Index > SI and Index < SI+n and C < O Then
{
Scond = False;
Sell();
}
if var1 < Var2 and ((O < C[1] and C == O) or (C < O)) Then
{
BI = Index;
Bcond = true;
}
if MarketPosition == 0 and Bcond == true and Index > BI and Index < BI+n and C > O Then
{
Bcond = False;
Buy();
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
답변 1
예스스탁
예스스탁 답변
2021-07-05 10:19:35
안녕하세요
예스스탁입니다.
input : P1(5),P2(20),n(0);
input : 익절틱수(50),손절틱수(50);
var : Scond(False),Bcond(False),SI(0),BI(0);
var1 = ma(C,5);
Var2 = ma(C,20);
if var1 > Var2 and (O > C[1] and C == O) Then
{
SI = Index;
Scond = true;
}
if MarketPosition == 0 and Scond == true and Index > SI and Index < SI+n and C < O Then
{
Scond = False;
Sell();
}
if var1 < Var2 and (O < C[1] and C == O) Then
{
BI = Index;
Bcond = true;
}
if MarketPosition == 0 and Bcond == true and Index > BI and Index < BI+n and C > O Then
{
Bcond = False;
Buy();
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요.
> 대구어린울프 님이 쓴 글입니다.
> 제목 : 수식 수정 부탁드립니다.
> 안녕하세요?
현재 진입은,
갭상승 양봉다음 음봉에 매도진입 / 갭하락 음봉다음 양봉에 매수진입 입니다.
여기서 갭상승한 캔들 대신 도지로 바꾸고싶습니다.
--> 갭상승한 도지다음 음봉에 매도진입 / 갭하락한 도지다음 양봉에 매수진입
으로 부탁드립니다.
감사합니다.
input : P1(5),P2(20),n(0);
input : 익절틱수(50),손절틱수(50);
var : Scond(False),Bcond(False),SI(0),BI(0);
var1 = ma(C,5);
Var2 = ma(C,20);
if var1 > Var2 and ((O > C[1] and C == O) or (C > O)) Then
{
SI = Index;
Scond = true;
}
if MarketPosition == 0 and Scond == true and Index > SI and Index < SI+n and C < O Then
{
Scond = False;
Sell();
}
if var1 < Var2 and ((O < C[1] and C == O) or (C < O)) Then
{
BI = Index;
Bcond = true;
}
if MarketPosition == 0 and Bcond == true and Index > BI and Index < BI+n and C > O Then
{
Bcond = False;
Buy();
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);