![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
There are several trading strategies that use 10 min bars (see the ones from the Trading Instutute as an example)
Granted that you have 1, 5, 15,30 min bars but you do not have 10 minute bars.
I am sure it would be a trivial change for you to support this.
Can you modify MQL4 and MetaTrader 4 charts by adding 10 minute bars, please?
Also there is a bug when you try to return several call by reference parameters from another library.
Try this in one library in a separate file.
In test.mql:
void percentile(string symbol, double& value1, double& value2)
{
if (symbol == "GBPUSD")
{
value1 = 10;
value2= 20;
}
else
{
value1 = 50;
value2 = 60;
}
}
Now in your expert advisor import the header file for the above:
#include "test.mqh"
int start()
{
double value1, value2;
percentile("GBPUSD", value1, value2);
Print("value1=", value1, " value2=", value2);
percentile("EURUSD", value1, value2);
Print("value1=", value1, " value2=", value2);
}
Regards,
Karan