Im very new to using MQL5 and Expert Advisors. I have spent a while getting the basic code for a Triple Super trend advisor. At the point im at it buys and sells and closes the position. However, it is extremely slow in doing each action resulting in missing the trend. I really cant understand if it is the way i have codded it or something else. Some of this code was me trying new ideas. I have also attached a file showing the extent of delay. After further testing it seems as though it will trigger the close or opening of position but takes a while for it go through as shown by the closing of the postion in image 2 eventhough the super trend all show as 3 red. This also goes for historical debug. It seems to be effected by the timescale of the chart. 5m takes longer then 1m.
Files:
22.09.2023_19.34.45_REC.png
5 kb
22.09.2023_20.04.44_REC.png
10 kb
- Volatility Quality Index
- The orders are shown too late in the results tab
- Closing all positions when a profit is targeted or a % BUT....
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register