I see the above has been requested on other forums.
It is a function that equates the previous close to the current open of everybar in the timeframe.
Tams has created a shifted function, but it only does the previous close to open on the day. How do you get it for every bar and display only today's chart, not mirror charts?
http://www.traderslaboratory.com/forums ... ifted.html
Thanks
Price degap function wanted
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: Price degap function wanted
I don't know what you mean with 'mirror charts', but if you want to calculate this for every bar on your chart, you could use a simple check to see if a new day has happened, and if yes, then calculate the offset for that day.How do you get it for every bar and display only today's chart, not mirror charts?
Code: Select all
if (Date > Date[1]) then
// calculate off-set here
In theory, that's one way to approach this problem.
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: Price degap function wanted
Do a search for "Shift-ALL". It does the bar-by-bar de-gap.I see the above has been requested on other forums.
It is a function that equates the previous close to the current open of everybar in the timeframe.
Tams has created a shifted function, but it only does the previous close to open on the day. How do you get it for every bar and display only today's chart, not mirror charts?
http://www.traderslaboratory.com/forums ... ifted.html
Thanks
Re: Price degap function wanted
Thanks for responding, when I do a search it come back with no posts.
- Attachments
-
- shift.png
- (75.79 KiB) Downloaded 257 times