Thought I’d open a new thread about a cash hours pivot point indicator for indicies.
I have code at the moment for an indicator that allows you to manually enter previous days high and low, and the pivots will be worked out for you, but it means you manually typing in the previous days data from livecharts or yahoo finance for example.
What I am trying to achieve is an indicator that is the same as IG PRT pivot points, but uses the cash hours rather than out of hours SB data.
Maybe, you don’t see my other reply, but there are already many pivot points indicators on the website, you can find them all with the search form.
Tell me if you can find what you are looking for or if it needs customized solution 🙂
Sorry Nicolas, I did see your other post, I thought you were asking me to start a new thread.
The ones I’ve seen so far don’t quite fit the bill.
I’m looking for a pivot point indicator that only used the cash market hours to calculate the pivots for the indicator.
With this one: http://www.prorealcode.com/prorealtime-indicators/pivot-points-intraday/
You can modify the start and end hour for the calculation, not sure it would take the hours from the previous day though. Please tell me if it suits your needs.
Thanks Nicolas,
That’s pretty close to the thing I was thinking.
Just needs to look at the previous days H+L+C during cash hours.
Is there an instruction that can be added to do that?
What are exactly “cash hours”?
gmt cash hours are 8am to 4.30pm
I don’t want the out of hours spread bet data being used to calculate the pivots
So far this is what I’ve got for the pivot calculator.
It’s a bit rough and ready, and there’s some things I’d like to clean up.
IF DATE[0] = TODAY THEN
MP = ( (MClose + MHi + MLo ) / 3)
CBOL = MClose + ( ( (MHi - MLo) * 1.1) / 2)
CBOS = MClose - ( ( (MHi - MLo ) * 1.1) / 2)
MR3 = MHi + ( 2 * (MP - MLo) )
MR2 = MP + (MHi - MLo)
MR1 = (2 * MP) - MLo
MS1 = (2 * MP) - MHi
MS2 = MP - (MHi - MLo)
MS3 = MLo - ( 2 * (MHi - MP) )
MMLO = MLO
MMHI = MHI
MGAP = MCLOSE
MM2DH = M2DH
MM2DL = M2DL
MMPWH = MPWH
MMPWL = MPWL
MMWPP = MWPP
ENDIF
RETURN MP as "Pivot", CBOL as "CBOL", CBOS as "CBOS", MR3 as "R3", MR2 as "R2", MR1 as "R1", MS1 as "S1", MS2 as "S2", MS3 as "S3", MGAP as "Gap", MMHi as "Hi", MMLo as "Lo", MM2DH as "2DH", MM2DL as "2DL", MMPWH as "Prev Week High", MMPWL as "Prev Week Low", MMWPP as "Weekly Pivot"
For some reason when I hover over the bars to get the levels, it also shows all the variables, as you can see from the image.
I’d like it not to show the variables, but just the label.