답변완료
시스템 작성의뢰
수고 하십니다 !
시스템 수식이 매매를 체결하여 청산을 한 다음에 매매를 다시
체결을 하는 것은 10틱 이상 차이가 났을떄 (예를 들자면 매도 체결을 하여 매수 청산을
한다음 매수 청산 틱에서 10틱 이상(상승 하락 관계없이) 차이가 나고 수식 조건이 되면
매매를 체결 하는 수식을 부탁 드립니다.
수고 하세요 ~~~
Input : Period1(1), Period2(15), Period3(30), Period4(60), Period5(120),period6(240),Period7(480), Period8(960), Period9(1920), Period10(3840),period11(7680);
var : Sma1(0),Sma2(0),Sma3(0),Sma4(0),Sma5(0),sma6(0),Sma7(0),Sma8(0),Sma9(0),Sma10(0),sma11(0),OBVV(0),PositiveVolumeIndex(0),dpo(0);
Sma1 = ma(C,Period1);
Sma2 = ma(C,Period2);
Sma3 = ma(C,Period3);
Sma4 = ma(C,Period4);
Sma5 = ma(C,Period5);
sma6 = ma(c,period6);
Sma7 = ma(C,Period7);
Sma8 = ma(C,Period8);
Sma9 = ma(C,Period9);
Sma10 = ma(C,Period10);
sma11 = ma(c,period11);
if MarketPosition <= 0 and sma1 < sma6 -pricescale*10 and sma1 < sma2 and sma2 < sma3 and sma3 < sma4 and sma4 <sma5 and sma5 and
sma5 < sma6 and sma6 < sma7 and CrossDown (sma1,sma2) Then Buy ("종+");
if MarketPosition >= 0 and sma1 > sma6 +pricescale*10 and sma1 > sma2 and sma2 > sma3 and sma3 > sma4 and sma4 > sma5 and
sma5 > sma6 and sma6 > sma7 and CrossUp(sma1,sma2) Then Sell ("종-");
if MarketPosition <= 0 and sma1 < sma6 -pricescale*9 and sma1 < sma2 and sma2 < sma3 and sma3 < sma4 and sma4 <sma5 and sma5 and
sma5 < sma6 and sma6 < sma7 and sma7 < sma8 and sma8 < sma9 and sma9 < sma10 and sma10 < sma11 and CrossDown (sma1,sma2) Then Buy ("종수");
if MarketPosition >= 0 and sma1 > sma6 +pricescale*9 and sma1 > sma2 and sma2 > sma3 and sma3 > sma4 and sma4 > sma5 and
sma5 > sma6 and sma6 > sma7 and sma7 > sma8 and sma8 > sma9 and sma9 > sma10 and sma10 > sma11 and CrossUp (sma1,sma2) Then Sell ("종도");
SetStopTrailing(PriceScale*3,PriceScale*6,PointStop);
SetStopLoss(PriceScale*30,PointStop);
2021-08-12
890
글번호 151470
시스템
답변완료
검토부탁드립니다
안녕하세요
작성해주신 수식 감사합니다.
아래수식이 20 일간의 고점평균, 저점평균의 4 등분선을 작성한 수식인데
혹시 고점평균,저점평균이 아닌 20일간의 고점,저점의 4 등분선 수식이 아닌가해서요..
고점의 20 일간의 합계를 나눈 수식이 안보여서서요
확인좀 부탁드립니다.
input : N(20);
var : HH(0),LL(0),cnt(0);
var : tx1(0),tx2(0),tx3(0),tx4(0),tx5(0);
hh = 0;
ll = 0;
For cnt = 0 to N-1
{
if hh == 0 or (hh > 0 and DayHigh(cnt) > hh) Then
hh = DayHigh(cnt);
if ll == 0 or (ll > 0 and DayLow(cnt) < ll) Then
ll = DayLow(cnt);
}
if hh > 0 and ll > 0 Then
{
var1 = hh;
var2 = ll+(hh-ll)*0.75;
var3 = ll+(hh-ll)*0.50;
var4 = ll+(hh-ll)*0.25;
var5 = ll;
}
Plot1(Var1,"최고",RGB(252,102,2));
Plot2(Var2,"75%",RGB(232,251,251));
Plot3(Var3,"50%",RGB(183,221,33));
Plot4(Var4,"25%",RGB(32,215,222));
Plot5(Var5,"최저",RGB(7,86,247));
Text_Delete(tx1);
Text_Delete(tx2);
Text_Delete(tx3);
Text_Delete(tx4);
Text_Delete(tx5);
tx1 = Text_New(NextBarSdate,NextBarStime,var1,"N일 "+NumToStr(var1,2));
tx2 = Text_New(NextBarSdate,NextBarStime,var2,"N일 "+NumToStr(var2,2));
tx3 = Text_New(NextBarSdate,NextBarStime,var3,"N일 "+NumToStr(var3,2));
tx4 = Text_New(NextBarSdate,NextBarStime,var4,"N일 "+NumToStr(var4,2));
tx5 = Text_New(NextBarSdate,NextBarStime,var5,"N일 "+NumToStr(var5,2));
Text_SetStyle(tx1,0,1);
Text_SetStyle(tx2,0,1);
Text_SetStyle(tx3,0,1);
Text_SetStyle(tx4,0,1);
Text_SetStyle(tx5,0,1);
2021-08-11
1134
글번호 151465
지표