커뮤니티
문의 드립니다.
2019-04-19 12:13:06
185
글번호 127973
안녕하십니까.
아래 3가지 조건을 합치고 싶습니다.
6107 시스템합성관리자에서 합치면
수식을 읽을 수가 없습니다.
복사도 안되구요..
감사합니다.
1.
var1 = ma(C,120);
if crossup(c,var1) Then
if TotalTrades == 0 or
(MarketPosition == -1 and BarsSinceEntry >= 250) or
(TotalTrades >= 1 and MarketPosition == 0 and BarsSinceExit(1) >= 250) Then
buy();
if CrossDown(c,var1) Then
if TotalTrades == 0 or
(MarketPosition == 1 and BarsSinceEntry >= 250) or
(TotalTrades >= 1 and MarketPosition == 0 and BarsSinceExit(1) >= 250) Then
sell();
2.
Input : P(120);
var : T(0),Bcond(false),Scond(false);
value3 = ma(C,P);
var1 = ma(c,36);
var2 = (Highest(High, 25)[12] + Lowest(Low, 25)[12]) / 2;
if crossup(C,var1) Then{
T = 1;
Bcond = false;
}
if CrossDown(C,var1) Then{
T = -1;
Scond = false;
}
if T == 1 Then{
if L >= var2+PriceScale*2 Then
if TotalTrades == 0 or
(MarketPosition == -1 and BarsSinceEntry >= 250) or
(TotalTrades >= 1 and MarketPosition == 0 and BarsSinceExit(1) >= 250) Then
Bcond = true;
if Bcond == true and C > value3 then
buy("b",atlimit,var1);
}
if T == -1 Then{
if H <= var2-PriceScale*2 Then
if TotalTrades == 0 or
(MarketPosition == 1 and BarsSinceEntry >= 250) or
(TotalTrades >= 1 and MarketPosition == 0 and BarsSinceExit(1) >= 250) Then
Scond = true;
if Scond == true and C < value3 then
sell("s",atlimit,var1);
}
3.
Input : Period(60), Period1(25), Period2(5);
value1 = StochasticsK(Period,Period1);
value2 = StochasticsD(Period,Period1,Period2);
If CrossUP(value1, value2) Then
{
Buy();
}
If CrossDown(value1, value2) Then
{
sell();
}
답변 1
예스스탁 예스스탁 답변
2019-04-22 11:03:59
안녕하세요
예스스탁입니다.
var : mav(0);
mav = ma(C,120);
if crossup(c,mav) Then
{
if TotalTrades == 0 or
(MarketPosition == -1 and BarsSinceEntry >= 250) or
(TotalTrades >= 1 and MarketPosition == 0 and BarsSinceExit(1) >= 250) Then
buy();
}
if CrossDown(c,mav) Then
{
if TotalTrades == 0 or
(MarketPosition == 1 and BarsSinceEntry >= 250) or
(TotalTrades >= 1 and MarketPosition == 0 and BarsSinceExit(1) >= 250) Then
sell();
}
Input : P(120);
var : T(0),Bcond(false),Scond(false);
value3 = ma(C,P);
var1 = ma(c,36);
var2 = (Highest(High, 25)[12] + Lowest(Low, 25)[12]) / 2;
if crossup(C,var1) Then{
T = 1;
Bcond = false;
}
if CrossDown(C,var1) Then{
T = -1;
Scond = false;
}
if T == 1 Then
{
if L >= var2+PriceScale*2 Then
if TotalTrades == 0 or
(MarketPosition == -1 and BarsSinceEntry >= 250) or
(TotalTrades >= 1 and MarketPosition == 0 and BarsSinceExit(1) >= 250) Then
Bcond = true;
if Bcond == true and C > value3 then
buy("b",atlimit,var1);
}
if T == -1 Then{
if H <= var2-PriceScale*2 Then
if TotalTrades == 0 or
(MarketPosition == 1 and BarsSinceEntry >= 250) or
(TotalTrades >= 1 and MarketPosition == 0 and BarsSinceExit(1) >= 250) Then
Scond = true;
if Scond == true and C < value3 then
sell("s",atlimit,var1);
}
input : Period(60), Period1(25), Period2(5);
var : stok(0),stod(0);
stok = StochasticsK(Period,Period1);
stod = StochasticsD(Period,Period1,Period2);
If CrossUP(stok, stod) Then
{
Buy();
}
If CrossDown(stok, stod) Then
{
sell();
}
즐거운 하루되세요
> 호시우보 님이 쓴 글입니다.
> 제목 : 문의 드립니다.
>
안녕하십니까.
아래 3가지 조건을 합치고 싶습니다.
6107 시스템합성관리자에서 합치면
수식을 읽을 수가 없습니다.
복사도 안되구요..
감사합니다.
1.
var1 = ma(C,120);
if crossup(c,var1) Then
if TotalTrades == 0 or
(MarketPosition == -1 and BarsSinceEntry >= 250) or
(TotalTrades >= 1 and MarketPosition == 0 and BarsSinceExit(1) >= 250) Then
buy();
if CrossDown(c,var1) Then
if TotalTrades == 0 or
(MarketPosition == 1 and BarsSinceEntry >= 250) or
(TotalTrades >= 1 and MarketPosition == 0 and BarsSinceExit(1) >= 250) Then
sell();
2.
Input : P(120);
var : T(0),Bcond(false),Scond(false);
value3 = ma(C,P);
var1 = ma(c,36);
var2 = (Highest(High, 25)[12] + Lowest(Low, 25)[12]) / 2;
if crossup(C,var1) Then{
T = 1;
Bcond = false;
}
if CrossDown(C,var1) Then{
T = -1;
Scond = false;
}
if T == 1 Then{
if L >= var2+PriceScale*2 Then
if TotalTrades == 0 or
(MarketPosition == -1 and BarsSinceEntry >= 250) or
(TotalTrades >= 1 and MarketPosition == 0 and BarsSinceExit(1) >= 250) Then
Bcond = true;
if Bcond == true and C > value3 then
buy("b",atlimit,var1);
}
if T == -1 Then{
if H <= var2-PriceScale*2 Then
if TotalTrades == 0 or
(MarketPosition == 1 and BarsSinceEntry >= 250) or
(TotalTrades >= 1 and MarketPosition == 0 and BarsSinceExit(1) >= 250) Then
Scond = true;
if Scond == true and C < value3 then
sell("s",atlimit,var1);
}
3.
Input : Period(60), Period1(25), Period2(5);
value1 = StochasticsK(Period,Period1);
value2 = StochasticsD(Period,Period1,Period2);
If CrossUP(value1, value2) Then
{
Buy();
}
If CrossDown(value1, value2) Then
{
sell();
}