커뮤니티
수식수정문의
2018-06-08 17:17:37
124
글번호 119593
아랫수식 재요청드립니다.
전날일봉을 기준으로
전날봉이 양봉이면 매수만 진입청산
음봉이라면 매도만 진입청산
으로 조건1개만 추가부탁드립니다.
var : tcond(false);
if stime >= 160000 and stime[1] < 160000 Then
tcond = true;
if stime >= 020000 and stime[1] < 020000 Then
tcond = true;
if tcond == true then
{
if crossup(c,dayopen+PriceScale*3) Then
buy();
if CrossDown(c,dayopen+PriceScale*3) Then
sell();
}
SetStopProfittarget(PriceScale*30,PointStop);
SetStopLoss(PriceScale*15,PointStop);
답변 1
예스스탁 예스스탁 답변
2018-06-11 10:53:29
안녕하세요
예스스탁입니다.
var : tcond(false);
if stime >= 160000 and stime[1] < 160000 Then
tcond = true;
if stime >= 020000 and stime[1] < 020000 Then
tcond = true;
if tcond == true then
{
if crossup(c,dayopen+PriceScale*3) Then
{
if DayClose(1) > dayopen(1) Then
buy();
Else
ExitShort();
}
if CrossDown(c,dayopen+PriceScale*3) Then
{
if DayClose(1) < dayopen(1) Then
sell();
Else
ExitLong();
}
}
SetStopProfittarget(PriceScale*30,PointStop);
SetStopLoss(PriceScale*15,PointStop);
즐거운 하루되세요
> 렉쳐 님이 쓴 글입니다.
> 제목 : 수식수정문의
> 아랫수식 재요청드립니다.
전날일봉을 기준으로
전날봉이 양봉이면 매수만 진입청산
음봉이라면 매도만 진입청산
으로 조건1개만 추가부탁드립니다.
var : tcond(false);
if stime >= 160000 and stime[1] < 160000 Then
tcond = true;
if stime >= 020000 and stime[1] < 020000 Then
tcond = true;
if tcond == true then
{
if crossup(c,dayopen+PriceScale*3) Then
buy();
if CrossDown(c,dayopen+PriceScale*3) Then
sell();
}
SetStopProfittarget(PriceScale*30,PointStop);
SetStopLoss(PriceScale*15,PointStop);