커뮤니티
수식 부탁드립니다.
2019-01-31 12:09:45
155
글번호 125820
스토케스틱 10 5 5 상75% 하25% 설정하고
스토케스틱이 하25% 아래로 돌파이후 상승 돌파하면 매수 익절은 상75% 닿으면 즉시함
스토케스틱이 상75% 위로 돌파이후 하락 돌파하면 매도 익절은 하25% 닿으면 즉시함
손절은 매수 후 다시 하25% 아래로 돌파시 함
매도 후 다시 상75% 위로 돌파시 함
Input : Period(10), Period1(5), Period2(5);
var : StoK(0),StoD(0);
StoK = StochasticsK(Period,Period1);
StoD = StochasticsD(Period,Period1,Period2);
Plot1(StoK, "StochasticsK");
Plot2(StoD, "StochasticsD");
PlotBaseLine1(25, "기준선25");
PlotBaseLine2(75, "기준선75");
답변 1
예스스탁 예스스탁 답변
2019-01-31 15:07:05
안녕하세요
예스스탁입니다.
Input : Period(10), Period1(5), Period2(5);
var : StoK(0),StoD(0);
StoK = StochasticsK(Period,Period1);
StoD = StochasticsD(Period,Period1,Period2);
if crossup(stok,25) Then
buy();
if MarketPosition == 1 and crossup(stok,75) Then
exitlong();
if CrossDown(stok,75) Then
sell();
if MarketPosition == -1 and CrossDown(stok,25) Then
ExitShort();
즐거운 하루되세요
> 선물대장 님이 쓴 글입니다.
> 제목 : 수식 부탁드립니다.
> 스토케스틱 10 5 5 상75% 하25% 설정하고
스토케스틱이 하25% 아래로 돌파이후 상승 돌파하면 매수 익절은 상75% 닿으면 즉시함
스토케스틱이 상75% 위로 돌파이후 하락 돌파하면 매도 익절은 하25% 닿으면 즉시함
손절은 매수 후 다시 하25% 아래로 돌파시 함
매도 후 다시 상75% 위로 돌파시 함
Input : Period(10), Period1(5), Period2(5);
var : StoK(0),StoD(0);
StoK = StochasticsK(Period,Period1);
StoD = StochasticsD(Period,Period1,Period2);
Plot1(StoK, "StochasticsK");
Plot2(StoD, "StochasticsD");
PlotBaseLine1(25, "기준선25");
PlotBaseLine2(75, "기준선75");
다음글
이전글