알에스아이 50하향돌파 매수. 50상향돌파 매수.
익절400틱.
알에스아이 50보다 캔들이 아래의 있어야 하고
첫번째,매수한 그 캔들의 저가보다 낮게 봉완성되면 청산.
오전9시 시작.. 다음날 오전6시50분. 진입한 종목이 있다면 모두청산하고 시스템 완전종료.
답변 1
예스스탁
예스스탁 답변
2021-12-27 11:14:12
안녕하세요
예스스탁입니다.
Input : RSIP(9);
input : StartTime(90000),EndTime(65000);
Var : RSIV(0);
var : Tcond(false);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
RSIV = RSI(RSIP);
if Tcond == true Then
{
if CrossUp(RSIV,50) or CrossDown(RSIV,50) Then
Buy();
if MarketPosition == 1 Then
{
if RSIV < 50 Then
{
if CurrentContracts == MaxContracts and C > H[BarsSinceEntry] Then
ExitLong("bx");
}
}
}
SetStopProfittarget(PriceScale*400,PointStop);
즐거운 하루되세요
> 아침 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> 알에스아이 50하향돌파 매수. 50상향돌파 매수.
익절400틱.
알에스아이 50보다 캔들이 아래의 있어야 하고
첫번째,매수한 그 캔들의 저가보다 낮게 봉완성되면 청산.
오전9시 시작.. 다음날 오전6시50분. 진입한 종목이 있다면 모두청산하고 시스템 완전종료.