You are on page 1of 3

NOME DA ESTRATÉGIA: Setup Candle Triplo + Alvo com True Range

CARACTERÍSTICA: Taxa de acerto nível médio com payoff nível médio.

LADO: Compra (Venda desativada)

MODALIDADE: Swing Trade

ENTRADA: Três minímas em queda/alta

SAÍDA:

ALVO de compra = Preço de entrada + True Range do candle anterior a entrada (Candle
sinal)

STOP de compra = Preço de entrada - True Range do candle anterior a entrada (Candle
sinal)

ALVO de venda = Preço de entrada - True Range do candle anterior a entrada (Candle
sinal)

STOP de venda = Preço de entrada + True Range do candle anterior a entrada (Candle
sinal)

CLASSIFICAÇÃO DA ESTRATÉGIA (0 até 10) :

ATIVOS QUE FUNCIONAM:

CÓDIGO:

var

candle:integer;

begin

if (BuyPosition=0) and (SellPosition=0)

and (BarType=2) then

begin

candle:=0;

if (low[1]<low[2])

and (low[2]<low[3])

then

BuyStop(high[1],high[1]);

{if (high[1]>high[2])

and (high[2]>high[1])

then

SellShortStop(low[1],low[1]);
}

end;

if (BuyPosition = 1) and (BarType=2) then

begin

candle:=candle+1;

SellToCoverStop((BuyPrice+AvgTrueRange(10,0)[candle])+100000,
(BuyPrice+AvgTrueRange(10,0)[candle]));

SellToCoverStop((BuyPrice-AvgTrueRange(10,0)[candle]),
(BuyPrice+AvgTrueRange(10,0)[candle])-100000);

end;

if (SellPosition = 1) and (BarType=2)then

begin

candle:=candle+1;

BuyToCoverStop((SellPrice-AvgTrueRange(10,0)[candle])-100000,(SellPrice-
AvgTrueRange(10,0)[candle]));

BuyToCoverStop((SellPrice+AvgTrueRange(10,0)[candle]),
(SellPrice+AvgTrueRange(10,0)[candle])+100000);

end;

if (BuyPosition = 0) and (SellPosition = 0)

and (BarType=1)

then

begin

candle:=0;

if (low[0]<low[1])

and (low[1]<low[2])

then

BuyStop(high,high);

{if (high[0]>high[1])

and (high[1]>high[2])

then

SellShortStop(low,low);}
end;

if (BuyPosition = 1) and (BarType=1) then

begin

candle:=candle+1;

SellToCoverStop((BuyPrice+AvgTrueRange(10,0)[candle])+100000,
(BuyPrice+AvgTrueRange(10,0)[candle]));

SellToCoverStop((BuyPrice-AvgTrueRange(10,0)[candle]),
(BuyPrice+AvgTrueRange(10,0)[candle])-100000);

end;

if (SellPosition = 1) and (BarType=1) then

begin

candle:=candle+1;

BuyToCoverStop((SellPrice-AvgTrueRange(10,0)[candle])-100000,(SellPrice-
AvgTrueRange(10,0)[candle]));

BuyToCoverStop((SellPrice+AvgTrueRange(10,0)[candle]),
(SellPrice+AvgTrueRange(10,0)[candle])+100000);

end;

end;

You might also like