You are on page 1of 4

NOME DA ESTRATÉGIA: Dave Landry

CARACTERÍSTICA: Taxa de acerto nível alto com payoff nível baixo.

LADO: Só na compra

MODALIDADE: Swing-Trade

SAÍDA: 2x candle de entrada pra cima e 2x candle de entrada pra baixo

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

ATIVOS QUE FUNCIONAM: IBOV (Diário), RENT3 (Diário, 60 min), LREN3(Diário), B3SA3
(60 min), EZTC3(Diário)

CÓDIGO:

var

candle : integer;

begin

//

//

// CÓDIGO PARA GRÁFICO DIÁRIO

//

//

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

and (BarType=2) then

begin

candle:=0;

//Condições de compra

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

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

and (close[1]>media(21,close))

then

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

// condições de venda (desativadas)

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

and (high[1]>high[3])
and (close[1]<media(21,close))

then

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

end;

if (BuyPosition=1)

and (BarType=2) then

begin

candle:=candle+1;

//Alvo da compra

SellToCoverStop(((((high[candle]-low[candle])*2)+high[candle]))+100,
(((high[candle]-low[candle])*2)+high[candle])+0.02);

// stop da compra

SellToCoverStop(abs(((high[candle]-low[candle])*2)-
low[candle]),abs(((high[candle]-low[candle])*2)-low[candle])-10);

end;

if (SellPosition=1)

and (BarType=2) then

begin

candle:=candle+1;

// Alvo da venda

BuyToCoverStop(abs(((high[candle]-low[candle])*2)-low[candle])-
10,abs(((high[candle]-low[candle])*2)-low[candle]));

// stop da venda

BuyToCoverStop((((high[candle]-low[candle])*2)+high[candle]),(((high[candle]-
low[candle])*2)+high[candle])+10);

end;

//

//

// CÓDIGO PARA GRÁFICO INTRADAY

//

//

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


and (BarType=1)then

begin

candle:=0;

//Condições de compra

if (low<low[1])

and (low<low[2])

and (close>media(21,close))

then

BuyStop(high+0.02, high+0.02);

// condições de venda (desativadas)

{if (high>high[1])

and (high>high[2])

and (close<media(21,close))

then

SellShortStop(low, low);}

end;

if (BuyPosition=1)

and (BarType=1)then

begin

candle:=candle+1;

//Alvo da compra

SellToCoverStop(((((high[candle]-low[candle])*2)+high[candle]))+10,
(((high[candle]-low[candle])*2)+high[candle])+0.02);

// stop da compra

SellToCoverStop(abs(((high[candle]-low[candle])*2)-
low[candle]),abs(((high[candle]-low[candle])*2)-low[candle])-10);

end;

if (SellPosition=1)

and (BarType=1)then

begin
candle:=candle+1;

// Alvo da venda

BuyToCoverStop(abs(((high[candle]-low[candle])*2)-low[candle])-
10,abs(((high[candle]-low[candle])*2)-low[candle]));

// stop da venda

BuyToCoverStop((((high[candle]-low[candle])*2)+high[candle]),(((high[candle]-
low[candle])*2)+high[candle])+10);

end;

end;

You might also like