예스스탁
예스스탁 답변
2025-05-23 10:56:17
안녕하세요
예스스탁입니다.
1
inputs : P1(5),P2(20),RSILength(10), OverSold(30),OverBought(70);
input : 첫진입금액(1000000),A(10),최대피라미딩횟수(5);
var : m1(0,Data2),m2(0,Data2), R(0,Data1),T(0,Data1);
var : TT(0,Data1),T1(0,Data1),entry(0,Data1),mm(0,data1),vol(0,Data1);
m1 = Data2(ma(C,P1));
m2 = Data2(ma(C,P2));
R = data1(RSI(RSILength));
if Data2(CrossUp(m1,m2)) Then
{
T = 1;
mm = 첫진입금액;
}
if Data2(CrossDown(m1,m2)) Then
T = -1;
If (MarketPosition == 0 or (MarketPosition == 1 and MaxEntries < 최대피라미딩횟수)) and
T == 1 and Crossup(R, OverSold) Then
{
Buy("B",OnClose,Def,Floor(mm/C));
mm = mm*(1+A/100);
}
if Data2(CrossDown(m1,m2)) or Crossup(R, OverBought) Then
Sell("S");
2
inputs : P1(5),P2(20),RSILength(10), OverSold(30),OverBought(70);
input : 첫진입금액(1000000),A(10),B(20),최대피라미딩횟수(5);
var : m1(0,Data2),m2(0,Data2), R(0,Data1),LP(0,Data1),T(0,Data1);
var : TT(0,Data1),T1(0,Data1),entry(0,Data1),mm(0,data1),vol(0,Data1);
m1 = Data2(ma(C,P1));
m2 = Data2(ma(C,P2));
R = data1(RSI(RSILength));
if MarketPosition == 1 Then
LP = LatestEntryPrice(0);
Else
LP = LatestEntryPrice(1);
if Data2(CrossUp(m1,m2)) Then
{
T = 1;
mm = 첫진입금액;
}
if Data2(CrossDown(m1,m2)) Then
T = -1;
If (MarketPosition == 0 or (MarketPosition == 1 and MaxEntries <= 최대피라미딩횟수)) and
T == 1 and Crossup(R, OverSold) Then
{
Buy("B",OnClose,Def,Floor(mm/C));
if LP > C Then
mm = mm*(1+B/100);
Else
mm = mm*(1+A/100);
}
if Data2(CrossDown(m1,m2)) or Crossup(R, OverBought) Then
Sell("S");
즐거운 하루되세요
> 2685up 님이 쓴 글입니다.
> 제목 : 문의드립니다,
> 수고많으십니다.
아래수식중 증액을할때 진입할때마다라고 했는데 시스템에서 정한기준안에서
예를들면 시스템진입식에 10번진입 실제진입5번일때 실제진입한것만
증액으로 진입식부탁드립니다.
1.
inputs : P1(5),P2(20),RSILength(10), OverSold(30),OverBought(70);
input : 첫진입금액(1000000),A(10);
var : m1(0,Data2),m2(0,Data2), R(0,Data1);
var : TT(0,Data1),T1(0,Data1),entry(0,Data1),mm(0,data1),vol(0,Data1);
m1 = Data2(ma(C,P1));
m2 = Data2(ma(C,P2));
R = data1(RSI(RSILength));
If Data2(m1 > m2) and Crossup(R, OverSold) Then
{
if TotalTrades == 0 Then
mm = 첫진입금액;
Else
mm = mm*(1+A/100);
Buy("B",OnClose,Def,Floor(Floor(mm/C)/10)*10);
}
if Data2(CrossDown(m1,m2)) or Crossup(R, OverBought) Then
Sell("S");
2
inputs : P1(5),P2(20),RSILength(10), OverSold(30),OverBought(70);
input : 첫진입금액(1000000),A(10),B(20);
var : m1(0,Data2),m2(0,Data2), R(0,Data1),LP(0,Data1);
var : TT(0,Data1),T1(0,Data1),entry(0,Data1),mm(0,data1),vol(0,Data1);
m1 = Data2(ma(C,P1));
m2 = Data2(ma(C,P2));
R = data1(RSI(RSILength));
if MarketPosition == 1 Then
LP = LatestEntryPrice(0);
Else
LP = LatestEntryPrice(1);
If Data2(m1 > m2) and Crossup(R, OverSold) Then
{
if TotalTrades == 0 Then
mm = 첫진입금액;
Else
{
if LP > C Then
mm = mm*(1+B/100);
Else
mm = mm*(1+A/100);
}
Buy("B",OnClose,Def,Floor(Floor(mm/C)/10)*10);
}
if Data2(CrossDown(m1,m2)) or Crossup(R, OverBought) Then
Sell("S");