커뮤니티
64473질문자입니다. 한가지 보충좀 부탁드립니다.
2019-10-14 10:45:04
130
글번호 132755
input : Period11(1),Period12(2),Period13(3);
input : Period21(4),Period22(5),Period23(6);
input : Period31(7),Period32(8),Period33(9);
Input : Period(20), MultiD(2);
var : SMI1(0),SMI2(0),SMI3(0),Bcond(false),Scond(false);
var : BBmd(0),BBup(0),BBdn(0),T(0);
SMI1 = SMI(Period11,Period12,Period13);
SMI2 = SMI(Period21,Period22,Period23);
SMI3 = SMI(Period31,Period32,Period33);
BBmd = ma(C,Period);
BBup = BollBandUp(Period,MultiD);
BBdn = BollBandDown(Period,MultiD);
Bcond = SMI1 > SMI2 and SMI2 > SMI3 and SMI3 ;
Scond = SMI1 < SMI2 and SMI2 < SMI3 and SMI3;
if MarketPosition <= 0 then
{
if Bcond == true and Bcond[1] == false Then
{
T = 1;
}
if T == 1 Then
buy("b",atlimit,BBdn);
}
if MarketPosition >= 0 then
{
if Scond == true and Scond[1] == false Then
{
T = -1;
}
if T == -1 then
sell("s",Atlimit,BBup);
}
if MarketPosition == 1 then
{
exitlong("bx",atlimit,bbup);
}
if MarketPosition == -1 then
{
ExitShort("sx",atlimit,bbdn);
}
위식에서
input : Period11(1),Period12(2),Period13(3);
input : Period21(4),Period22(5),Period23(6);
input : Period31(7),Period32(8),Period33(9);
var : SMI1(0),SMI2(0),SMI3(0),,Bcond(false),Scond(false);
SMI1 = SMI(Period11,Period12,Period13);
SMI2 = SMI(Period21,Period22,Period23);
SMI3 = SMI(Period31,Period32,Period33);
Bcond = SMI1 > SMI2 and SMI2 > SMI3 and SMI3 ;
Scond = SMI1 < SMI2 and SMI2 < SMI3 and SMI3;
위조건이 없어지면 더이상 진입하지 않은다는 식좀 부탁드립니다.~~
답변 1
예스스탁 예스스탁 답변
2019-10-14 11:00:04
안녕하세요
예스스탁입니다.
input : Period11(1),Period12(2),Period13(3);
input : Period21(4),Period22(5),Period23(6);
input : Period31(7),Period32(8),Period33(9);
Input : Period(20), MultiD(2);
var : SMI1(0),SMI2(0),SMI3(0),Bcond(false),Scond(false);
var : BBmd(0),BBup(0),BBdn(0),T(0);
SMI1 = SMI(Period11,Period12,Period13);
SMI2 = SMI(Period21,Period22,Period23);
SMI3 = SMI(Period31,Period32,Period33);
BBmd = ma(C,Period);
BBup = BollBandUp(Period,MultiD);
BBdn = BollBandDown(Period,MultiD);
Bcond = SMI1 > SMI2 and SMI2 > SMI3 and SMI3 ;
Scond = SMI1 < SMI2 and SMI2 < SMI3 and SMI3;
if MarketPosition <= 0 then
{
if Bcond == true and Bcond[1] == false Then
{
T = 1;
}
if T == 1 and Bcond == true Then
buy("b",atlimit,BBdn);
}
if MarketPosition >= 0 then
{
if Scond == true and Scond[1] == false Then
{
T = -1;
}
if T == -1 and Scond == true then
sell("s",Atlimit,BBup);
}
if MarketPosition == 1 then
{
exitlong("bx",atlimit,bbup);
}
if MarketPosition == -1 then
{
ExitShort("sx",atlimit,bbdn);
}
즐거운 하루되세요
> 진짜원칙매매 님이 쓴 글입니다.
> 제목 : 64473질문자입니다. 한가지 보충좀 부탁드립니다.
> input : Period11(1),Period12(2),Period13(3);
input : Period21(4),Period22(5),Period23(6);
input : Period31(7),Period32(8),Period33(9);
Input : Period(20), MultiD(2);
var : SMI1(0),SMI2(0),SMI3(0),Bcond(false),Scond(false);
var : BBmd(0),BBup(0),BBdn(0),T(0);
SMI1 = SMI(Period11,Period12,Period13);
SMI2 = SMI(Period21,Period22,Period23);
SMI3 = SMI(Period31,Period32,Period33);
BBmd = ma(C,Period);
BBup = BollBandUp(Period,MultiD);
BBdn = BollBandDown(Period,MultiD);
Bcond = SMI1 > SMI2 and SMI2 > SMI3 and SMI3 ;
Scond = SMI1 < SMI2 and SMI2 < SMI3 and SMI3;
if MarketPosition <= 0 then
{
if Bcond == true and Bcond[1] == false Then
{
T = 1;
}
if T == 1 Then
buy("b",atlimit,BBdn);
}
if MarketPosition >= 0 then
{
if Scond == true and Scond[1] == false Then
{
T = -1;
}
if T == -1 then
sell("s",Atlimit,BBup);
}
if MarketPosition == 1 then
{
exitlong("bx",atlimit,bbup);
}
if MarketPosition == -1 then
{
ExitShort("sx",atlimit,bbdn);
}
위식에서
input : Period11(1),Period12(2),Period13(3);
input : Period21(4),Period22(5),Period23(6);
input : Period31(7),Period32(8),Period33(9);
var : SMI1(0),SMI2(0),SMI3(0),,Bcond(false),Scond(false);
SMI1 = SMI(Period11,Period12,Period13);
SMI2 = SMI(Period21,Period22,Period23);
SMI3 = SMI(Period31,Period32,Period33);
Bcond = SMI1 > SMI2 and SMI2 > SMI3 and SMI3 ;
Scond = SMI1 < SMI2 and SMI2 < SMI3 and SMI3;
위조건이 없어지면 더이상 진입하지 않은다는 식좀 부탁드립니다.~~