커뮤니티
매수 청산후 10봉이후에서 (특정조건 도달시) 진입되게 하는 식을 부탁드려요~~
2019-08-26 11:29:57
233
글번호 131428
역 추세 매매 수식인데요.. 매수 청산후 매수조건이 되더라도 최소 10봉이후에 적용되는 수식을 부탁드림니다. (10봉 이전에는 해당 조건이 되어도 진입하지 않게 )
기존 수식입니다.
# 쿠르드오일 심리도+RSI 60분봉 최적화
Input : RSIPeriod(14),RSI매수값(36),SimPeriod(14),심리도값(25);
Input : N1(2);
Input : EPeriod(40), EPercent(0.6);
Input : 즉시익절1(165),즉시손절1(100);
Input : 볼밴Period(50), 볼밴MultiD(1.65);
Input : CCIPeriod(90),CCI저가(-100);
input : 진입횟수(3);
var : BBmd(0),BBup(0),BBdn(0),CCIv(0),entry(0);
var :DNline1(0),RSIV(0),Simri(0);
RSIV = RSI(RSIPeriod);
Simri = Simrido(SimPeriod);
Dnline1 = EnvelopeDown(EPeriod, EPercent);
BBmd = ma(C,볼밴Period);
BBup = BollBandUp(볼밴Period,볼밴MultiD);
BBdn = BollBandDown(볼밴Period,볼밴MultiD);
CCIv = CCI(CCIPeriod);
if bdate != bdate[1] Then
Entry = 0;
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
entry = entry+1;
if entry < 진입횟수 then
{
if countif( RSIV < RSI매수값 and Simri < 심리도값 ,N1 ) == N1 and C < dnline1 and c < BBdn and cciv < CCI저가 Then
buy("매수");
}
if MarketPosition == 1 then
{
ExitLong("즉시익절1",AtLimit,EntryPrice+PriceScale*즉시익절1);
ExitLong("즉시손절1",AtStop,EntryPrice-PriceScale*즉시손절1);
}
if bdate != bdate[1] Then
SetStopEndofday(0);
if sdate != sdate[1] and DayOfWeek(sdate) == 6 Then
SetStopEndofday(050000);
답변 1
예스스탁 예스스탁 답변
2019-08-26 13:09:30
안녕하세요
예스스탁입니다.
Input : RSIPeriod(14),RSI매수값(36),SimPeriod(14),심리도값(25);
Input : N1(2);
Input : EPeriod(40), EPercent(0.6);
Input : 즉시익절1(165),즉시손절1(100);
Input : 볼밴Period(50), 볼밴MultiD(1.65);
Input : CCIPeriod(90),CCI저가(-100);
input : 진입횟수(3);
var : BBmd(0),BBup(0),BBdn(0),CCIv(0),entry(0);
var :DNline1(0),RSIV(0),Simri(0);
RSIV = RSI(RSIPeriod);
Simri = Simrido(SimPeriod);
Dnline1 = EnvelopeDown(EPeriod, EPercent);
BBmd = ma(C,볼밴Period);
BBup = BollBandUp(볼밴Period,볼밴MultiD);
BBdn = BollBandDown(볼밴Period,볼밴MultiD);
CCIv = CCI(CCIPeriod);
if bdate != bdate[1] Then
Entry = 0;
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
entry = entry+1;
if entry < 진입횟수 and (TotalTrades == 0 or (TotalTrades >= 1 and BarsSinceExit(1) >= 10)) then
{
if countif( RSIV < RSI매수값 and Simri < 심리도값 ,N1 ) == N1 and C < dnline1 and c < BBdn and cciv < CCI저가 Then
buy("매수");
}
if MarketPosition == 1 then
{
ExitLong("즉시익절1",AtLimit,EntryPrice+PriceScale*즉시익절1);
ExitLong("즉시손절1",AtStop,EntryPrice-PriceScale*즉시손절1);
}
if bdate != bdate[1] Then
SetStopEndofday(0);
if sdate != sdate[1] and DayOfWeek(sdate) == 6 Then
SetStopEndofday(050000);
즐거운 하루되세요
> 이형지 님이 쓴 글입니다.
> 제목 : 매수 청산후 10봉이후에서 (특정조건 도달시) 진입되게 하는 식을 부탁드려요~~
> 역 추세 매매 수식인데요.. 매수 청산후 매수조건이 되더라도 최소 10봉이후에 적용되는 수식을 부탁드림니다. (10봉 이전에는 해당 조건이 되어도 진입하지 않게 )
기존 수식입니다.
# 쿠르드오일 심리도+RSI 60분봉 최적화
Input : RSIPeriod(14),RSI매수값(36),SimPeriod(14),심리도값(25);
Input : N1(2);
Input : EPeriod(40), EPercent(0.6);
Input : 즉시익절1(165),즉시손절1(100);
Input : 볼밴Period(50), 볼밴MultiD(1.65);
Input : CCIPeriod(90),CCI저가(-100);
input : 진입횟수(3);
var : BBmd(0),BBup(0),BBdn(0),CCIv(0),entry(0);
var :DNline1(0),RSIV(0),Simri(0);
RSIV = RSI(RSIPeriod);
Simri = Simrido(SimPeriod);
Dnline1 = EnvelopeDown(EPeriod, EPercent);
BBmd = ma(C,볼밴Period);
BBup = BollBandUp(볼밴Period,볼밴MultiD);
BBdn = BollBandDown(볼밴Period,볼밴MultiD);
CCIv = CCI(CCIPeriod);
if bdate != bdate[1] Then
Entry = 0;
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
entry = entry+1;
if entry < 진입횟수 then
{
if countif( RSIV < RSI매수값 and Simri < 심리도값 ,N1 ) == N1 and C < dnline1 and c < BBdn and cciv < CCI저가 Then
buy("매수");
}
if MarketPosition == 1 then
{
ExitLong("즉시익절1",AtLimit,EntryPrice+PriceScale*즉시익절1);
ExitLong("즉시손절1",AtStop,EntryPrice-PriceScale*즉시손절1);
}
if bdate != bdate[1] Then
SetStopEndofday(0);
if sdate != sdate[1] and DayOfWeek(sdate) == 6 Then
SetStopEndofday(050000);