Você está na página 1de 2

NOME DA ESTRATÉGIA: Setup Preço de Fechamento de Reversão

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

LADO: Compra e Venda

MODALIDADE: Day Trade

SAÍDA: Alvo de 500 pts e stop de 500pts ou depois de 4 e meia da tarde

CÓDIGO:

begin

// SETUP PREÇO DE FECHAMENTO DE REVERSÃO PARA DAY TRADE

// Código Livre - Arthur 777

// Bloco de entrada nas operações

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

and ( time <= 1200 ) then

begin

//Condições de compra

if (close>close[1]) and (lowest(low,2)<lowest(low,2)[1])

and (close>mediaexp(50,close)) then

BuyStop(high,high);

//Condições de venda

if (close<close[1]) e (highest(High,2)>highest(High,2)[1])

and (close<mediaexp(50,close)) then

SellShortStop(low,low);

end;

//Bloco de saída (compra e outro de venda)

if (BuyPosition = 1) then

begin

SellToCoverStop(BuyPrice+500,BuyPrice+500);

SellToCoverStop(BuyPrice-500,BuyPrice-500);

end;

if (SellPosition = 1) then

begin
BuyToCoverStop(SellPrice-500,SellPrice-500);

BuyToCoverStop(SellPrice+500,SellPrice+500);

end;

// INTERVALO DE ENCERRAMENTO

if ( time >= 1630 ) then ClosePosition;

end;

Você também pode gostar