Daily, Weekly and Monthly Pivots Points

 

Does anyone know where I can get the code for the aforementioned 3 time period of pivot points so that I can plot on my charts?

Any help would be greatly appreciated.

Nick

 

MT4 only has room for 8 indicator buffers so your going to have to use Horizontal lines to plot your pivots. All you need to do is assign the previous TF's high low and close(day/week/month) to their own variables then work out your pivots according to your method of calculating them. After you've calculated them then you need to create the objects using ObjectCreate. And hey presto you've got the current pivots on your chart, now all you need to do is update them once a day. I like to have a static variable with the last time the lines got updated and then check that against the time of the current day:

static datetime lastUpdate;
if(lastUpdate==iTime(Symbol(),PERIOD_D1,0))return (0);
lastUpdate=iTime(Symbol(),PERIOD_D1,0);

So you can either learn to code it yourself and we'll help you when you've become stuck or you can use the Jobs service to get it made for you.

Reason: