Task: building Fibonacci lines of the previous day from the minimum price for yesterday to the maximum? How can this be done technically? Exactly calling the object creation function exactly once a day? Thanks.
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Our community is a completely independent place for communication between forex traders and software developers for trading platforms Metatrader 4 and Metatrader 5
Create A New Account
royalgoose
Thanks!
In this case, this thing will be triggered every day at 00: 00, and how can I change the time? For example, every day at 10: 00 ?
andreifan
godzilla
Why reinvent the wheel, everything is already there!
trendhunter
Something like that:
global:
datetime = lastDay;
In OnTick()
if(lastDay != iTime(Symbol (), PERIOD_D1, 1))
{
//draw your FIBA
if (if FIBA is drawn) lastDay = iTime(Symbol (), PERIOD_D1, 1);
}
It’s a fish. Adjust to yourself.
igorm
at the first call, draw a FIBA And remember the opening time of bar #1 on TF D1, then compare the remembered time of bar #1 on TF D1 with the time received when calling the function, if the time of bar #1 has changed, then a new day has come