Академический Документы
Профессиональный Документы
Культура Документы
// 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]);
Interpretation
begin
sentiment = senti;
end//@@@cs:545992-3568765-402804_cs@@@