답변완료
수정부탁드립니다.
안녕하세요?
아래 수식에서 교차매매가 되지않게, 현재포지션 청산이되면 다음신호에 진입할수있게 수정부탁드립니다.
감사합니다.
input : 현재양봉틱수(5),전봉양봉틱수(5),현재음봉틱수(5),전봉음봉틱수(5);
input : 익절틱수(50),손절틱수(50);
if O == C[1] and
C == O+현재양봉틱수*PriceScale and
C[1] == O[1]+전봉양봉틱수*PriceScale Then
buy();
if O == C[1] and
C == O-현재음봉틱수*PriceScale and
C[1] == O[1]-전봉음봉틱수*PriceScale Then
sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
2019-11-27
115
글번호 133964
시스템
답변완료
지표
항상 수고가 많으십니다...꾸벅
아래수식에서 아래에서 위로, 위에서 아래로 바뀔때 소리로 알림을 나타낼 수 있을까여?
부탁합니다..
input : Left(3),right(3),n1(1),n2(2),n3(3),n4(4);
var : HH(0),LL(0),T(0);
if SwingHigh(1,H,left,right,left+right+1) != -1 then
{
T = 1;
HH = highest(H,right+1);
}
if Swinglow(1,L,left,right,left+right+1) != -1 then
{
T = -1;
LL = Lowest(L,right+1);
}
if T == 1 then
{
if H > HH Then
HH = H;
plot1(HH-n1);
plot2(HH-n2);
plot3(HH-n3);
plot4(HH-n4);
}
if T == -1 then
{
if L < LL Then
LL = L;
plot1(LL+n1);
plot2(LL+n2);
plot3(LL+n3);
plot4(LL+n4);
}
2019-11-27
121
글번호 133952
지표