예스스탁
예스스탁 답변
2025-05-09 14:56:13
안녕하세요
예스스탁입니다.
10주단위, 차트상 첫진입기준 피라미딩(추가진입)사용으로
금액 증가되게 수정해 드립니다.
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");
즐거운 하루되세요
> 2685up 님이 쓴 글입니다.
> 제목 : 부탁드립니다
> 빠른답변 감사합니다
1. 진입수량10주단위로 진입식부탁드립니다,
2.진입금액이 처음만 적용되고2번부터는증액이안된것도있습니다.
진입금액에번호를붙여주세요.1번째 진입금액=첫진입금액. 2번진입금액=1번금액+(1번금액*A%)
3번진입금액=2번진입금액+(2번금액*A%)4번진입금액=3번진입금액+(3번진입금액*A%)..이런식으로부탁드립니다
3.data1중복진입이 안되네요.시스템식에서 체크하면 될수있도록부탁드립니다
늘감사드립니다~
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 문의드립니다,
> 안녕하세요
예스스탁입니다.
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));
TT = TotalTrades;
if Data1(Bdate != Bdate[1]) Then
{
T1 = TT[1];
}
entry = (TT-T1)+IFF(MarketPosition == 0,0,1);
If MarketPosition <= 0 and Data2(m1 > m2) and Crossup(R, OverSold) Then
{
if entry == 0 Then
mm = 첫진입금액;
Else
mm = mm*(1+A/100);
Buy("B",OnClose,Def,Floor(mm/C));
}
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);
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));
TT = TotalTrades;
if Data1(Bdate != Bdate[1]) Then
{
T1 = TT[1];
}
entry = (TT-T1)+IFF(MarketPosition == 0,0,1);
If MarketPosition <= 0 and Data2(m1 > m2) and Crossup(R, OverSold) Then
{
if entry == 0 Then
mm = 첫진입금액;
Else
{
if EntryPrice(1) > C Then
mm = mm*(1+B/100);
Else
mm = mm*(1+A/100);
}
Buy("B",OnClose,Def,Floor(mm/C));
}
if Data2(CrossDown(m1,m2)) or Crossup(R, OverBought) Then
Sell("S");