nanningbob wrote:
I NEED THAT DAILY PIVOT INDI WORKING
Bob,
in short: I think I could make it working, I checked it with an Cowboy IBFX demo.
Please try and let me know if this is working for you.
in long:
change log
[*]fixed mid line extensions. for mid lines it was actually never working
[*]support for Sunday day candles, as requested
[*]Text on/off option (default:off): we have the color code, I see no real need to name the lines or show the distance. Easy to switch it back on
A few comments on wtf is so difficult with this daily pivot. And this is my coders perspective.
I should be so easy, just take the previous day bar(from D1 time frame) and read HLC, little math, done. That works perfectly if you get true day bars, i.e. exactly 5 (five!) bars. So what is
a day? In forex, on almost all web sites and boards, common sense is, the forex day starts when a new trading week starts. That is 22:00/23:00 GMT, or afaik 17:00 NY time. Calling it a
forex day, it would just make sense, that this days start at 00:00 in our forex world, for all of use, same virtual timezone. That's what brokers with GMT+2/3 server time do, and that's why many love it (me too!).
From at coders perspective it gets a bit difficult to deal with 6 day candles, where the first contains just 2 hours and the last 22 hours. Look at the pic, really strange these Sunday micro-candles.
One can fix it by basically reading hourly bars and compose its own daily bars, maybe somebody did this, I for sure will not.
The current implementation just ignores the 2hour Sunday bar and takes the 22hour Friday bar for calculation for Monday Pivots. Incorrect? Yes, but seems still acceptable. Just keep this in mind.
I shut up now, it's 10.4 here and not 10.5
/candletiger
sunday candles.jpg
You do not have the required permissions to view the files attached to this post.