커뮤니티
수식 확인부탁 드립니다.
2019-03-05 18:06:14
199
글번호 126750
아래 수식을 예스스탁에 사용 할수 있도록 변경 및 이상 여부 확인 부탁 드립니다.
Params : Period1(2), Period2(10);
Params : Period3(3), Period4(15);
Params : Period5(5), Period6(20);
Params : Period10(14), SignalPeriod(9), BaseLine(30);
Vars : entryVol(0), ExBlockCOND(False), blockCond(True);
Vars : TickSize(0);
Ticksize = onetick * pricescale;
V1 = wAverage(C, Period1);
v2 = triAverage(C, Period2);
V3 = wAverage(C, Period3);
v4 = triAverage(C, Period4);
V5 = wAverage(C, Period5);
v6 = triAverage(C, Period6);
V10 = ADXApplied(Period10);
V11 = BaseLine;
Cond10 = CrossUp(V10 , SignalPeriod);
If Baseline < V10 Then Cond11 = true
Else Cond11 = False;
If pPrice > 0 And v1 > v2 Then
Begin
If pPrice < cPrice And CrossuP(v3, v4) And Cond10 and Cond11 Then Buy("B")
Else If pPrice > cPrice And CrossUp(V5 , V6) And Cond10 and Cond11 Then Buy("B2");
End;
If CurrentContracts = entryVol And (False = ExBlockCOND) And (H < EntryPrice + (7 * TickSize)) Then
ExitLong("청산1", Atlimit, EntryPrice + (7 * TickSize), DEF, 1);
답변 1
예스스탁 예스스탁 답변
2019-03-06 15:15:54
안녕하세요
예스스탁입니다.
올려주신 수식에 pPrice,cPrice가 있는데 해당값이 어떤 값인지 모르겠습니다.
해당 값 제외하고 수식을려드립니다.
죄송하지만 해당 부분은 사용자분이 대체해 주셔야 할 것 같습니다.
input : Period1(2), Period2(10);
input : Period3(3), Period4(15);
input : Period5(5), Period6(20);
input : Period10(14), SignalPeriod(9), BaseLine(30);
Vars : entryVol(0), ExBlockCOND(False), blockCond(True);
Vars : TickSize(0);
Ticksize = pricescale;
var1 = wma(C, Period1);
var2 = ma(ma(ma(C, Period2),Period2),Period2);
var3 = wma(C, Period3);
var4 = ma(ma(ma(C, Period4),Period4),Period4);
var5 = wma(C, Period5);
var6 = ma(ma(ma(C, Period6),Period6),Period6);
var10 = ADX(Period10);
var11 = BaseLine;
condition10 = CrossUp(var10 , SignalPeriod);
If Baseline < var10 Then
condition11 = true;
Else
condition11 = False;
If pPrice > 0 And var1 > var2 Then
Begin
If pPrice < cPrice And CrossuP(var3, var4) And condition10 and condition11 Then
Buy("B");
Else If pPrice > cPrice And CrossUp(var5 , var6) And condition10 and condition11 Then
Buy("B2");
End;
If CurrentContracts == entryVol And (False == ExBlockCOND) And (H < EntryPrice + (7 * TickSize)) Then
ExitLong("청산1", Atlimit, EntryPrice + (7 * TickSize),"", 1,2);
즐거운 하루되세요
> 뎅이요 님이 쓴 글입니다.
> 제목 : 수식 확인부탁 드립니다.
> 아래 수식을 예스스탁에 사용 할수 있도록 변경 및 이상 여부 확인 부탁 드립니다.
Params : Period1(2), Period2(10);
Params : Period3(3), Period4(15);
Params : Period5(5), Period6(20);
Params : Period10(14), SignalPeriod(9), BaseLine(30);
Vars : entryVol(0), ExBlockCOND(False), blockCond(True);
Vars : TickSize(0);
Ticksize = onetick * pricescale;
V1 = wAverage(C, Period1);
v2 = triAverage(C, Period2);
V3 = wAverage(C, Period3);
v4 = triAverage(C, Period4);
V5 = wAverage(C, Period5);
v6 = triAverage(C, Period6);
V10 = ADXApplied(Period10);
V11 = BaseLine;
Cond10 = CrossUp(V10 , SignalPeriod);
If Baseline < V10 Then Cond11 = true
Else Cond11 = False;
If pPrice > 0 And v1 > v2 Then
Begin
If pPrice < cPrice And CrossuP(v3, v4) And Cond10 and Cond11 Then Buy("B")
Else If pPrice > cPrice And CrossUp(V5 , V6) And Cond10 and Cond11 Then Buy("B2");
End;
If CurrentContracts = entryVol And (False = ExBlockCOND) And (H < EntryPrice + (7 * TickSize)) Then
ExitLong("청산1", Atlimit, EntryPrice + (7 * TickSize), DEF, 1);
다음글
이전글