·Î±×ÀÎ
|
ȸ¿ø°¡ÀÔ
|
ȸ»ç¼Ò°³
|
»çÀÌÆ®¸Ê
Ä¿¹Â´ÏƼ | ¼ö½ÄÀÛ¼º Q&A
ÀÛ¼ºÀÚ :
¿¹½º½ºÅ¹
ÀÛ¼ºÀÏ : 2023-11-21 ¿ÀÈÄ 2:20:48 Á¶È¸¼ö : 36
Re : ¼ö½ÄÃß°¡
¾È³çÇϼ¼¿ä
¿¹½º½ºÅ¹ÀÔ´Ï´Ù.
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ƽ ÀÌÀͽà û»ê¸Å¸Å±ÝÁö
¼ö½Ä¿äûµå·Á¿ä
¹®ÀÇ µå¸³´Ï´Ù
°ü·Ã ±Û ¸®½ºÆ®
84679
¼ö½ÄÃß°¡
¾ÆÆ®Á¤
2023.11.21
32
ÇöÀç±Û
Re : ¼ö½ÄÃß°¡
¿¹½º½ºÅ¹
2023.11.21
36