예스스탁
예스스탁 답변
2023-11-21 14:20:48
안녕하세요
예스스탁입니다.
input : EmaPeriod(50);
input : RSIPeriod1(7),RSIPeriod2(14),RSIPeriod3(21),RSI차이(7);
input : ADXPeriod(10);
input : 익절(50),손절(50);
var : Emav(0),RSI1(0),RSI2(0),RSI3(0),ADXv(0);
var : Bcond(False),Scond(False);
Input : 당일수익틱수(100);
Var : N1(0),dayPl(0),당일수익(0);
var : Tcond(false),Xcond(false);
if Bdate != Bdate[1] Then
{
Xcond = False;
}
당일수익 = PriceScale*당일수익틱수;
if Bdate != Bdate[1] Then
{
Xcond = false;
N1 = NetProfit;
}
daypl = NetProfit-N1;
if TotalTrades > TotalTrades[1] then
{
if daypl >= 당일수익 Then
Xcond = true;
if (IsExitName("dbp",1) == true or IsExitName("dsp",1) == true) then
Xcond = true;
}
Emav = Ema(C,EmaPeriod);
RSI1 = RSI(RSIPeriod1);
RSI2 = RSI(RSIPeriod2);
RSI3 = RSI(RSIPeriod3);
ADXv = ADX(ADXperiod);
Bcond = MarketPosition == 0 and MarketPosition(1) == 1 and MarketPosition(2) == 1;
Scond = MarketPosition == 0 and MarketPosition(1) == -1 and MarketPosition(2) == -1;
if Xcond == false then
{
if C > Emav and
RSI1 >= RSI2+RSI차이 and RSI2 >= RSI3+RSI차이 and
ADXV >= 21 and
Bcond == False Then
buy();
if C < Emav and
RSI1 <= RSI2-RSI차이 and RSI2 <= RSI3-RSI차이 and
ADXV >= 21 and
Scond == False Then
Sell();
}
if MarketPosition == 1 then
{
ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts));
}
if MarketPosition == -1 then
{
ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts));
}
즐거운 하루되세요
> 아트정 님이 쓴 글입니다.
> 제목 : 수식추가
> input : EmaPeriod(50);
input : RSIPeriod1(7),RSIPeriod2(14),RSIPeriod3(21),RSI차이(7);
input : ADXPeriod(10);
input : 익절(50),손절(50);
var : Emav(0),RSI1(0),RSI2(0),RSI3(0),ADXv(0);
var : Bcond(False),Scond(False);
Emav = Ema(C,EmaPeriod);
RSI1 = RSI(RSIPeriod1);
RSI2 = RSI(RSIPeriod2);
RSI3 = RSI(RSIPeriod3);
ADXv = ADX(ADXperiod);
Bcond = MarketPosition == 0 and MarketPosition(1) == 1 and MarketPosition(2) == 1;
Scond = MarketPosition == 0 and MarketPosition(1) == -1 and MarketPosition(2) == -1;
if C > Emav and
RSI1 >= RSI2+RSI차이 and RSI2 >= RSI3+RSI차이 and
ADXV >= 21 and
Bcond == False Then
buy();
if C < Emav and
RSI1 <= RSI2-RSI차이 and RSI2 <= RSI3-RSI차이 and
ADXV >= 21 and
Scond == False Then
Sell();
안녕하세요
위식에 추가부탁드림니다
당일 누적 100틱 이익시 청산매매금지