EA working on 2 Timeframe at the same time

 

Please what should I do to make my EA work this manner;

To open position on H1 chart base on the signal from indicator on H1 chart and close the opened position using the signal from indicator on M15 chart.

Thanks.

 
oladapolaleye:

Please what should I do to make my EA work this manner;

To open position on H1 chart base on the signal from indicator on H1 chart and close the opened position using the signal from indicator on M15 chart.

You just need to code it . . . not exactly sure why you are having problems. Just change the TimeFrame in your iCustom() call to PERIOD_M15 for the closing signal.
 
oladapolaleye:

Please what should I do to make my EA work this manner;

To open position on H1 chart base on the signal from indicator on H1 chart and close the opened position using the signal from indicator on M15 chart.

Thanks.

Be sure that you don't have same time an opening signal based on H1 chart and

a closing signal same time based on M15 chart

 
oladapolaleye:

Please what should I do to make my EA work this manner;

To open position on H1 chart base on the signal from indicator on H1 chart and close the opened position using the signal from indicator on M15 chart.

Thanks.


Simplest thing is have two EA's, one that opens and other one closes. Both of them should refer to same magic number.
 
7325453863:

Simplest thing is have two EA's, one that opens and other one closes. Both of them should refer to same magic number.
nonsens.... not needed
 
deVries:
nonsens.... not needed
+1