input : Price(52300),진입횟수(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 NextBarSdate == CurrentDate and NextBarOpen < Price) or
(NextBarSdate == sDate and CurrentDate == sDate and
H < price and entry < 진입횟수 and DayOpen < Price) Then
Buy("b",AtStop,price);
------------------------------------------------------------------------------------
09:00에 시초가가 52,300원보다 높은 가격에서 시작하였으나,
장중 가격이 내려와서 52,300원 하회 후 재차 52,300원을 돌파하는 경우에는 매수할 수 있도록 수식 조정 부탁드립니다.
늘 노고에 감사드립니다.
답변 1
예스스탁
예스스탁 답변
2025-06-16 14:41:02
안녕하세요
예스스탁입니다.
input : Price(52300),진입횟수(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 NextBarSdate == CurrentDate and NextBarOpen < Price) or
(NextBarSdate == sDate and CurrentDate == sDate and H < price and entry < 진입횟수) Then
Buy("b",AtStop,price);
즐거운 하루되세요
> autotra 님이 쓴 글입니다.
> 제목 : 수식 작성 문의
> input : Price(52300),진입횟수(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 NextBarSdate == CurrentDate and NextBarOpen < Price) or
(NextBarSdate == sDate and CurrentDate == sDate and
H < price and entry < 진입횟수 and DayOpen < Price) Then
Buy("b",AtStop,price);
------------------------------------------------------------------------------------
09:00에 시초가가 52,300원보다 높은 가격에서 시작하였으나,
장중 가격이 내려와서 52,300원 하회 후 재차 52,300원을 돌파하는 경우에는 매수할 수 있도록 수식 조정 부탁드립니다.
늘 노고에 감사드립니다.