Determining bull or bear trend - page 3

 
Viffer:

Well, I just applied this script and it worked fine. I then opened an exotic symbol that I hadn't opened before and replicated the 0.000. I then changed to 1min timeframe allowed it to update history applied the script and it worked fine.

Viffer, your patience is worthy of sainthood. For goodness sake, the first step is to know what is the period of interest?

One minute trends differ from M5, M15, H1, H4, D1 etc.

When I know what time frame's trend is of interest to me, I look at two SMAs - 4 bars v 6 bars (my arbitrary choice).

If MA4 is above MA6, that time frame is in a bull trend. If MA4 is below MA6, that time frame is in a bear trend.

This approach serves my purpose. Different MAs, for example MA50 and MA200, are used by some other people.

Take your pick between those two extremes and apply it to the time frame of interest to get your answer.

Reason: