답변완료
수식수정부탁드립니다
나스닥 100포인트 이상 수익 발생 시 10분 매매정지 후 매매재개하는 수식을 만들었으나 잘 되지 않습니다
수정 부탁드립니다
감사합니다
------
input: 진입(2),청산(13),이동평균선(10),포인트(100);
var : hh(0),ll(0),mav(0),profit(0);
profit = MaxContractsHeld * 포인트;
#청산
ExitLong("EL", atstop, Lowest( Low , 청산 ));
ExitShort("ES", atstop,Highest( High , 청산 ));
hh = Highest(h,진입);
ll = Lowest(l,진입);
mav = ma(C,이동평균선);
if stime > 220000 or stime < 033000 Then
{
if PositionProfit(1) > profit Then
{
If TimeToMinutes(stime) > TimeToMinutes(ExitTime(1))+10 Then
if c > mav and c > hh[1] Then
Buy();
if c < mav and c < ll[1] Then
Sell();
}
Else
{
if c > mav and c > hh[1] Then
Buy();
if c < mav and c < ll[1] Then
Sell();
}
}
2020-08-28
736
글번호 141873
시스템