Place custom indicator in EA?

 

I have a custom indicator that is similar to a fractal and I would like to upgrade it to an EA. The problem is having the EA triggered if the indicator is the same on too different currency pairs.


For example, the fractal indicator, if it's an up fractal on both the eur/usd and gbp/usd then the EA would enter a trade on one currency pair. Thanks for your help

 
jazzidee:

I have a custom indicator that is similar to a fractal and I would like to upgrade it to an EA. The problem is having the EA triggered if the indicator is the same on too different currency pairs.


For example, the fractal indicator, if it's an up fractal on both the eur/usd and gbp/usd then the EA would enter a trade on one currency pair. Thanks for your help

Take a look at the iCustom() function.

You would use it on eur/usd and gp/usd to find if your indicator is an up/down fractal this way:


double fractal1 = iCustom("EURUSD",0,......);

double fractal2 = iCustom("GBPUSD",0,......);

Reason: