2021.02.2022:50:15.9222021.02.1723:59:59 BTCUSD,Daily: last close (-343597384) > middle band (-565150185) && last close(-343597384) < upper band (-197010131)
but my if logic doesnt work and i dont know why... it's clear that 52402.1 is higher than 51695.2, but i still get buy signal
I think i managed to figure it out.... i had to put everything in my if logic on a previous tick, and now all the values are correct and logic works....
now it places order next day at midnight( on candle close) i don't want that, i would like that it places order at 23:59:00 same day. Do you know how to do that?
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.
I have deleted it and compiled the code, but i get same results again...
It is needed by the indicator. You should check the value. I don't see where it comes from.
This is so weird, when i Print last price or anything else i get correct results
but when i do PrintFormat i get
This is so weird, when i Print last price i get
but when i do PrintFormat i get
Sorry, my bad. I don't usually use PrintFormat. I wrongly assumed %d was for double.
Try this instead.
Sorry, my bad. I don't usually use PrintFormat. I wrongly assumed %d was for double.
Try this instead.
No worries it's fine... now i get correct results
but my if logic doesnt work and i dont know why... it's clear that 52402.1 is higher than 51695.2, but i still get buy signal
No worries it's fine... now i get correct results
but my if logic doesnt work and i dont know why... it's clear that 52402.1 is higher than 51695.2, but i still get buy signal
I think i managed to figure it out.... i had to put everything in my if logic on a previous tick, and now all the values are correct and logic works....
now it places order next day at midnight( on candle close) i don't want that, i would like that it places order at 23:59:00 same day. Do you know how to do that?