답변완료
ttime 진입/delaytime buyprice 체크
입력한 시간대에 진입하는 수식에다 delaytime을 적용해보았는데
결과가 나오지 않습니다.
시간대로 진입하는 것도 buyprice를 체크할 수 있다면 가능하다고 보았는데요.
*********************************************************************************
input : ntime(090100),n(1);
input : delaytime(0);
input : range1(0.00),range2(1.20);
var : BuySetup(false),Buyprice(0),BD(0),BT(0), LL(0);
if MarketPosition <= 0 and
BuySetup == false and
stime == ntime or (stime > ntime and stime[1] < ntime) Then
{
if MaxEntries < n Then
{
BuySetup = true;
Buyprice = C;
BD = sdate;
BT = TimeToMinutes(stime);
LL = L;
}
if BuySetup == true and L < LL Then
LL = L;
if MarketPosition == 1 Then
BuySetup = false;
if MarketPosition <= 0 and BuySetup == true and Sdate == BD and
TimeToMinutes(stime) >= BT+delaytime and crossup(c,BuyPrice) and
LL <= BuyPrice-range1 and LL >= BuyPrice-range2 Then
buy("b");
}
2020-01-20
169
글번호 134683
시스템