Вы находитесь на странице: 1из 1

// Copyright Fipertec

// Version 1.5

Express Fractal_Indicator

Vars

Series
uFractal,
dFractal,
buFractal,
bdFractal,
senti(50);

input
$MessageBox("No;Yes",0),
$PlaySound("No;Yes",0),
$SendEmail("No;Yes",0);

Calculation
If IsFirstBar() then
begin
CalculateAtEveryTick(false);
SetYScaleFormat(GetPriceFormat());
end

uFractal = (h[2] > h[1]) and (h[2] > h[0]) and (h[2] > h[3]) and (h[2] > h[4]);
dFractal = (l[2] < l[1]) and (l[2] < l[0]) and (l[2] < l[3]) and (l[2] < l[4]);
buFractal = uFractal[1] and (c > h[3]);
bdFractal = dFractal[1] and (c < l[3]);

if uFractal and IsBarCompleted() then


begin
Highlightat(2,"upTriangle","red");
senti = 0;
if ($SendEmail = 1) then SendEmail("Sell signal","Sell signal Fractal_Indicator:
" + SymbolName());
if ($PlaySound = 1) then Playsound("ring");
if ($MessageBox = 1) then MessageBox("Sell signal Fractal_Indicator: " +
SymbolName());
end

if dFractal and IsBarCompleted() then


begin
Highlightat(2,"downTriangle","blue");
senti = 100;
if ($SendEmail = 1) then SendEmail("Buy signal","Buy signal Fractal_Indicator: "
+ SymbolName());
if ($PlaySound = 1) then Playsound("ring");
if ($MessageBox = 1) then MessageBox("Buy signal Fractal_Indicator: " +
SymbolName());
end

Interpretation
begin
sentiment = senti;
end//@@@cs:545992-3568765-402804_cs@@@

Вам также может понравиться