
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
Good afternoon:
As always excuse my English.
Mladen, it would be possible to conduct any modification to the indicator attached you are to have a version that is installed in the main window, but now can not find. That would be the indicator that I need.
I wanted to know if you can add this subchart indicators, ie once loaded the indicator in the main window, let us add the indicators we have in our custom indicators folder.
You can do what I'm asking.
Regards
HermoHermo,
Unfortunately we can not add custom indicators to another custom indicators (that SubChart is an indicator) in metatrader 4. Even in metatrader 5 where it is possible, you can not choose to which value of the "basic" custom indicator you wish the indicator to be applied
My indicator don't work, can you fix it
#property copyright ""
#property link ""
#property indicator_separate_window
#property indicator_buffers 3
#property indicator_color1 White
#property indicator_color2 Red
#property indicator_color3 Blue
//---- input parameters
extern int Periods=14;
extern double alfa=0.166667;
extern double gam=0.5;
extern int MA_Shift=0;
//---- buffers
double ExtMapBuffer1[];
double LRS[];
double MSROC[];
double DIFF[];
int ExtCountedBars=0;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexShift(0,MA_Shift);
SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(1,LRS);
SetIndexDrawBegin(1,Periods);
SetIndexStyle(2,DRAW_LINE);
SetIndexBuffer(2,MSROC);
SetIndexDrawBegin(2,2*Periods+1);
SetIndexBuffer(3,DIFF);
SetIndexStyle(3,DRAW_LINE);
SetIndexDrawBegin(3,2*Periods+1);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
double del=0;
double prev=0;
if(Bars<=3) return(0);
ExtCountedBars=IndicatorCounted();
//---- check for possible errors
if (ExtCountedBars<0) return(-1);
//---- last counted bar will be recounted
if (ExtCountedBars>0) ExtCountedBars--;
int i=Bars-3;
if(ExtCountedBars>3) i=Bars-ExtCountedBars-1;
//---- main calculation loop
while(i>=0)
{
if(i==Bars-3)
{
ExtMapBuffer1=Close;
ExtMapBuffer1=Close;
}
prev=ExtMapBuffer1-gam*(ExtMapBuffer1-ExtMapBuffer1);
del=Close-prev;
ExtMapBuffer1=del*alfa+prev;
i--;
}
int counted_bars=IndicatorCounted();
//----
if(Bars<=2*Periods+1) return(0);
//---- initial zero
if(counted_bars<1)
{
for(i=1;i<=Periods;i++) LRS=0.0;
for(i=1;i<=2*Periods+1;i++) MSROC=0.0;
for(i=1;i<=2*Periods+1;i++) DIFF=0.0;
}
//---- last counted bar will be recounted
int limit=Bars-counted_bars;
if(counted_bars>0) limit++;
//---- calculating these new bars only
for(i=0; i<limit; i++)
{
LRS =ExtMapBuffer1;
} // end FOR
//---- calculate Moving Slope Rate of change
for(i=0; i<limit; i++)
{
MSROC =LRS-LRS;
}
for(i=0; i<limit; i++)
{
DIFF =LRS-MSROC;
}
return(0);
}
//+------------------------------------------------------------------+
#property copyright ""
#property link ""
#property indicator_separate_window
#property indicator_buffers 3
#property indicator_color1 White
#property indicator_color2 Red
#property indicator_color3 Blue
//---- input parameters
extern int Periods=14;
extern double alfa=0.166667;
extern double gam=0.5;
extern int MA_Shift=0;
//---- buffers
double ExtMapBuffer1[];
double LRS[];
double MSROC[];
double DIFF[];
int ExtCountedBars=0;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexShift(0,MA_Shift);
SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(1,LRS);
SetIndexDrawBegin(1,Periods);
SetIndexStyle(2,DRAW_LINE);
SetIndexBuffer(2,MSROC);
SetIndexDrawBegin(2,2*Periods+1);
SetIndexBuffer(3,DIFF);
SetIndexStyle(3,DRAW_LINE);
SetIndexDrawBegin(3,2*Periods+1);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
double del=0;
double prev=0;
if(Bars<=3) return(0);
ExtCountedBars=IndicatorCounted();
//---- check for possible errors
if (ExtCountedBars<0) return(-1);
//---- last counted bar will be recounted
if (ExtCountedBars>0) ExtCountedBars--;
int i=Bars-3;
if(ExtCountedBars>3) i=Bars-ExtCountedBars-1;
//---- main calculation loop
while(i>=0)
{
if(i==Bars-3)
{
ExtMapBuffer1=Close;
ExtMapBuffer1=Close;
}
prev=ExtMapBuffer1-gam*(ExtMapBuffer1-ExtMapBuffer1);
del=Close-prev;
ExtMapBuffer1=del*alfa+prev;
i--;
}
int counted_bars=IndicatorCounted();
//----
if(Bars<=2*Periods+1) return(0);
//---- initial zero
if(counted_bars<1)
{
for(i=1;i<=Periods;i++) LRS=0.0;
for(i=1;i<=2*Periods+1;i++) MSROC=0.0;
for(i=1;i<=2*Periods+1;i++) DIFF=0.0;
}
//---- last counted bar will be recounted
int limit=Bars-counted_bars;
if(counted_bars>0) limit++;
//---- calculating these new bars only
for(i=0; i<limit; i++)
{
LRS =ExtMapBuffer1;
} // end FOR
//---- calculate Moving Slope Rate of change
for(i=0; i<limit; i++)
{
MSROC =LRS-LRS;
}
for(i=0; i<limit; i++)
{
DIFF =LRS-MSROC;
}
return(0);
}
//+------------------------------------------------------------------+bixwin
It is working, but since you have 3 very different values (2 similar and one around 0) it looks like there are only 2 paralel lines. Check in the data window and you will see that values are changing for each bar
Mladen, i try to have the white line around 0, and the white line don't appear Why ?
Thanks for your quick response.
bixwin
It is there (under the red line)
Set the color of the second buffer to none and you will be able to see it. You are assigning same value to the first buffer (ExtMapBuffer1) and the second one (LRS) that is why they overlap each other.
Request indicator
Good morning to all:
Excuse my English please.
Not if it exists, but can not find.
I need an indicator that other paint color when bar is bigger, the middle range of "n" sessions.
Can you create it for me please.
Regards
Hermo.
Correct error please
Good morning to all:
Please excuse my English please.
This is a request to mladen or mrtools.
I have a problem with EAs attached them in a broker work perfectly and with other brokers launch multiple orders in the same sailing and closes automatically. Do not know why this happens. Could please review the EAs and correct the error.
For example with your account OctaFX mini, works perfectly.
With your account IBFX micro, launches multiple orders in the same sailing and closes automatically, it may be because it is a nano account?
I attached the necessary for the operation of this EA.
The indicator is necessary for the operation of the two EAs.
Regards
Hermo.
Good morning to all:
Please excuse my English please.
This is a request to mladen or mrtools.
I have a problem with EAs attached them in a broker work perfectly and with other brokers launch multiple orders in the same sailing and closes automatically. Do not know why this happens. Could please review the EAs and correct the error.
For example with your account OctaFX mini, works perfectly.
With your account IBFX micro, launches multiple orders in the same sailing and closes automatically, it may be because it is a nano account?
I attached the necessary for the operation of this EA.
The indicator is necessary for the operation of the two EAs.
Regards
Hermo.Hermo, those EA's are 10 point 3 type Ea's maybe check over here https://www.mql5.com/en/forum/174975 but maybe more towards the end of the thread.
mrtools, thank you for everything!
I have another question:
I've followed the steps of this web: How to prepare your tick data for Metatrader 4 | Birt's EA review
I have done all the steps (until generated the X.ecn60_0.fxt in tester/history). When I'm going to test it, it returns me the error: "TestGenerator: internal error because the file not opened".
I can not understand why! I'm using data from DukasCopy, as website says and recommends! I get the files in every folder and I restart after the script to convert data (CSV2FXT.mq4).
The problem is when I try to use this data.
What can I do?
Thank you in advance!
Hermo
mrtools, thank you for everything!
I have another question:
I've followed the steps of this web: How to prepare your tick data for Metatrader 4 | Birt's EA review
I have done all the steps (until generated the X.ecn60_0.fxt in tester/history). When I'm going to test it, it returns me the error: "TestGenerator: internal error because the file not opened".
I can not understand why! I'm using data from DukasCopy, as website says and recommends! I get the files in every folder and I restart after the script to convert data (CSV2FXT.mq4).
The problem is when I try to use this data.
What can I do?
Thank you in advance!
HermoDon't know Hermo copied this from his troubleshooting ::::::
4. My backtest stops as soon as I click the start button. The backtesting journal tab displays TestGenerator: internal error because the file not opened. What is wrong?
That’s MT4′s way of notifying you that it refuses to overwrite an FXT file that is set read-only. If you’re using the Birt’s Patch script, you probably forgot to run it (keep in mind that you have to run it once after every terminal restart, prior to starting the backtest) or you might be using an outdated version.
If you’re using the Tick Data Suite, you didn’t start the terminal via tds.exe.
But sounds like you already did all that.