I trya lot, butthe queriesaretoo often,itis requested eachtick for drawing the objects.
Would bethe best if the creation of all past (day names) objects are inthe OnInit-block and the creationof new day names take place only in the very first tick of a first new day bar, like TimeDayOfWeek(Time[0]) != TimeDayOfWeek(Time[1]) to avoid unnecessaryqueries.
I trya lot, butthe queriesaretoo often,itis requested eachtick for drawing the objects.
Would bethe best if the creation of all past (day names) objects are inthe OnInit-block and the creationof new day names take place only in the very first tick of a first new day bar, like TimeDayOfWeek(Time[0]) != TimeDayOfWeek(Time[1]) to avoid unnecessaryqueries.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi deVries,
looks great!
How do you solve the problem with code? Is there an article at Codebase?
you have to write the code in a proper way to change the objects position in case you zoom in / out
if the price change more then a point then move the objects of the indicator
version for mq5 is ready for proofreading in codebase mql5
version of mq4 it can be a bug in
but if i place this logic in int OnCalculate( ......
it works there also ....
if you tried then show your attempt for getting help making it so we can guide you places where you go wrong
Ok, thanks, I am waiting for the Codebase-article.
Actually, we want to see your coding attempt first. Post here. Use SRC for codes.
I try a lot, but the queries are too often, it is requested each tick for drawing the objects.
Would be the best if the creation of all past (day names) objects are in the OnInit-block and the creation of new day names take place only in the very first tick of a first new day bar, like TimeDayOfWeek(Time[0]) != TimeDayOfWeek(Time[1]) to avoid unnecessary queries.
I try a lot, but the queries are too often, it is requested each tick for drawing the objects.
Would be the best if the creation of all past (day names) objects are in the OnInit-block and the creation of new day names take place only in the very first tick of a first new day bar, like TimeDayOfWeek(Time[0]) != TimeDayOfWeek(Time[1]) to avoid unnecessary queries.
NewTradingDay 2013.04.19
a name and a date of the object