![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
Hi mladen,
Can you please take a look at these indicators and tell me if they are fixable ?
deltaforce volume - I cant see the red down bars for some reason
deltaforce = I cant adjust the thickness of the bars as they keep returning to default
Your help is much appreciated...
Hi mladen,
Can you please take a look at these indicators and tell me if they are fixable ?
deltaforce volume - I cant see the red down bars for some reason
deltaforce = I cant adjust the thickness of the bars as they keep returning to default
Your help is much appreciated...
Raddyo
Here is this one first : deltaforce_volume_1.mq4
Hi mladen,
Can you please take a look at these indicators and tell me if they are fixable ?
deltaforce volume - I cant see the red down bars for some reason
deltaforce = I cant adjust the thickness of the bars as they keep returning to default
Your help is much appreciated...
And try out this one too : deltaforce_3.mq4
I will give them a go. Thanks a lot and good luck!
Hi Guys, i was wondering if some good heart coder could convert from MQ5 to Mq4 the EA part described in this article: https://www.mql5.com/en/articles/236, i believe the adapter dll can be used in mq4 with no need of modification, im trying to test some NN strategies in mq4.. Thanks in advance!
Hi Guys, i was wondering if some good heart coder could convert from MQ5 to Mq4 the EA part described in this article: https://www.mql5.com/en/articles/236, i believe the adapter dll can be used in mq4 with no need of modification, im trying to test some NN strategies in mq4.. Thanks in advance!
This script work for metatrader 4 (the rest needs much more time):
//+------------------------------------------------------------------+
input string Export_FileName = "NeuroSolutions\\data.csv"; // File for exporting (in the folder "MQL5\Files")
input int Export_Bars = 260; // Number of lines to be exported
//+------------------------------------------------------------------+
void OnStart()
{
// Create the file
int file = FileOpen(Export_FileName, FILE_WRITE|FILE_CSV|FILE_ANSI, ',');
if (file != INVALID_HANDLE)
{
// Write the heading of data
string row="";
for (int i=0; i<=5; i++)
{
if (StringLen(row)) row += ",";
row += "Open"+i+",High"+i+",Low"+i+",Close"+i;
}
FileWrite(file, row);
// Copy all required information from the history
MqlRates rates[], rate;
int count = Export_Bars + 5;
if (CopyRates(Symbol(), Period(), 1, count, rates) < count)
{
Print("Error! Not enough history for exporting of data.");
return;
}
ArraySetAsSeries(rates, true);
// Write data
for (int bar=0; bar<Export_Bars; bar++)
{
row="";
double zlevel=0;
for (i=0; i<=5; i++)
{
if (StringLen(row)) row += ",";
rate = rates;
if (i==0) zlevel = rate.open; // level for counting of prices
row += NormalizeDouble(rate.open -zlevel, Digits()) + ","
+ NormalizeDouble(rate.high -zlevel, Digits()) + ","
+ NormalizeDouble(rate.low -zlevel, Digits()) + ","
+ NormalizeDouble(rate.close-zlevel, Digits());
}
FileWrite(file, row);
}
FileClose(file);
Print("Export of data finished successfully.");
}
else Print("Error! Failed to create the file for data export. ", GetLastError());
}
//+------------------------------------------------------------------+This script work for metatrader 4 (the rest needs much more time):
//+------------------------------------------------------------------+
input string Export_FileName = "NeuroSolutions\\data.csv"; // File for exporting (in the folder "MQL5\Files")
input int Export_Bars = 260; // Number of lines to be exported
//+------------------------------------------------------------------+
void OnStart()
{
// Create the file
int file = FileOpen(Export_FileName, FILE_WRITE|FILE_CSV|FILE_ANSI, ',');
if (file != INVALID_HANDLE)
{
// Write the heading of data
string row="";
for (int i=0; i<=5; i++)
{
if (StringLen(row)) row += ",";
row += "Open"+i+",High"+i+",Low"+i+",Close"+i;
}
FileWrite(file, row);
// Copy all required information from the history
MqlRates rates[], rate;
int count = Export_Bars + 5;
if (CopyRates(Symbol(), Period(), 1, count, rates) < count)
{
Print("Error! Not enough history for exporting of data.");
return;
}
ArraySetAsSeries(rates, true);
// Write data
for (int bar=0; bar<Export_Bars; bar++)
{
row="";
double zlevel=0;
for (i=0; i<=5; i++)
{
if (StringLen(row)) row += ",";
rate = rates;
if (i==0) zlevel = rate.open; // level for counting of prices
row += NormalizeDouble(rate.open -zlevel, Digits()) + ","
+ NormalizeDouble(rate.high -zlevel, Digits()) + ","
+ NormalizeDouble(rate.low -zlevel, Digits()) + ","
+ NormalizeDouble(rate.close-zlevel, Digits());
}
FileWrite(file, row);
}
FileClose(file);
Print("Export of data finished successfully.");
}
else Print("Error! Failed to create the file for data export. ", GetLastError());
}
//+------------------------------------------------------------------+Thanks mladen, thats the script to save the data to a csv file.. i was looking for the EA itself.. or at least a way to use the dll calls in mq4.. maybe someone here have some spare time to help me out...
Gap in Lines
Some indicators, if you take your MT off line and then go back online later, will leave a gap in the lines or symbols etc. It will start plotting where you reconnected and ignore the past. Does anyone know exactly what causes this and what to do about it?
Big Be
Hi Mladen,
Thanks for your help with DeltaForce, you are the best!
1 - Could you please tell me if this indicator can be made into Heiken Ashi candles = RSI Bars
2 - And this indicator keeps drawing annoying red dots on the break of a trend line and I want to switch them off please = Shi Channel MTF
Your help is much appreciated as always..
Hi Mladen,
Thanks for your help with DeltaForce, you are the best!
1 - Could you please tell me if this indicator can be made into Heiken Ashi candles = RSI Bars
2 - And this indicator keeps drawing annoying red dots on the break of a trend line and I want to switch them off please = Shi Channel MTF
Your help is much appreciated as always..
Raddyo
SHI channel repaints (all the shi indicator do repaint). Anyway, I can not change the ex4 file