MQL4 - automated forex trading   /  

Forum

High and Low

Back to topics list To post a new topic, please log in or register

avatar
16
shapper 2008.11.07 04:03 

Hello,


How can I create an indicator that displays the High and Low of the last N bars.

So if I define N = 52 I will get:

1. The high and low of last 52 days if using Weekly chart

2. The high and low of last 52 days if using Daily chart

3. The high and low of last 260 minutes if using 5 minutes chart

...


I am not sure if I could add a parameter that if not null it would't calculate the High and Low of the chart timeframe but of the given timeframe. For example:


HighLow(52, Daily, UsdEur);


Thanks,

Miguel




article

Reporting the Eleventh Week (8-14 December)

Balance charts of top ten Participants drifted apart.


avatar
1514
DxdCn 2008.11.07 05:22 

High[iHighest(......)]

reference High and iHighest function in help

Back to topics list  

To add comments, please log in or register