커뮤니티
부탁드립니다.
2017-08-15 04:51:36
175
글번호 111977
그림에 설명드렸습니다.
잘 부탁드립니다.
답변 1
예스스탁 예스스탁 답변
2017-08-14 10:16:47
안녕하세요
예스스탁입니다.
input : P(5),sto1(12),sto2(5);
Var : 기준선(0), 전환선(0), 선행스팬1(0), 선행스팬2(0);
var : 구름상단(0),구름하단(0),mav(0),stok(0);
전환선 = (Highest(H, 9) + Lowest(L, 9)) / 2;
기준선 = (Highest(H, 26) + Lowest(L, 26)) / 2;
선행스팬1 = (전환선[25] + 기준선[25]) / 2 ;
선행스팬2 = (Highest(H, 52)[25] + Lowest(L, 52)[25]) / 2;
구름상단 = max(선행스팬1,선행스팬2);
구름하단 = max(선행스팬1,선행스팬2);
mav = ma(c,5);
stok = StochasticsK(sto1,sto2);
if MarketPosition <= 0 and TotalTrades == TotalTrades[1] and
L > 구름상단 and L > mav Then
buy("b1",atlimit,mav,2);
if MarketPosition == 1 and MaxEntries == 1 and L > mav Then
buy("b2",atlimit,mav,1);
if MarketPosition >= 0 and TotalTrades == TotalTrades[1] and
H < 구름하단 and H < mav Then
sell("s1",atlimit,mav,2);
if MarketPosition == -1 and MaxEntries == 1 and H < mav Then
sell("s2",atlimit,mav,1);
if MarketPosition == 1 then{
exitlong("bx1",AtStop,LatestEntryPrice(0)-PriceScale*15);
if CrossDown(stok,80) Then
exitlong("bx2");
}
if MarketPosition == -1 then{
ExitShort("sx1",AtStop,LatestEntryPrice(0)+PriceScale*15);
if CrossUp(stok,20) Then
ExitShort();
}
#7틱익절
SetStopProfittarget(PriceScale*7,PointStop);
즐거운 하루되세요
> 매일상승 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> 그림에 설명드렸습니다.
잘 부탁드립니다.