I'll try it on Monday when the markets are open, but the first thing I would say is you are not updating the chart once you have changed the objects.
You need a ChartRedraw(0) you do not know how long after you change the objects it will be until the chart is updated so redrawing the chart forces an update.
I'll try it on Monday when the markets are open, but the first thing I would say is you are not updating the chart once you have changed the objects.
You need a ChartRedraw(0) you do not know how long after you change the objects it will be until the chart is updated so redrawing the chart forces an update.
Please have a look at this script:
//+------------------------------------------------------------------+//| Script program start function |//+------------------------------------------------------------------+voidOnStart() {
Print(SymbolInfoDouble(_Symbol,SYMBOL_BID));
Print(SymbolInfoDouble(_Symbol,SYMBOL_ASK));
}
I get the same results from the script. Definitely not identical with the built-in bid/ask lines. But these values are identical with the lines of my EA.
A ChartRedraw(0) is not necessary because I can see my lines changing exactly when the built-in lines change. And it’s always a difference of exactly 5 Points above the ask and below the bid.
It’s definitely a broker issue. I will contact them on Monday.
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 don't use any other indicator on the chart. Only this Test-EA printing the lines. That's all.
post the code and I will try it on my terminal
post the code and I will try it on my terminal
I already posted it on page 2.
I already posted it on page 2.
I'll try it on Monday when the markets are open, but the first thing I would say is you are not updating the chart once you have changed the objects.
You need a ChartRedraw(0) you do not know how long after you change the objects it will be until the chart is updated so redrawing the chart forces an update.
I'll try it on Monday when the markets are open, but the first thing I would say is you are not updating the chart once you have changed the objects.
You need a ChartRedraw(0) you do not know how long after you change the objects it will be until the chart is updated so redrawing the chart forces an update.
Please have a look at this script:
I get the same results from the script. Definitely not identical with the built-in bid/ask lines. But these values are identical with the lines of my EA.
A ChartRedraw(0) is not necessary because I can see my lines changing exactly when the built-in lines change. And it’s always a difference of exactly 5 Points above the ask and below the bid.
It’s definitely a broker issue. I will contact them on Monday.