H4 rolling pivot point ?

Post Reply
User avatar
Gamma_gallus
Trader
Posts: 118
Joined: Wed Nov 16, 2011 2:03 pm
Location: France

H4 rolling pivot point ?

Post by Gamma_gallus »

Hello !

Do you know, by chance, where I could find a rolling pivot point indi ((H+L+Close)/3) calculated based on the last H4 bar ?
(redrawn and re-calculated every H4 bar)
This gives a good flavour of the market sentiment.

On FF there's one (post 5), but when i drop it onto the chart, I'm quite disappointed by what I see (channel like)..
http://www.forexfactory.com/showthread.php?p=5144858

Ideally I'd just like to see a one line drawn on the chart.

Thx
Gamma
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: H4 rolling pivot point ?

Post by gaheitman »

Gamma_gallus wrote:Hello !

Do you know, by chance, where I could find a rolling pivot point indi ((H+L+Close)/3) calculated based on the last H4 bar ?
(redrawn and re-calculated every H4 bar)
This gives a good flavour of the market sentiment.

On FF there's one (post 5), but when i drop it onto the chart, I'm quite disappointed by what I see (channel like)..
http://www.forexfactory.com/showthread.php?p=5144858

Ideally I'd just like to see a one line drawn on the chart.

Thx
Gamma
Are you looking to just have a single horizontal bar or do you want it valid historically. If the latter you could always change the color on the lines you don't want to see or edit the code and change this section:

Code: Select all

	SetIndexStyle(0,DRAW_LINE,STYLE_SOLID);
	SetIndexStyle(1,DRAW_LINE,STYLE_DOT);
	SetIndexStyle(2,DRAW_LINE,STYLE_DOT);
	SetIndexStyle(3,DRAW_LINE,STYLE_SOLID);
	SetIndexStyle(4,DRAW_LINE,STYLE_DOT);
	SetIndexStyle(5,DRAW_LINE,STYLE_DOT);
	SetIndexStyle(6,DRAW_LINE,STYLE_SOLID);
to this:

Code: Select all

	SetIndexStyle(0,DRAW_NONE);
	SetIndexStyle(1,DRAW_NONE);
	SetIndexStyle(2,DRAW_NONE);
	SetIndexStyle(3,DRAW_LINE,STYLE_SOLID);
	SetIndexStyle(4,DRAW_NONE);
	SetIndexStyle(5,DRAW_NONE);
	SetIndexStyle(6,DRAW_NONE);
and this section:

Code: Select all

			drawLabel("R3",R3,Lime);
			drawLabel("R2",R2,Green);
			drawLabel("R1",R1,DarkGreen);
			drawLabel("PP",P, Blue);
			drawLabel("S1",S1,Maroon);
			drawLabel("S2",S2,Crimson);
			drawLabel("S3",S3,Red);
to this:

Code: Select all

//			drawLabel("R3",R3,Lime);
//			drawLabel("R2",R2,Green);
//			drawLabel("R1",R1,DarkGreen);
			drawLabel("PP",P, Blue);
//			drawLabel("S1",S1,Maroon);
//			drawLabel("S2",S2,Crimson);
//			drawLabel("S3",S3,Red);
George
User avatar
Gamma_gallus
Trader
Posts: 118
Joined: Wed Nov 16, 2011 2:03 pm
Location: France

Re: H4 rolling pivot point ?

Post by Gamma_gallus »

Hi George,

Thanks a lot, indeed I'm just looking at a single horizontal line, with no special need for the history.
I'll update the code as per your suggestions, thank you very much for your help :)

Gamma
ewinner
Trader
Posts: 36
Joined: Wed Nov 16, 2011 9:36 am
Location: South West Ireland

Re: H4 rolling pivot point ?

Post by ewinner »

Hi Gamma,

I just modified one of my indicators to do what you need.


Cheers

Mark
You do not have the required permissions to view the files attached to this post.
User avatar
Gamma_gallus
Trader
Posts: 118
Joined: Wed Nov 16, 2011 2:03 pm
Location: France

Re: H4 rolling pivot point ?

Post by Gamma_gallus »

ewinner wrote:Hi Gamma,

I just modified one of my indicators to do what you need.


Cheers

Mark

Really nice Mark, many thanks, works like a charm !

Gamma
ewinner
Trader
Posts: 36
Joined: Wed Nov 16, 2011 9:36 am
Location: South West Ireland

Re: H4 rolling pivot point ?

Post by ewinner »

Your welcome :D

Mark
User avatar
nicoacademia
Trader
Posts: 296
Joined: Wed Aug 08, 2012 12:07 pm
Location: Osciland

Re: H4 rolling pivot point ?

Post by nicoacademia »

ewinner wrote:Your welcome :D

Mark
Hi Mark,

i downloaded this three day rolling pivot point indicator

but it keeps updating during the trading day hogging cpu power

would it be possible to help n aid me by correcting its code?

thanks in advance~

:mrgreen:
You do not have the required permissions to view the files attached to this post.
weakness? :twisted:
123Reverse
Trader
Posts: 49
Joined: Sun May 05, 2013 2:54 am
Location: Australia

Re: H4 rolling pivot point ?

Post by 123Reverse »

I'm thinking history would just be a sma, (hlc)/3, p1.

However ewinner's pivot line is good for using on a different t/f chart. Thanks ewinner.
Post Reply

Return to “Indicators”