Escolar Documentos
Profissional Documentos
Cultura Documentos
CÓDIGO:
begin
begin
//Condições de compra
BuyStop(high,high);
//Condições de venda
if (close<close[1]) e (highest(High,2)>highest(High,2)[1])
SellShortStop(low,low);
end;
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
end;