예스스탁
예스스탁 답변
2025-07-17 16:32:08
안녕하세요
예스스탁입니다.
설정창에서 피라미딩을 모든진입신호 허용으로 설정하고 적용하시면 됩니다.
input : P1(5),P2(20),금액(1000000);
Input : RSIPeriod(9),RSIsignal(10);
var : RSIV(0,Data1),RSIS(0,Data1);
var : mav1(0,Data2),mav2(0,Data2),T(0,Data2);
RSIV = data1(RSI(RSIPeriod));
RSIS = data1(ma(RSIV,RSIsignal));
mav1 = data2(ma(C,P1));
mav2 = data2(ma(C,P2));
if MarketPosition == 0 and CrossUp(mav1,mav2) Then
{
Buy("b1",OnClose,Def,Floor(금액/C));
}
if MarketPosition == 1 Then
{
if MaxEntries < 10 and CrossUp(RSIV,RSIS) Then
Buy("bb",OnClose,Def,Floor(금액/C));
if TotalTrades > TotalTrades[1] Then
{
if LatestExitName(0) == "bx1" Then
Condition1 = False;
if LatestExitName(0) == "bx2" Then
Condition2 = False;
if LatestExitName(0) == "bx3" Then
Condition3 = False;
if LatestExitName(0) == "bx4" Then
Condition4 = False;
if LatestExitName(0) == "bx5" Then
Condition5 = False;
}
if Condition1 == true Then
ExitLong("bx1",AtLimit,AvgEntryPrice*1.01,"",Floor(MaxContracts*0.2),1);
if Condition2 == true Then
ExitLong("bx2",AtLimit,AvgEntryPrice*1.02,"",Floor(MaxContracts*0.2),1);
if Condition3 == true Then
ExitLong("bx3",AtLimit,AvgEntryPrice*1.03,"",Floor(MaxContracts*0.2),1);
if Condition41 == true Then
ExitLong("bx4",AtLimit,AvgEntryPrice*1.04,"",Floor(MaxContracts*0.2),1);
if Condition5 == true Then
ExitLong("bx5",AtLimit,AvgEntryPrice*1.05);
if CrossDown(mav1,mav2) Then
ExitLong("bx");
}
Else
{
Condition1 = False;
Condition2 = False;
Condition3 = False;
Condition4 = False;
Condition5 = False;
}
즐거운 하루되세요
> 2685up 님이 쓴 글입니다.
> 제목 : 문의드립니다,
> 수고가 많으십니다.
1.data2 이동평균선 골든시 data1 A 금액매수
2.data2 이동평균선 골든크로스이후 data1 rsi oscilletor 매수신호시 매수함.
3.총투자금은 1백만원 이고 총10회나누어매수
매수후 1%상승시 투자되어진금액중20%매도식
2% 상승시 남은금액중 20%매도식 3%상승시 남은금액중20%매도식 4%상승시 남은금액중20%매도식 5%상승시남은금액중 20%매도식
4..data2 이동평균선 데드시 모든금액매도
많은폭우에 건강유의하시기 바랍니다