-
Notifications
You must be signed in to change notification settings - Fork 1
/
UP9x
42 lines (36 loc) · 987 Bytes
/
UP9x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
var
comprado : integer;
entrada : float;
stop : float;
gain : float;
begin
if (comprado > 0) then
begin
PaintBar(rgb(111, 142, 255));
end;
if ((comprado > 0) e
((MINIMA + 0.5) < SafeZoneUpTrend(2.00, 7, 0))) then
begin
PaintBar(clYellow);
comprado:=0;
end;
if ((comprado > 0) e
(FECHAMENTO < stop)) then
begin
PaintBar(clYellow);
comprado:=0;
end;
if ((comprado=0) e
(MediaExp(9, close)[5] > (MediaExp(9, close)[4] + 0.01)) e
(MediaExp(9, close)[4] > (MediaExp(9, close)[3] + 0.01)) e
(MediaExp(9, close)[3] > (MediaExp(9, close)[2] + 0.01)) e
(MediaExp(9, close)[2] < (MediaExp(9, close)[1] + 0.01)) e
(MediaExp(9, close)[1] < (MediaExp(9, close) + 0.01)) e
(MAXIMA[1] > MAXIMA[2]) e
(MAXIMA > MAXIMA[1])) then
begin
PaintBar(clBlue);
comprado:=2;
stop:=MINIMA - 0.5;
end;
end;