Pivot indicators - page 4

 
 

Your problem is that in every day change you are taking the high/low/open/close of the current TF not the daily TF

do not use : High[shift] use iHigh(NULL, PERIOD_D1, shift) and so on

 

looping

thanks elihayun I will give it a go - though I don't think that is the problem.

i do use high[shift], I go into a loop when a new day is detected and it determines the high,low for the previous day here is the loop -

// a new day has started so recalc pivot point

Previous_day=TimeDay(Time[shift+1]);

h1=0; l1=10000000;

int i;

for (i=shift+l1;i>=shift;i--)

{

h1 = MathMax( h1, High);

l1 = MathMin( l1 , Low);

}

c1 = Close;

p = (h1+l1+c1) / 3;

piv1[shift] =p;

shift--;//

 
cardio:
thanks elihayun I will give it a go - though I don't think that is the problem.

i do use high[shift], I go into a loop when a new day is detected and it determines the high,low for the previous day here is the loop -

// a new day has started so recalc pivot point

Previous_day=TimeDay(Time[shift+1]);

h1=0; l1=10000000;

int i;

for (i=shift+l1;i>=shift;i--)

{

h1 = MathMax( h1, High);

l1 = MathMin( l1 , Low);

}

c1 = Close;

p = (h1+l1+c1) / 3;

piv1[shift] =p;

shift--;//

1) How do u know that the TF will be D1? If you change the TF you will see pivot of the current TF

2) How do u know that there are 10000000 bars ? U better use Bars instead.

 

Hi

I think I have found what I am looking for in this post

https://www.mql5.com/en/forum/173338

post 7

I think I can modify the indicators there - I will try and post results.

Thank you for your help and interest Elihayun.

 

Pivot Point Education

Hi,

Does anyone have any ebooks or absolute begginers to advanced course for learning how to use pivot points, preferrably for forex and any regular unmodified mt4 pivot point indicator that's good ?

thnx

 

try this site http://www.investopedia.com/terms/p/pivotpoint.asp

also just search the site for other info :-)

sailor

 

thnx sailor, is there also a website where i can get previous day's high, low, open, and close. im sure there's a website which keeps that info ?

 

Previous Day's PP

Depending on the trading platform you have selected...go to the day of your choice, look for the daily HIGH, LOW, OPENING Candle and CLOSING Candle.

Place your mouse over them respectfully and write down the info you need. Place it in a PP calculator and then draw your lines as needed, or simply keep the sheet near your screen for reference.

Depending on the trading platform you may want to use: there are indicators that can be placed right on your chart to calculate PP and re-draw them everyday.

 

Weekly Pivot Points

Can someone please post a weekly pivot point Indicator.

Thanks