.


Re: Simple Expert Advisors (EA's) for MT4

#232
Hi. Is it possible to add Ehlers MAMA to the moving averages available in the UniversalMA Averages 8.8 EA ?

I am also interested in adding Mladen's Wilders super smoother DMI indicator as a filter. I would like to use the ADX line or ADXr line to minimize trades when the ADX is below a certain level, i.e. 20 or 25.

Thanks.

Re: Simple Expert Advisors (EA's) for MT4

#234
Hi to Everybody,
I am looking for an Expert Advisor, that:
1. Closes Positions ONLY with Take Profit or Stop Loss
2. Opens ONE Position per bar.
3. Executes all signals, even if there is an opposite already open.
4. Total Opened Positions para metrical.
5. Has Time restrictions.

Thanks in advance for any help or info provided.
Best Regards
Dimitri


Re: Simple Expert Advisors (EA's) for MT4

#236
Hello,
i want to know how can i transfer custom indicators code into EA, i can do it with rather simple indicators but i have problem with more complicated ones like when they have functions outside the start function and they use these two dimensional arrays for memorizing the previous values like this one

Code: Select all

#define E1  0
#define E2  1
#define E3  2
#define E4  3
#define E5  4
#define E6  5
#define res 6

//
//
//
//
double stored[][14];

double
iAverage(double price, double averagePeriod, double tconst, bool adaptive, int i, int ashift=0)
{
if (ArrayRange(stored,0) != Bars) ArrayResize(stored,Bars);


    if(averagePeriod <=1) return(price);
    int r = Bars-i-1;

    double e1=stored[r-1][E1+ashift];  double e2=stored[r-1][E2+ashift];
    double e3=stored[r-1][E3+ashift];  double e4=stored[r-1][E4+ashift];
    double e5=stored[r-1][E5+ashift];  double e6=stored[r-1][E6+ashift];
i just want to learn i searched allover the internet but i couldn't find anything, and i just want a hint,
guide me please... :geek:

Re: Simple Expert Advisors (EA's) for MT4

#237
Mehrab wrote:
Sat Sep 21, 2019 2:27 am
Hello,
i want to know how can i transfer custom indicators code into EA, i can do it with rather simple indicators but i have problem with more complicated ones like when they have functions outside the start function and they use these two dimensional arrays for memorizing the previous values like this one

Code: Select all

#define E1  0
#define E2  1
#define E3  2
#define E4  3
#define E5  4
#define E6  5
#define res 6

//
//
//
//
double stored[][14];

double
iAverage(double price, double averagePeriod, double tconst, bool adaptive, int i, int ashift=0)
{
if (ArrayRange(stored,0) != Bars) ArrayResize(stored,Bars);


    if(averagePeriod <=1) return(price);
    int r = Bars-i-1;

    double e1=stored[r-1][E1+ashift];  double e2=stored[r-1][E2+ashift];
    double e3=stored[r-1][E3+ashift];  double e4=stored[r-1][E4+ashift];
    double e5=stored[r-1][E5+ashift];  double e6=stored[r-1][E6+ashift];
i just want to learn i searched allover the internet but i couldn't find anything, and i just want a hint,
guide me please... :geek:
It's pretty much the same, you iCustom call the indicator and you are calling the function that is built into the indicator, along with it.

Re: Simple Expert Advisors (EA's) for MT4

#238
Hi seniors I need a ea based on stepma PDF with changable settings I used with it in renko wait wait my renko does not repaint or recalculate after bar close same as stepma PDF also and I don't need to back test the strategy because I visually back tested for 6 months by eyes so please create
simple Ea
INPUT =BUY/SELL when signal changes
INPUT =STOP LOSS previous signal HIGH & previous signal LOW
INPUT =LOT SIZE
that's all . will it work what you think friends please comment
And finally what problems to be face Cause By Renko?
please comment...
StepMA pdf 4_6.ex4
(52.18 KiB) Downloaded 50 times
If you are not willing to take risk the unusual, you will have to settle for the ordinary.
Don't wait for extraordinary opportunities. Seize common occasions and make them great. Weak men wait for opportunities; strong men make them

Re: Simple Expert Advisors (EA's) for MT4

#239
mrtools wrote:
Sat Sep 21, 2019 6:49 am
Mehrab wrote:
Sat Sep 21, 2019 2:27 am
Hello,
i want to know how can i transfer custom indicators code into EA, i can do it with rather simple indicators but i have problem with more complicated ones like when they have functions outside the start function and they use these two dimensional arrays for memorizing the previous values like this one

Code: Select all

#define E1  0
#define E2  1
#define E3  2
#define E4  3
#define E5  4
#define E6  5
#define res 6

//
//
//
//
double stored[][14];

double
iAverage(double price, double averagePeriod, double tconst, bool adaptive, int i, int ashift=0)
{
if (ArrayRange(stored,0) != Bars) ArrayResize(stored,Bars);


    if(averagePeriod <=1) return(price);
    int r = Bars-i-1;

    double e1=stored[r-1][E1+ashift];  double e2=stored[r-1][E2+ashift];
    double e3=stored[r-1][E3+ashift];  double e4=stored[r-1][E4+ashift];
    double e5=stored[r-1][E5+ashift];  double e6=stored[r-1][E6+ashift];
i just want to learn i searched allover the internet but i couldn't find anything, and i just want a hint,
guide me please... :geek:
It's pretty much the same, you iCustom call the indicator and you are calling the function that is built into the indicator, along with it.

hi mrtools,
you got me wrong, i want to calculate the indi within my EA so that i don't have to use iCustom call, i want to have all of my indicators in one EA file,
i have a perfect strategy and now i want to sell it, i appreciate your help. :geek:

Re: Simple Expert Advisors (EA's) for MT4

#240
Mehrab wrote:
Sat Sep 21, 2019 5:14 pm
mrtools wrote:
Sat Sep 21, 2019 6:49 am


It's pretty much the same, you iCustom call the indicator and you are calling the function that is built into the indicator, along with it.

hi mrtools,
you got me wrong, i want to calculate the indi within my EA so that i don't have to use iCustom call, i want to have all of my indicators in one EA file,
i have a perfect strategy and now i want to sell it, i appreciate your help. :geek:
LMAOOO....... so u want mrtoolz FREE help from here just so u can SELL u perfect strategy??? if u get help from fs will u be releasing the ea for free to forex station members??? U know....... to repay for assistance........ :arrow: :arrow: :arrow:


  1. Similar Topics

    1. Expert EA

      4 Replies 994 Views

      by Corbanfx1, Mon Dec 03, 2018 6:28 am in Express Coding & Commercial Services

      4 Replies
      994 Views
    2. Script to expert

      0 Replies 648 Views

      by alessandromagno, Wed Mar 07, 2018 4:07 am in Coding Help

      0 Replies
      648 Views

Return to “MT4 Indicators”

Who is online

Users browsing this forum: aikgio, behar, camisa, CommonCrawl [Bot], corrabot, DotNetDotCom [Bot], ilegalc, Leomart, moey_dw, rudiarius, Speters, Wolf_of_Forex and 74 guests