답변완료
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
시스템
답변완료
문의
별첨1. 필터에 걸리지 않았고 고점갱신수가 높을 때
별첨2. 필터에 걸렸고 고점갱신수가 높을 때
별첨3. 필터에 걸렸고 고점갱신수가 낮을 때
-별첨3의 조건에서는 b3 진입이 많이 발생해야 하는데 진입횟수가 너무 적습니다.
수식을 살펴주세요.
***************************************************************************************
안녕하세요
예스스탁입니다.
input : 진입시간(090000),n(5);
input : b1(20),b2(20);
input : upfilter(1.20);
var : T1(0),entry(0),LL(0),EH(0),hh(0),hcnt(0);
if Bdate != Bdate[1] Then
{
T1 = TotalTrades;
hh = h;
hcnt = 0;
Condition1 == false;
}
else
{
if h > hh Then
{
hh = h;
hcnt = hcnt+1;
if MarketPosition == 0 and Condition1 == false and hcnt == n Then
{
Condition1 = true;
buy("b3");
}
}
}
if MarketPosition == 0 Then
entry = TotalTrades-T1;
Else
entry = (TotalTrades-T1)+1;
if MarketPosition == 0 and entry == 0 and stime >= 진입시간 and C >= daylow+PriceScale*B1 and C[1] < daylow+PriceScale*B1 and C < daylow+upfilter and Condition1 == false Then
buy("b1",AtMarket);
if TotalTrades > TotalTrades[1] Then
LL = L;
if L < LL Then
LL = L;
if MarketPosition == 0 and entry == 1 and stime >= 진입시간 and C >= LL+PriceScale*B2 and C[1] < LL+PriceScale*B2 and C < daylow+upfilter and Condition1 == false Then
buy("b2",AtMarket);
즐거운 하루되세요
> 좌오비우오비 님이 쓴 글입니다.
> 제목 : 문의
> b1,b2가 upfilter로 진입하지 않는 상황이 발생하는 경우에
b3으로 추가진입하는 수식을 요청드립니다.
-당일 시가기준으로 고가갱신이 N회 이상이면 b3 진입
-당일 b3 직전거래는 없어야 함
-당일 b3 거래는 1번임.
-당일 b3 거래발생하면 b1,b2 거래는 하지 않음
**************************************************************************************
input : 진입시간(090000);
input : b1(20),b2(20);
input : upfilter(1.20);
var : T1(0),entry(0),LL(0),EH(0);
if Bdate != Bdate[1] Then
T1 = TotalTrades;
if MarketPosition == 0 Then
entry = TotalTrades-T1;
Else
entry = (TotalTrades-T1)+1;
if MarketPosition == 0 and entry == 0 and stime >= 진입시간 and C >= daylow+PriceScale*B1 and C[1] < daylow+PriceScale*B1 and C < daylow+upfilter Then
buy("b1,AtMarket");
if TotalTrades > TotalTrades[1] Then
LL = L;
if L < LL Then
LL = L;
if MarketPosition == 0 and entry == 1 and stime >= 진입시간 and C >= LL+PriceScale*B2 and C[1] < LL+PriceScale*B2 and C < daylow+upfilter Then
buy("b2,AtMarket");
2019-12-26
187
글번호 134677
시스템