커뮤니티

수식부탁드립니다.

프로필 이미지
라떼처럼
2018-07-02 17:51:52
185
글번호 120187
답변완료
수식부탁드립니다. 감사합니다. 1. 아래수식은 기본적으로 제공하는 StochasticsD 과열권, 침체권 강조식 입니다. 그림과 같이 과열권, 침체권의 평균을 선으로 연장하여 현재봉까지 표현하고 싶습니다. 매수 : 과열권의 평균이 상승하고 있고, 과열권 진입시 이전 평균치보다 높으면 매수 매도 : 침체권의 평균이 하락하고 있고, 침체권 진입시 이전 평균치보다 낮으면 매도 과열권 Input : Period(12), Period1(5), Period2(5); Value1 = StochasticsD(Period,Period1,PEriod2); if value1 > 80 Then begin PlotPaintBar(High, Low, "과열권",MAGENTA); end else NoPlot(1); 침체권 Input : Period(12), Period1(5), Period2(5); Value1 = StochasticsD(Period,Period1,PEriod2); if value1 < 20 Then begin PlotPaintBar(High, Low, "과열권",LGREEN); end else NoPlot(1); 2. 청산수식 하나 추가 부탁드립니다. 감사합니다. 매수포지션일때 var1 < var2 하고 진입가 대비 -25 틱 이면 청산 매도포지션일때 var1 > var2 하고 진입가 대비 -25 틱 이면 청산 if MarketPosition == 1 Then{ BH = highest(H,BarsSinceEntry); if MaxEntries == 1 Then HE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) > HE Then HE = LatestEntryPrice(0); if var1 < var2 Then{ ExitLong("B오진입); } } if MarketPosition == -1 Then{ SL = Lowest(L,BarsSinceEntry); if MaxEntries == 1 Then LE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) < LE Then LE = LatestEntryPrice(0); if var1 > var2 Then{ ExitShort("S오진입"); } }
시스템
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2018-07-02 13:14:26

안녕하세요 예스스탁입니다. 1 Input : Period(12), Period1(5), Period2(5); var : H1(0),L1(0),H2(0),L2(0); Value1 = StochasticsD(Period,Period1,PEriod2); Condition1 = value1 > 80; Condition2 = value1 < 20; if Condition1 == true and Condition1[1] == false Then{ H1 = H; L1 = L; } if Condition1 == true then { if h > H1 Then H1 = h; if l < L1 Then L1 = l; } if Condition1 == false and Condition1[1] == true Then var1 = (H1+L1)/2; if Condition2 == true and Condition2[1] == false Then{ H2 = H; L2 = L; } if Condition2 == true then { if h > H2 Then H2 = h; if l < L2 Then L2 = l; } if Condition2 == false and Condition2[1] == true Then var2 = (H2+L2)/2; plot1(var1); plot2(var2); 2 if MarketPosition == 1 Then { BH = highest(H,BarsSinceEntry); if MaxEntries == 1 Then HE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) > HE Then HE = LatestEntryPrice(0); if var1 < var2 Then { ExitLong("B오진입",AtStop,EntryPrice-PriceScale*25); } } if MarketPosition == -1 Then { SL = Lowest(L,BarsSinceEntry); if MaxEntries == 1 Then LE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) < LE Then LE = LatestEntryPrice(0); if var1 > var2 Then { ExitShort("S오진입",AtStop,EntryPrice+PriceScale*25); } } 즐거운 하루되세요 > 라떼처럼 님이 쓴 글입니다. > 제목 : 수식부탁드립니다. > 수식부탁드립니다. 감사합니다. 1. 아래수식은 기본적으로 제공하는 StochasticsD 과열권, 침체권 강조식 입니다. 그림과 같이 과열권, 침체권의 평균을 선으로 연장하여 현재봉까지 표현하고 싶습니다. 매수 : 과열권의 평균이 상승하고 있고, 과열권 진입시 이전 평균치보다 높으면 매수 매도 : 침체권의 평균이 하락하고 있고, 침체권 진입시 이전 평균치보다 낮으면 매도 과열권 Input : Period(12), Period1(5), Period2(5); Value1 = StochasticsD(Period,Period1,PEriod2); if value1 > 80 Then begin PlotPaintBar(High, Low, "과열권",MAGENTA); end else NoPlot(1); 침체권 Input : Period(12), Period1(5), Period2(5); Value1 = StochasticsD(Period,Period1,PEriod2); if value1 < 20 Then begin PlotPaintBar(High, Low, "과열권",LGREEN); end else NoPlot(1); 2. 청산수식 하나 추가 부탁드립니다. 감사합니다. 매수포지션일때 var1 < var2 하고 진입가 대비 -25 틱 이면 청산 매도포지션일때 var1 > var2 하고 진입가 대비 -25 틱 이면 청산 if MarketPosition == 1 Then{ BH = highest(H,BarsSinceEntry); if MaxEntries == 1 Then HE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) > HE Then HE = LatestEntryPrice(0); if var1 < var2 Then{ ExitLong("B오진입); } } if MarketPosition == -1 Then{ SL = Lowest(L,BarsSinceEntry); if MaxEntries == 1 Then LE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) < LE Then LE = LatestEntryPrice(0); if var1 > var2 Then{ ExitShort("S오진입"); } }
프로필 이미지

라떼처럼

2018-07-02 15:10:25

매수 매도 식이 보함이 안되어 있습니다 추가 부탁드림디다 매수: 과열권 평균 plot1(var1)가 상승하고 있고, 과열권 진입시 매수 매도: 침체권의 평균 plot2(var2)가 하락하고 있고, 침체권 진입시 매도 > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수식부탁드립니다. > 안녕하세요 예스스탁입니다. 1 Input : Period(12), Period1(5), Period2(5); var : H1(0),L1(0),H2(0),L2(0); Value1 = StochasticsD(Period,Period1,PEriod2); Condition1 = value1 > 80; Condition2 = value1 < 20; if Condition1 == true and Condition1[1] == false Then{ H1 = H; L1 = L; } if Condition1 == true then { if h > H1 Then H1 = h; if l < L1 Then L1 = l; } if Condition1 == false and Condition1[1] == true Then var1 = (H1+L1)/2; if Condition2 == true and Condition2[1] == false Then{ H2 = H; L2 = L; } if Condition2 == true then { if h > H2 Then H2 = h; if l < L2 Then L2 = l; } if Condition2 == false and Condition2[1] == true Then var2 = (H2+L2)/2; plot1(var1); plot2(var2); 2 if MarketPosition == 1 Then { BH = highest(H,BarsSinceEntry); if MaxEntries == 1 Then HE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) > HE Then HE = LatestEntryPrice(0); if var1 < var2 Then { ExitLong("B오진입",AtStop,EntryPrice-PriceScale*25); } } if MarketPosition == -1 Then { SL = Lowest(L,BarsSinceEntry); if MaxEntries == 1 Then LE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) < LE Then LE = LatestEntryPrice(0); if var1 > var2 Then { ExitShort("S오진입",AtStop,EntryPrice+PriceScale*25); } } 즐거운 하루되세요 > 라떼처럼 님이 쓴 글입니다. > 제목 : 수식부탁드립니다. > 수식부탁드립니다. 감사합니다. 1. 아래수식은 기본적으로 제공하는 StochasticsD 과열권, 침체권 강조식 입니다. 그림과 같이 과열권, 침체권의 평균을 선으로 연장하여 현재봉까지 표현하고 싶습니다. 매수 : 과열권의 평균이 상승하고 있고, 과열권 진입시 이전 평균치보다 높으면 매수 매도 : 침체권의 평균이 하락하고 있고, 침체권 진입시 이전 평균치보다 낮으면 매도 과열권 Input : Period(12), Period1(5), Period2(5); Value1 = StochasticsD(Period,Period1,PEriod2); if value1 > 80 Then begin PlotPaintBar(High, Low, "과열권",MAGENTA); end else NoPlot(1); 침체권 Input : Period(12), Period1(5), Period2(5); Value1 = StochasticsD(Period,Period1,PEriod2); if value1 < 20 Then begin PlotPaintBar(High, Low, "과열권",LGREEN); end else NoPlot(1); 2. 청산수식 하나 추가 부탁드립니다. 감사합니다. 매수포지션일때 var1 < var2 하고 진입가 대비 -25 틱 이면 청산 매도포지션일때 var1 > var2 하고 진입가 대비 -25 틱 이면 청산 if MarketPosition == 1 Then{ BH = highest(H,BarsSinceEntry); if MaxEntries == 1 Then HE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) > HE Then HE = LatestEntryPrice(0); if var1 < var2 Then{ ExitLong("B오진입); } } if MarketPosition == -1 Then{ SL = Lowest(L,BarsSinceEntry); if MaxEntries == 1 Then LE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) < LE Then LE = LatestEntryPrice(0); if var1 > var2 Then{ ExitShort("S오진입"); } }