I am working with 3 mins time frame chart. I want to draw monthly HIGH and monthly LOW on this chart.
If the today HIGH is also monthly HIGH, I can not see what was monthly HIGH as today's HIGH is overwriting earlier monthly HIGH.
Please suggest how find monthly HIGH without considering today's data (monthly HIGH till yesterday).
The code I am using to find monthly HIGH is given below. It finds monthly HIGH till today.
This appears to be a simple resolve, otherwise there are more complex ways in which you can detect the same values and plottext or alert yourself of an overlap.
Thanks.
This piece of code draws daily HIGH & Monthly HIGH which do include TODAY's data for calculation.
My requirement is finding monthly HIGH which do not consider today's data. Monthly HIGH till last day excluding today.
Thank you.
Can you clarify following point please.
The Monthly HIGH will be for a calendar month or for 30 days?
By Calendar month, I mean.. as of today on 8th Jan, it will find monthly HIGH for 1st Jan to 7th Jan.
I am looking for 30 days irrespective of the today's date.
The whole time your were talking about monthly. You even used inMonthly in your first post and following ones. You said monthly High/low all the time. Nowhere, I mean nowhere anywhere was any mention of "not calendar month but n-days high/low"!
Monthly means as per calendar month but not some days span!
Surprise, surprise.
Now all of the sudden guy wants 30 days period (no matter from where it starts) instead of calendar month.
If you like wasting time of others or playing games then go to different forum!
This is not kiddy forum!
Enough is enough. Expecting and getting free code which takes time but showing complete disrespect by playing "Let's hide important information" games the whole time.
How about checking yourself?! What do you think do "newmth" & "mthhigh" variables mean? Output them. Too much work on your hand? Me too.
Thank you very much for helping me with your expertise and effort.
I was under the impression, MONTHLY means 30 days. Now I understand it is calendar month. After going through the code given by you I understood, it is not.
However, the pointer given by you helped me to code for this requirement.