안녕하세요?
아래의 수식에서 진입만 조금 바꾸고싶습니다.
감사합니다.
[현재]
정배열에서 갭상승 음봉에 매도
역배열에서 갭하락 양봉에 매수
[수정후]
정배열에서 갭하락한 도지에 매도
역배열에서 갭상승한 도지에 매수
input : P1(5),P2(20);
input : 익절틱수(50),손절틱수(50),진입횟수(3);
var : entry(0);
var1 = ma(c,p1);
var2 = ma(C,P2);
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 VAR1 < Var2 and entry < 진입횟수 and MarketPosition == 0 and O < C[1] and C == O+PriceScale then
Buy();
if var1 > Var2 and entry < 진입횟수 and MarketPosition == 0 and O > C[1] and C == O-PriceScale then
Sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
답변 1
예스스탁
예스스탁 답변
2022-01-17 10:17:31
안녕하세요
예스스탁입니다.
input : P1(5),P2(20);
input : 익절틱수(50),손절틱수(50),진입횟수(3);
var : entry(0);
var1 = ma(c,p1);
var2 = ma(C,P2);
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 VAR1 < Var2 and entry < 진입횟수 and MarketPosition == 0 and O > C[1] and C == O then
Buy();
if var1 > Var2 and entry < 진입횟수 and MarketPosition == 0 and O < C[1] and C == O then
Sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 대구어린울프 님이 쓴 글입니다.
> 제목 : 도움 요청드립니다.
> 안녕하세요?
아래의 수식에서 진입만 조금 바꾸고싶습니다.
감사합니다.
[현재]
정배열에서 갭상승 음봉에 매도
역배열에서 갭하락 양봉에 매수
[수정후]
정배열에서 갭하락한 도지에 매도
역배열에서 갭상승한 도지에 매수
input : P1(5),P2(20);
input : 익절틱수(50),손절틱수(50),진입횟수(3);
var : entry(0);
var1 = ma(c,p1);
var2 = ma(C,P2);
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 VAR1 < Var2 and entry < 진입횟수 and MarketPosition == 0 and O < C[1] and C == O+PriceScale then
Buy();
if var1 > Var2 and entry < 진입횟수 and MarketPosition == 0 and O > C[1] and C == O-PriceScale then
Sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);