If I am spammer I will delete this
/*--> PPandPN.mq4 <--*/ #property copyright "who" #property indicator_chart_window #property indicator_buffers 7 #property indicator_color1 DarkGray #property indicator_color2 Green #property indicator_color3 Red #property indicator_color4 Green #property indicator_color5 Red #property indicator_color6 Green #property indicator_color7 Red #property indicator_width1 2 double B0[],B1[],B2[],B3[],B4[],B5[],B6[]; extern int Pivot_from = 43200; extern bool Previous_Pivot = 0; int time = -1; int init() { SetIndexBuffer ( 0 , B0 ); SetIndexLabel ( 0 , "Pivot" ); SetIndexBuffer ( 1 , B1 ); SetIndexLabel ( 1 , "R1" ); SetIndexBuffer ( 2 , B2 ); SetIndexLabel ( 2 , "S1" ); SetIndexBuffer ( 3 , B3 ); SetIndexLabel ( 3 , "R2" ); SetIndexBuffer ( 4 , B4 ); SetIndexLabel ( 4 , "S2" ); SetIndexBuffer ( 5 , B5 ); SetIndexLabel ( 5 , "R3" ); SetIndexBuffer ( 6 , B6 ); SetIndexLabel ( 6 , "S3" ); return( 0 ); } int start() { if ( time == Previous_Pivot * Time[ 0 ] % ( Pivot_from * 60 ) ) return( 0 ); int i = iBars ( NULL , Pivot_from ) - IndicatorCounted() - 1 , cnt; // Bars double H , L, R , C; while( i > Previous_Pivot - 1 ) { cnt = iBarShift ( NULL , Pivot_from , Time[ i ] ); // , 1 H = iHigh ( NULL , Pivot_from , cnt ); L = iLow ( NULL , Pivot_from , cnt ); C = iClose ( NULL , Pivot_from , cnt ); R = H - L; B0[ i ] = ( H + L + C ) / 3; B1[ i ] = 2 * B0[ i ] - L; B2[ i ] = 2 * B0[ i ] - H; B3[ i ] = B0[ i ] + R; B4[ i ] = B0[ i ] - R; B5[ i ] = B1[ i ] + R; B6[ i ] = B2[ i ] - R; time = Time[ i ]; i --; } return(0); } //+------------------------------------------------------------------+ /* PHigh — the maximum price of the previous bar/period; PLow — the minimum price of the previous bar/period; PClose — the close price of the previous bar/period; PP — PreviousPivots(Daily but Any Period) ~ or the typical price; PIVOT POINTS WERE ... Range = PHigh - PLow; PP = ( PHigh + PLow + PClose ) / 3 R1 = 2 * PP - PLow R2 = PP + Range R3 = R1 + Range S1 = 2 * PP - PHigh S2 = PP - Range S3 = S1 - Range */
For those who don't have Jellybean's weekly pivots, I have attached it.
Files:
weeklylpivots.mq4
9 kb
Here I have attached the weekly midpoint indicator. These 2 indicators in my opinion are best viewed on the 4 hr chart.
Files:
weeklyfmidpoints.mq4
9 kb
hi~thank you for your amazing work! is it possible to add for weekly and monthly the formula for top central and bottom central? see below...
TC,. (Pivot - BC) + Pivot
Pivot '" (High + Low + Close)!3
BC = (High + Low)/2
thank you!
TC,. (Pivot - BC) + Pivot
Pivot '" (High + Low + Close)!3
BC = (High + Low)/2
thank you!
do you have something like this indi which works on daily to work on weekly and monthly ar maybe yearly?
Thanks
Files:
sdk-pivots-v1.2.mq4
43 kb
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
For those on the forum who use weekly pivots, I have attached a modified version of JellyBean's weekly pivots indicator. This modification creates an indicator that shows the weekly midpoints. One could load this and the weekly pivots indicator on their chart and then save both as a template. When you want to view both the weekly pivots and the weekly mid-points, then you just load the template. All credit goes to JellyBean for the original indicator.