Price degap function wanted

Questions about MultiCharts and user contributed studies.
wilddog
Posts: 4
Joined: 09 Aug 2011

Price degap function wanted

Postby wilddog » 20 Jul 2012

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

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Price degap function wanted

Postby JoshM » 21 Jul 2012

How do you get it for every bar and display only today's chart, not mirror charts?
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.

Code: Select all

if (Date > Date[1]) then
// calculate off-set here
Then apply that daily correction to every bar, and recalculate it again on the new day.

In theory, that's one way to approach this problem.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Price degap function wanted

Postby TJ » 21 Jul 2012

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
Do a search for "Shift-ALL". It does the bar-by-bar de-gap.

wilddog
Posts: 4
Joined: 09 Aug 2011

Re: Price degap function wanted

Postby wilddog » 22 Jul 2012

Thanks for responding, when I do a search it come back with no posts.
Attachments
shift.png
(75.79 KiB) Downloaded 257 times


Return to “MultiCharts”