커뮤니티
yesglobal 편집기에서 사용가능토록요청
2015-08-04 18:33:03
120
글번호 89170
아래수식도 yesglobal편집기에서 검증이 않됩니다
수식을 검토하시고 수정하여 주시면 대단히 감사하겠습니다
==========================================================
data2(ma(C,50)[1]) < data2(ma(C,50)) and
data2(ma(C,100)[1]) < data2(ma(C,100)) and
data2(ma(C,200)[1]) < data2(ma(C,200)) and
data2(ma(C,150)[1]) < data2(ma(C,150)) and
data2(ma(C,175)[1]) < data2(ma(C,175));
_1번대장01분추세매도 =
data2(ma(C,50)[1]) > data2(ma(C,50)) and
data2(ma(C,100)[1]) > data2(ma(C,100)) and
data2(ma(C,200)[1]) > data2(ma(C,200)) and
data2(ma(C,150)[1]) > data2(ma(C,150)) and
data2(ma(C,175)[1]) > data2(ma(C,175));
If _1번대장01분추세매수 Then _1번대장방향 = 1;
If _1번대장01분추세매도 Then _1번대장방향 = -1;
if _1번대장방향 == 1
then
방향 = 1;
if _1번대장방향 == -1
then
방향 = -1;
input : RSIP1(14),RSIsig1(6),RSI_B1(45),RSI_S1(55),
sto11(50),sto21(6),sto31(6),STOK_B1(14),STOK_S1(86),
RSIP2(21),RSIsig2(6),RSI_B2(45),RSI_S2(55),
sto12(25),sto22(6),sto32(6),STOK_B2(8),STOK_S2(92),
RSIP3(14),RSIsig3(6),RSI_B3(45),RSI_S3(55),
sto13(50),sto23(6),sto33(6),STOK_B3(16),STOK_S3(84),
RSIP4(25),RSIsig4(6),RSI_B4(45),RSI_S4(55),
sto14(25),sto24(6),sto34(6),STOK_B4(10),STOK_S4(90),
inTime(240000),exTime(240000);
var:매수조건(false),매도조건(false);
Value1 = RSI_Y(RSIP1);
Value2 = StochasticsKS(sto11,sto21);
Value3 = RSI_Y(RSIP2);
Value4 = StochasticsKS(sto12,sto22);
Value5 = RSI_Y(RSIP3);
Value6 = StochasticsKS(sto13,sto23);
Value7 = RSI_Y(RSIP4);
Value8 = StochasticsKS(sto14,sto24);
매수조건 = ((time < inTime or inTime == 0) and Value1 <= RSI_B1 and Value2 <= STOK_B1 and Value3 <= RSI_B2 and Value4 <= STOK_B2) or
((time >= inTime or inTime == 0) and Value5 <= RSI_B3 and Value6 <= STOK_B3 and Value7 <= RSI_B4 and Value8 <= STOK_B4);
매도조건 = ((time < inTime or inTime == 0) and Value1 >= RSI_S1 and Value2 >= STOK_S1 and Value3 >= RSI_S2 and Value4 >= STOK_S2) or
((time >= inTime or inTime == 0) and Value5 >= RSI_S3 and Value6 >= STOK_S3 and Value7 >= RSI_S4 and Value8 >= STOK_S4);
if 방향 > 0 then
{
//ExitShort("추세전환(+)",AtMarket);
If 매수조건 and time <= exTime Then
buy("매수",AtMarket);
If 매도조건 Then
ExitLong("매수청산",AtLimit,EntryPrice+PriceScale);
}
if 방향 < 0 then
{
//ExitLong("추세전환(-)",AtMarket);
If 매도조건 and time <= exTime Then
Sell("매도",AtMarket);
If 매수조건 Then
ExitShort("매도청산",AtLimit,EntryPrice-PriceScale);
}
답변 1
예스스탁 예스스탁 답변
2015-08-05 09:25:39
안녕하세요
예스스탁입니다.
var : _1번대장01분추세매수(false,data2),_1번대장01분추세매도(false,data2),_1번대장방향(0,data2),방향(0,data2);
_1번대장01분추세매수 = data2(ma(C,50)[1]) < data2(ma(C,50)) and
data2(ma(C,100)[1]) < data2(ma(C,100)) and
data2(ma(C,200)[1]) < data2(ma(C,200)) and
data2(ma(C,150)[1]) < data2(ma(C,150)) and
data2(ma(C,175)[1]) < data2(ma(C,175));
_1번대장01분추세매도 =
data2(ma(C,50)[1]) > data2(ma(C,50)) and
data2(ma(C,100)[1]) > data2(ma(C,100)) and
data2(ma(C,200)[1]) > data2(ma(C,200)) and
data2(ma(C,150)[1]) > data2(ma(C,150)) and
data2(ma(C,175)[1]) > data2(ma(C,175));
If _1번대장01분추세매수 Then _1번대장방향 = 1;
If _1번대장01분추세매도 Then _1번대장방향 = -1;
if _1번대장방향 == 1
then
방향 = 1;
if _1번대장방향 == -1
then
방향 = -1;
input : RSIP1(14),RSIsig1(6),RSI_B1(45),RSI_S1(55),
sto11(50),sto21(6),sto31(6),STOK_B1(14),STOK_S1(86),
RSIP2(21),RSIsig2(6),RSI_B2(45),RSI_S2(55),
sto12(25),sto22(6),sto32(6),STOK_B2(8),STOK_S2(92),
RSIP3(14),RSIsig3(6),RSI_B3(45),RSI_S3(55),
sto13(50),sto23(6),sto33(6),STOK_B3(16),STOK_S3(84),
RSIP4(25),RSIsig4(6),RSI_B4(45),RSI_S4(55),
sto14(25),sto24(6),sto34(6),STOK_B4(10),STOK_S4(90),
inTime(240000),exTime(240000);
var:매수조건(false),매도조건(false);
var : StochasticsKS1(0),StochasticsDS1(0),HV1(0),Lv1(0),FK1(0);
var : StochasticsKS2(0),StochasticsDS2(0),HV2(0),Lv2(0),FK2(0);
var : StochasticsKS3(0),StochasticsDS3(0),HV3(0),Lv3(0),FK3(0);
var : StochasticsKS4(0),StochasticsDS4(0),HV4(0),Lv4(0),FK4(0);
LV1 = Lowest(L, sto11);
HV1 = Highest(H, sto11);
FK1 = (Close - LV1) / (HV1 - LV1) * 100;
StochasticsKS1 = ma(FK1,sto21);
StochasticsDS1 = ma(StochasticsKS1,sto31);
LV2 = Lowest(L, sto12);
HV2 = Highest(H, sto12);
FK2 = (Close - LV2) / (HV2 - LV2) * 100;
StochasticsKS2 = ma(FK2,sto22);
StochasticsDS2 = ma(StochasticsKS2,sto32);
LV3 = Lowest(L, sto13);
HV3 = Highest(H, sto13);
FK3 = (Close - LV3) / (HV3 - LV3) * 100;
StochasticsKS3 = ma(FK3,sto23);
StochasticsDS3 = ma(StochasticsKS3,sto33);
LV4 = Lowest(L, sto14);
HV4 = Highest(H, sto14);
FK4 = (Close - LV3) / (HV4 - LV4) * 100;
StochasticsKS4 = ma(FK4,sto24);
StochasticsDS4 = ma(StochasticsKS4,sto34);
Value1 = RSI_Y(RSIP1);
Value2 = StochasticsKS1;
Value3 = RSI_Y(RSIP2);
Value4 = StochasticsKS2;
Value5 = RSI_Y(RSIP3);
Value6 = StochasticsKS3;
Value7 = RSI_Y(RSIP4);
Value8 = StochasticsKS4;
매수조건 = ((time < inTime or inTime == 0) and Value1 <= RSI_B1 and Value2 <= STOK_B1 and Value3 <= RSI_B2 and Value4 <= STOK_B2) or
((time >= inTime or inTime == 0) and Value5 <= RSI_B3 and Value6 <= STOK_B3 and Value7 <= RSI_B4 and Value8 <= STOK_B4);
매도조건 = ((time < inTime or inTime == 0) and Value1 >= RSI_S1 and Value2 >= STOK_S1 and Value3 >= RSI_S2 and Value4 >= STOK_S2) or
((time >= inTime or inTime == 0) and Value5 >= RSI_S3 and Value6 >= STOK_S3 and Value7 >= RSI_S4 and Value8 >= STOK_S4);
if 방향 > 0 then
{
//ExitShort("추세전환(+)",AtMarket);
If 매수조건 and time <= exTime Then
buy("매수",AtMarket);
If 매도조건 Then
ExitLong("매수청산",AtLimit,EntryPrice+PriceScale);
}
if 방향 < 0 then
{
//ExitLong("추세전환(-)",AtMarket);
If 매도조건 and time <= exTime Then
Sell("매도",AtMarket);
If 매수조건 Then
ExitShort("매도청산",AtLimit,EntryPrice-PriceScale);
}
즐거운 하루되세요
> 강남쏠라 님이 쓴 글입니다.
> 제목 : yesglobal 편집기에서 사용가능토록요청
> 아래수식도 yesglobal편집기에서 검증이 않됩니다
수식을 검토하시고 수정하여 주시면 대단히 감사하겠습니다
==========================================================
data2(ma(C,50)[1]) < data2(ma(C,50)) and
data2(ma(C,100)[1]) < data2(ma(C,100)) and
data2(ma(C,200)[1]) < data2(ma(C,200)) and
data2(ma(C,150)[1]) < data2(ma(C,150)) and
data2(ma(C,175)[1]) < data2(ma(C,175));
_1번대장01분추세매도 =
data2(ma(C,50)[1]) > data2(ma(C,50)) and
data2(ma(C,100)[1]) > data2(ma(C,100)) and
data2(ma(C,200)[1]) > data2(ma(C,200)) and
data2(ma(C,150)[1]) > data2(ma(C,150)) and
data2(ma(C,175)[1]) > data2(ma(C,175));
If _1번대장01분추세매수 Then _1번대장방향 = 1;
If _1번대장01분추세매도 Then _1번대장방향 = -1;
if _1번대장방향 == 1
then
방향 = 1;
if _1번대장방향 == -1
then
방향 = -1;
input : RSIP1(14),RSIsig1(6),RSI_B1(45),RSI_S1(55),
sto11(50),sto21(6),sto31(6),STOK_B1(14),STOK_S1(86),
RSIP2(21),RSIsig2(6),RSI_B2(45),RSI_S2(55),
sto12(25),sto22(6),sto32(6),STOK_B2(8),STOK_S2(92),
RSIP3(14),RSIsig3(6),RSI_B3(45),RSI_S3(55),
sto13(50),sto23(6),sto33(6),STOK_B3(16),STOK_S3(84),
RSIP4(25),RSIsig4(6),RSI_B4(45),RSI_S4(55),
sto14(25),sto24(6),sto34(6),STOK_B4(10),STOK_S4(90),
inTime(240000),exTime(240000);
var:매수조건(false),매도조건(false);
Value1 = RSI_Y(RSIP1);
Value2 = StochasticsKS(sto11,sto21);
Value3 = RSI_Y(RSIP2);
Value4 = StochasticsKS(sto12,sto22);
Value5 = RSI_Y(RSIP3);
Value6 = StochasticsKS(sto13,sto23);
Value7 = RSI_Y(RSIP4);
Value8 = StochasticsKS(sto14,sto24);
매수조건 = ((time < inTime or inTime == 0) and Value1 <= RSI_B1 and Value2 <= STOK_B1 and Value3 <= RSI_B2 and Value4 <= STOK_B2) or
((time >= inTime or inTime == 0) and Value5 <= RSI_B3 and Value6 <= STOK_B3 and Value7 <= RSI_B4 and Value8 <= STOK_B4);
매도조건 = ((time < inTime or inTime == 0) and Value1 >= RSI_S1 and Value2 >= STOK_S1 and Value3 >= RSI_S2 and Value4 >= STOK_S2) or
((time >= inTime or inTime == 0) and Value5 >= RSI_S3 and Value6 >= STOK_S3 and Value7 >= RSI_S4 and Value8 >= STOK_S4);
if 방향 > 0 then
{
//ExitShort("추세전환(+)",AtMarket);
If 매수조건 and time <= exTime Then
buy("매수",AtMarket);
If 매도조건 Then
ExitLong("매수청산",AtLimit,EntryPrice+PriceScale);
}
if 방향 < 0 then
{
//ExitLong("추세전환(-)",AtMarket);
If 매도조건 and time <= exTime Then
Sell("매도",AtMarket);
If 매수조건 Then
ExitShort("매도청산",AtLimit,EntryPrice-PriceScale);
}
다음글
이전글