i have to check this condition for the last 5 Bars :
if (Stochastics(3, 14, 7).D > 80
and want to combine it e.g. with a Volume of the curent Bar-condition.
Vol[0] >5000
i can do it like this i think :
if
(Stochastics(3, 14, 7).D[0] > 80
&&
Vol[0] >5000
(
do that ...
)
else if
(Stochastics(3, 14, 7).D[1] > 80
&&
Vol[0] >5000
(
do that ...
)
else if
(Stochastics(3, 14, 7).D[2] > 80
&&
Vol[0] >5000
(
do that ...
)
and so on up to bar (5) back -- so i have this list that will be checked through every time.
Is there an easier solution then this list to do this ?
Thank
max-td
Comment