EA Templates - page 2

 

I don't know the indicators parameters to put in the Template EA, is it possible to have the Autotrade EA get the signal based on what signal the indicator gives then trade based on that?

I don't have the indicators logic code, just the ex4.

Can I have it work like;

EG: Template -> add indicator Names to watch -> trade when EA gets signal from indicators ??

Thanks

 

you have names and you have settings of the indicators.

So it can be used in template as icustom.

But please note: not every indicator can be used in EAs (because of repainting, "future bars" story, wrong coding and so on).

 

Yes, I have the name an settings but how would I use that in 'what' template because the Template EA wouldn't know what the settings are for? Please explain more based on the attached pic how to use a template (which one) when wprsto turns Blue buy and when it turns Red sell.

Thanks

Files:
wprsto.jpg  24 kb
 

It is more related to icustom function:

https://www.mql5.com/en/forum/general

https://www.mql5.com/en/forum/173108

Sorry i can not help more: i am not a coder and it is not an easy for me to insert some unknown ex4 indicators to EA. But it is possible of course.

Juast use icustom function and see some examples on those 2 icustom threads.

 

is this what it would look like?

double val=iCustom(NULL, 0, "MTF WPRSTO",30,60,50,23,0,0,0);

Then I could add more, but how do I have the EA place a trade when all indicators I add agree on a Buy or Sell at the same time?

EDIT: also, does iCustom only look at the extern int variables? What if there are internal hidden variables?

extern bool Crash = false;

extern int TimeFrame = 0;

extern int Length = 5;

extern int Method = 3;

extern int Smoothing = 1;

int Filter = 5;

bool RealTime = true;

extern bool Steady = false;

extern bool Color = true;

extern bool Alerts = true;

extern bool EmailON = false;

extern bool SignalPrice = true;

extern color SignalPriceBUY = Yellow;

extern color SignalPriceSELL = Aqua;

extern int CountBars = 1485;

 

Indicator to expert advisor

What are the Changes need to do in Indicator to Convert it into Expert Advisor

I try adding Buy and sell Orders...

But when try to open its showing Its an Indicator cannot be Executed...!!!

Please Help me out...

Converting Indicator to Expert Advisor..

Thank You

 

Using the metatrader editor, create a new blank indicator and save it. Then create a new blank expert adviser and save that. Now compare them. You'll see the key difference right away.

 

Thanks Steve

Thanks Steve.,

But Steve I didnt recognize any difference except that

#property indicator_separate_window

But My Question is How do i use that Indicator as Expert Advisor for Auto-Mated Trading...

Thanks in Advance

 

...

mmanoj:
Thanks Steve.,

But Steve I didnt recognize any difference except that

#property indicator_separate_window

But My Question is How do i use that Indicator as Expert Advisor for Auto-Mated Trading...

Thanks in Advance

wish I could Auto-Mate...good one

 

Thnks

Thnks Sir for Reply.,

Its really Gr8 Indicator SirG...

thats the only reason i m so eager to convert to it into Expert Advisor,

because i am not having time to sit in front of terminal

Reason: