Wrong Pivot points on Futures NQ and DJ
Forums › ProRealTime English forum › ProBuilder support › Wrong Pivot points on Futures NQ and DJ
- This topic has 52 replies, 6 voices, and was last updated 10 months ago by PeterSt.
-
-
02/08/2024 at 9:12 AM #227638
For daily pivot point i did this (that i already posted several times here).
For Daily Pivot Point12345678910IF (DAYOFWEEK=DAYOFWEEK[1] and DAYOFWEEK<>DAYOFWEEK[2] and dayofweek>1) or (dayofweek<DAYOFWEEK[1]) thenIF dayofweek <> 1 or (dayofweek<DAYOFWEEK[1]) THENPivotDuJour = (DHigh(1) + DLow(1) + DClose(1)) / 3Elsif dayofweek = 1 thenPivotDuJour = (DHigh(2) + DLow(2) + DClose(2)) / 3endifdrawvline(barindex)endifReturn PivotDuJourGive me few minutes / 1 hour, i am looking at it for monthly/weekly pivot point
Can you try this code and tell m if it works well for daily pivots?
Can you do a screen shot at same bar as previously and add daily embeded PRT pivots to see when it change the day compares to that code ? (indicator blow price please)
02/08/2024 at 9:37 AM #227639The problem was the use of Close[1] instead of DClose(1) which corresponds is the Settlement Price (Prix de Règlement) and can be different from Close[1].
Jerome, if you don’t mind me interfering …
So you are using DClose explicitly to solve your problem ? (I hope I followed sufficiently). Well, personally me does not see any relationship with a Settlement time *if* that is related anyway (I still like to believe you, but for other reasons, as I described). Thus :
There is no way in my mind that I would consider the Settlement of e.g. the DAX (and much more European stuff) to be leading to the closing of the last day. Thus, to me this is BS, never mind that e.g. Bloomberg et all officially use the profit (or loss) of such a Future – gained past 17:30 – in the next day’s “So how does Europe do today”. It just makes no sense. 22:00 does (to me).
This could be slightly different for NQ and such, because of Q figures reported after 22:00 – and before real closing (23:00). The working is the same as with DAX (the profit/loss after 22:00 counts for the next day) because because Q figures are a kind of “unreal” for the last trading day, I myself tend to deem that surrogate and I will look at what happens the next day (e.g. what Tesla loses at 12% in the period between 22:00 and 02:00 (but which contributes to Futures from 22:00 and from 00:00 to 02:00 and eventually from 10:00 to 15:30 as well) … may end up as -7% at 15:30.
If you can’t follow my reasoning – fine, because it is personal (trading “vision”). Put I think the point remains : Settlement time (and day) can hardly be related for real to Pivot Points in the sense of your thread.That DClose may return 22:00 instead of 23:00 is something else.
And that DClose may return 17:30 instead of 22:00 (which I actually don’t believe”) makes it plain wrong to work with. But please remember, this is my personal vision.Lastly, in any event it may change your mind on what’s right and what’s wrong to the sense of Close vs DClose, and it may make you think that the problem is not solved at all. By coincidence it could work out for the better. Last week. But not next week.
Btw, what about Expiration ? The price would change drastically. That too is surrogate, but in the mean time it technically happens (weighing in of future Interest for the coming 3 months).
02/08/2024 at 9:42 AM #22764202/08/2024 at 9:58 AM #227647Can you try this code and tell m if it works well for daily pivots? Can you do a screen shot at same bar as previously and add daily embeded PRT pivots to see when it change the day compares to that code ? (indicator blow price please)
Hi Lucas,
The embedded PRT Pivot Indicator won’t show in the pane below (or I don’t know how to do that today). But anyway, for yesterday it is exactly the same as yours. 17782,42.
The TF I used here is 1 minute.
02/08/2024 at 10:11 AM #227650Here the crosshair is at 22:00 last night (07-02). See the price in the right margin (1st pic).
The 2nd picture shows DClose(1). So indeed it is the settlement time (17.841,75).For fun I will try DAX too, and if DClose(1) does not show 17:30, I’ll be back.
Edit : It does. So DClose(1) shows the price of 17:30.Btw, DClose(0) shows the current price. Until Settlement (I’m confident).
02/08/2024 at 10:22 AM #227653Hi Peter,
i was talking about my indicator in the table below and PRC embeded pivots on price, to be able to check when exactly the day change for PRX pivots and for my indicator…
Let’s try if now my indicator have the good monthly Pivot ?
Monthly Pivot123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384ONCE DayH = highONCE DayL = lowONCE DayC = closeONCE FullDay = 0ONCE FullWeek = 0ONCE FullMonth = 0IF (DAYOFWEEK=DAYOFWEEK[1] and DAYOFWEEK<>DAYOFWEEK[2] and dayofweek>1) or (dayofweek<DAYOFWEEK[1]) thendrawvline(barindex)if dayofweek <> 1 or (dayofweek<DAYOFWEEK[1]) THENPivotDuJour = (DHigh(1) + DLow(1) + DClose(1)) / 3elsif dayofweek = 1 thenPivotDuJour = (DHigh(2) + DLow(2) + DClose(2)) / 3endifMonthH = max(MonthH,DayH)MonthL = min(MonthL,DayL)MonthC = DayCWeekH = max(WeekH,DayH)WeekL = min(WeekL,DayL)WeekC = DayCpDayofWeekI = DayofWeekIpDayI = DayIpDayH = DayHpDayL = DayLpDayC = DayCDayofWeekI = DayofWeekDayI = DayDayH = HighDayL = LowDayC = CloseIf FullDay thenDayPivot = (pDayH + pDayL + pDayC)/3ElseDayPivot = undefinedFullDay = 1EndifIf DayofWeekI < pDayofWeekI thenpWeekH = WeekHpWeekL = WeekLpWeekC = WeekCWeekH = HighWeekL = LowWeekC = CloseIf FullWeek thenWeekPivot = (pWeekH + pWeekL + pWeekC)/3ElseWeekPivot = undefinedFullWeek = 1Endif//drawvline(barindex)EndifIf DayI < pDayI thenpMonthH = MonthHpMonthL = MonthLpMonthC = MonthCMonthH = HighMonthL = LowMonthC = CloseIf FullMonth thenMonthPivot = (pMonthH + pMonthL + pMonthC)/3ElseMonthPivot = undefinedFullMonth = 1Endif//drawvline(barindex)EndifENDIFDayH = max(DayH,high)DayL = min(DayL,low)DayC = closeReturn MonthPivotBtW it’s LucasBest (other computer/other account)
02/08/2024 at 10:58 AM #227657Sorry for the large screenshot(s).
You can’t win’m all. It is also not the previous month (see 2nd screenshot).Please remember, I am still using a TF of 1 minute.
PS: I would like to help working it out, but I am a bit under (work) pressure (with the same account – haha).
02/08/2024 at 2:40 PM #227665I can’t get this right; regarding the month, there’s too much vagueness involved.** I suppose PRT is doing it right, but I did not even check that. It should be based on how DClose works, but a CloseMonth does not exist. Btw, an OpenMonth does exist, but the issues could be the same as already pointed out (gap). Otoh, you could attest that on a month’s period this is not so important ?
Which brings me to …Why would someone use a Pivot point per calendar month ? I understand … if we use a TF of 1 month we would technically need that. But (again) IMO that is useless because markets don’t work like that. Per Day yes. Per Week yes, but per Month ? not that I can see. Maybe per Year or from Christmas to Christmas, Black Friday to Black Friday.
**): Also again think about the Settling time. Thus, if DClose has proven to work well and uses Settling time (and Lucas can mimic that), then at Dec. 29 possibly similar was happening (I think I recall that US Futures closed at 19:15). This invalidates all testing because settling has been on Jan 2 – or maybe not even that. And if it was for the DAX then maybe for the NQ it was not so (it could have been a day off in the US) and Settlement was postponed to Wednesday Jan. 3 22:00.
-
AuthorPosts
Find exclusive trading pro-tools on