Re: MT4 Indicator requests

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Re: MT4 Indicator requests

Postby domi8262 » Thu Jun 13, 2019 2:23 am

domi8262 wrote:
Hello everybody. I am new to that forum and I trade with MT4. My broker is forex.com. Forex.com as on there trading platform (Advanced Trading Platform) 2 indicator that I was using together one is (Linear regression forecast Indicator) in dark blue and the other is (Linear Forecast Intercept indicator) in orange you could see in the picture I post. Together they work great.

I tried to find these 2 indicators for MetaTrader 4 on the Web and I could not find it and My programming skill are not there too. There is someone that would be able to program that and if someone could even make a robot with both of them that buy when the linear regression Forcast Indicator crosses over and sell when it crosses under the linear regression intercept Indicator that would be great!

The mustard yellow line (Linear regression Intercept Indicator) is (close, 5) and the blue line ( Linear regression Forcast Indicator) is (Close, 9)


Thanks to anyone ahead.

Dominique
Attachments
LRFI and LRII.jpg
chart with arrow LRII crossing LRFI.jpg
Last edited by domi8262 on Mon Jun 17, 2019 7:06 pm, edited 1 time in total.
domi8262
 
Posts: 3
Joined: Sat Jun 08, 2019 5:52 am


Re: MT4 Indicator requests

Postby domi8262 » Mon Jun 17, 2019 8:42 am

Thanks for your reply. I have this one it's a Linear regression, But Linear Regression forecast Indicator and Linear Regression Intercept Indicator are 2 different indicators and not the same as a regular Linear Regression. I have those a the (Advance trading platform) of Forex.com. They just work differently.

But I appreciate your reply
Thanks
domi8262
 
Posts: 3
Joined: Sat Jun 08, 2019 5:52 am

Re: MT4 Indicator requests

Postby Apprentice » Thu Jun 20, 2019 7:52 am

There is no source code for the indicator mentioned.
Can you provide MQ4 version?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36427
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MT4 Indicator requests

Postby domi8262 » Sun Jul 14, 2019 12:56 pm

Hello If Mq4 is the code for MT4 indicator...that's the thing there is no MQ4 code those indicators are in and another platform and I don't have the code, I am wishing that someone know them enough for create and mt4 version of them... They are well-known indicators by some trader doesn't matter on which platform. I know it will not be easy to get them done on MT4.

Thanks to anyone that could make them, they are good one.

Dominique
domi8262
 
Posts: 3
Joined: Sat Jun 08, 2019 5:52 am

Re: MT4 Indicator requests

Postby Apprentice » Mon Jul 15, 2019 8:19 am

Any platform code, formula or description will help.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36427
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MT4 Indicator requests

Postby Demos4x » Thu Nov 28, 2019 9:50 pm

Apprentice wrote:Any platform code, formula or description will help.


I'm also searching for this indicator for mt4 but it seems that doesn't exist. BUT!!! i found this thread in the ctrader forums that shows the code:

Code: Select all
using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
 
namespace cAlgo.Indicators
{
    [Indicator(IsOverlay = true, AccessRights = AccessRights.None)]
    public class Linearregressionintercept : Indicator
    {
        [Parameter(DefaultValue = 30)]
        public int Period { get; set; }
 
        [Output("LF", Color = Colors.Yellow, PlotType = PlotType.Line)]
        public IndicatorDataSeries LF { get; set; }
 
        [Output("LFI", Color = Colors.Orange, PlotType = PlotType.Line)]
        public IndicatorDataSeries LFI { get; set; }
 
   
        public override void Calculate(int index)
        {
 
 
            double sumx = 0, sumx2 = 0, sumy = 0, sumxy = 0;
 
            for (int i = 1; i <= Period; i++)
            {
                sumx += i;
                sumx2 += i * i;
                sumy += MarketSeries.Close [ index - Period + i  ] ;
                sumxy += MarketSeries.Close[ index - Period + i  ] * i ;
            }
 
            double m = (Period * sumxy - sumx * sumy) / (Period * sumx2 - sumx * sumx);
            double b = (sumy - m * sumx) / Period;
            LF[index] = Period * m + b;
            LFI[index] = b;
 
        }
 
    }
}


Original thread:
https://ctrader.com/forum/indicator-support/10563

Hope it helps. I also wish having this indicator in mt4.

Thank you in advance.
Demos4x
 
Posts: 10
Joined: Thu Nov 28, 2019 9:32 pm

Re: MT4 Indicator requests

Postby Demos4x » Thu Nov 28, 2019 10:14 pm

Apprentice wrote:Any platform code, formula or description will help.


I'm also searching a mt4 version of this indicator, since I saw in Ctrader, didn't find a mt4 version, BUT I found this code of the indicator in Ctrader forum:

Code: Select all
using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
 
namespace cAlgo.Indicators
{
    [Indicator(IsOverlay = true, AccessRights = AccessRights.None)]
    public class Linearregressionintercept : Indicator
    {
        [Parameter(DefaultValue = 30)]
        public int Period { get; set; }
 
        [Output("LF", Color = Colors.Yellow, PlotType = PlotType.Line)]
        public IndicatorDataSeries LF { get; set; }
 
        [Output("LFI", Color = Colors.Orange, PlotType = PlotType.Line)]
        public IndicatorDataSeries LFI { get; set; }
 
   
        public override void Calculate(int index)
        {
 
 
            double sumx = 0, sumx2 = 0, sumy = 0, sumxy = 0;
 
            for (int i = 1; i <= Period; i++)
            {
                sumx += i;
                sumx2 += i * i;
                sumy += MarketSeries.Close [ index - Period + i  ] ;
                sumxy += MarketSeries.Close[ index - Period + i  ] * i ;
            }
 
            double m = (Period * sumxy - sumx * sumy) / (Period * sumx2 - sumx * sumx);
            double b = (sumy - m * sumx) / Period;
            LF[index] = Period * m + b;
            LFI[index] = b;
 
        }
 
    }
}


Original thread of the code:
https://ctrader.com/forum/indicator-support/10563


I also found this site that tells the formula of the indicator, but i don't know if the formula matches the code that I posted above, and the indicator it's in a separated window, either way here it is, it might help.

https://www.tradingtechnologies.com/xtr ... rcept-lri/

Hope it helps.
Thank you in advance.

Ps: I mistakenly post a similar post in this thread,
viewtopic.php?f=27&t=60442&p=102477&hilit=linear+regression+intercept#p102477
I hope it's not consider spamming
Demos4x
 
Posts: 10
Joined: Thu Nov 28, 2019 9:32 pm

Re: MT4 Indicator requests

Postby Apprentice » Fri Nov 29, 2019 5:53 am

Your request is added to the development list.
Development reference 374.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36427
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Next

Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 16 guests