A few days ago (after switching off the light in the flat and rebooting the computer) I found that the commentary from the right side of the indicator window jumped to the price chart window (!).
Reinstalling the indicator doesn't help. Removing the chart and reinstalling it doesn't help either.
It would probably be better to write an indicator that monitors the spread and not enter if the max spread on the last n bars has exceeded the allowable spread. This is more efficient, especially with market execution.
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.
1. Expert Advisor - one is running.
2. Yes, - I will try to put Sleep now , - thank you.
Pass through a filter!
If it is not a secret, can you give an example of such a filter?
Here's a question. Is it possible to set the expiry time condition programmatically?
Thank you.
And another question.
The price line indicator for 5 instruments.
A few days ago (after switching off the light in the flat and rebooting the computer) I found that the commentary from the right side of the indicator window jumped to the price chart window (!).
Reinstalling the indicator doesn't help. Removing the chart and reinstalling it doesn't help either.
Code for the execution of the rendering comment:
Can you please tell me how to fix the glitch? How to return the "prodigal son" back to the indicator window?
And create a profile without the defective window and reinstall the terminal, by the way maybe the terminal version has been updated?
I still have the 225 version, an old friend is better than the new two. )
I meant create a profile to transfer, in case the terminal is reinstalled.
Thank you. I'll try to create a new profile.
It's very possible I may have updated the terminal version. Can't remember exactly - it happened before the weekend.
Can you give me an example of such a filter?
Like this one:
if (MarketInfo("EURUSD", MODE_ASK) - MarketInfo("EURUSD", MODE_BID) > MaxSpread)
return(0);
Can the expiry time condition be set programmatically?
Like this:
Here's a script that tracks the bid-ask spread (specifically for brokerage brokerage).
Somewhere above in the middle of the thread there is the same version, but as an indicator.
My script consumes significant CPU resource (-schedule), so it's better to put it just before opening/closing, and then remove it at once.
6NZ0, M1
If it is not a secret, can you give an example of such a filter?
Here's a question. Is it possible to set the expiry time condition programmatically?
Thank you.
Everything can be done programmatically.
The spread is taken both when opening an order and when closing it, the spread is floating.
This tool is not annoying but very informative for brokers.
-you can set any coefficients for instruments and as a result, lot, deposit and spread are calculated automatically.
-it also shows if the market is closed or not, if 0, it is closed, if 1, it is open.
-accurate calculation of the point value
-shows the expiry date.