input : Price(31850),진입횟수(1);
var : entry(0);
if Bdate != Bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if NextBarSdate == sDate and
NextBarStime >= 91500 and
H < price and
entry < 진입횟수 Then
Buy("b",AtStop,price);
★ 위 수식이 당일 장이 시작되는 09:00부터 생성되는 봉만으로 판단하여 작동될 수 있도록 변경 부탁드리겠습니다. 노고에 늘 감사드립니다.
답변 1
예스스탁
예스스탁 답변
2024-01-15 15:33:25
안녕하세요
예스스탁입니다.
올리신 수식에서 다른 부분은 이전봉의 값을 사용하는 부분이 없습니다.
NextBarStime >= 91500 9시 15분 이후로 되어 있어
NextBarStime >= 90000 9시로 변경해 드립니다.
input : Price(31850),진입횟수(1);
var : entry(0);
if Bdate != Bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if NextBarSdate == sDate and
NextBarStime >= 91500 and
H < price and
entry < 진입횟수 Then
Buy("b",AtStop,price);
즐거운 하루되세요
> autotra 님이 쓴 글입니다.
> 제목 : 수식 요청
> input : Price(31850),진입횟수(1);
var : entry(0);
if Bdate != Bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if NextBarSdate == sDate and
NextBarStime >= 91500 and
H < price and
entry < 진입횟수 Then
Buy("b",AtStop,price);
★ 위 수식이 당일 장이 시작되는 09:00부터 생성되는 봉만으로 판단하여 작동될 수 있도록 변경 부탁드리겠습니다. 노고에 늘 감사드립니다.