예스스탁
예스스탁 답변
2021-05-21 11:47:43
안녕하세요
예스스탁입니다.
f h < Sprice2 Then
s2~s5 매도진입쪽의 if조건을 s1과 같이 수정하셔야 합니다.
가격이 하락해 지정한 값을 첫번째 터치할떄 진입해야 하는데
봉의 고가가 지정된 가격보다 낲고나서 진입하기에 오늘 s2가 진입을 못했습니다.
input : BPrice1(0.77845),BPrice2(0.77945),BPrice3(0.78045),Bprice4(0.78145),Bprice5(0.78245);
input : SPrice1(0.77645),SPrice2(0.77545),SPrice3(0.77445),Sprice4(0.77345),Sprice5(0.77245);
input : pt(0.0019);
if sDate != sDate[1] Then
SetStopEndofday(55500);
if Bdate != Bdate[1] Then
SetStopEndofday(0);
if h < Bprice1 Then
Buy("b1",AtStop,Bprice1);
if h < Bprice2 Then
Buy("b2",AtStop,Bprice2);
if h < Bprice3 Then
Buy("b3",AtStop,Bprice3);
if h < Bprice4 Then
Buy("b4",AtStop,Bprice4);
if h < Bprice5 Then
Buy("b5",AtStop,Bprice5);
if L > Sprice1 Then
Sell("s1",AtStop,Sprice1);
if L > Sprice2 Then
Sell("s2",AtStop,Sprice2);
if L > Sprice3 Then
Sell("s3",AtStop,Sprice3);
if L > Sprice4 Then
Sell("s4",AtStop,Sprice4);
if L > Sprice5 Then
Sell("s5",AtStop,Sprice5);
SetStopLoss(pt,PointStop);
즐거운 하루되세요
> 바다가좋아 님이 쓴 글입니다.
> 제목 : 피라미딩 주문이 안들어가는데 검토 좀 부탁드립니다.
> 안녕하세요.
저번에 알려주신 수식을 참고해서 피라미딩 매매식을 가격지정해서 하고 있는데 처음 매도에만
체결이 되고, 2번째는 매도 추가 진입이 안들어가드라구요.
피라미딩 조건 설정에서도 다른신호 진입으로 해놨거든요.
그런데 시뮬레이션 차트에서는 저 수식으로 하면 제가 생각했던대로 매매가 되는데,
전략실행 차트에서는 첫번째 매도 주문만 들어가고, 그 다음에는 안들어가지더라구요.
혹시 이게 처음 들어가 있는 것에대해 STOP 주문이 설정되어 있어서 그런건가요?
수동매매할때는 가장매매의심거래라고 떠서 일일이 추가 매수,매도 하기전에 STOP 걸었던것을
풀어주고 주문을 걸어서 하는데...
뭐가 잘못된건지 알려주시면 고맙겠습니다.
매매종목 : 해외선물(AUD) 5분봉
거래일자 : 2021.05.21
==============================================================
input : BPrice1(0.77845),BPrice2(0.77945),BPrice3(0.78045),Bprice4(0.78145),Bprice5(0.78245);
input : SPrice1(0.77645),SPrice2(0.77545),SPrice3(0.77445),Sprice4(0.77345),Sprice5(0.77245);
input : pt(0.0019);
if sDate != sDate[1] Then
SetStopEndofday(55500);
if Bdate != Bdate[1] Then
SetStopEndofday(0);
if h < Bprice1 Then
Buy("b1",AtStop,Bprice1);
if h < Bprice2 Then
Buy("b2",AtStop,Bprice2);
if h < Bprice3 Then
Buy("b3",AtStop,Bprice3);
if h < Bprice4 Then
Buy("b4",AtStop,Bprice4);
if h < Bprice5 Then
Buy("b5",AtStop,Bprice5);
if L > Sprice1 Then
Sell("s1",AtStop,Sprice1);
if h < Sprice2 Then
Sell("s2",AtStop,Sprice2);
if h < Sprice3 Then
Sell("s3",AtStop,Sprice3);
if h < Sprice4 Then
Sell("s4",AtStop,Sprice4);
if h < Sprice5 Then
Sell("s5",AtStop,Sprice5);
SetStopLoss(pt,PointStop);