EA turned on by script - page 2

 
Anthony Garot:

So my guess is that you don't have access to the EA code.

slav;

Anthony, you've got the point.

------------------------


fxsaber:

Thank you for the link. Sadly, this refers to mt5...

 
slav:

That's not what "automated trading" is intended for...

I mean doing that from another code, indocator probably.

Indicator doesn't indicate anything, just measuring spread.

Make two templates, one with indicator and expert, other only indicator. If spread too big indicator applies the second template, when spread back to normal it applies the first one.

You might be able to make a template where expert has different settings (entries not allowed). It's a better choice as expert will be able to handle already opened positions.

It's not as stupid as it looks like if it works, you know.

 

It's very simple.

If you don't have access to the source code, you can not modify it.

You'd have to contact the developer.

 
slav:
Sadly, this refers to mt5...

more sadly, you posted in mql5 forum  :|

 
kypa:

I mean doing that from another code, indocator probably.

Indicator doesn't indicate anything, just measuring spread.

Make two templates, one with indicator and expert, other only indicator. If spread too big indicator applies the second template, when spread back to normal it applies the first one.

You might be able to make a template where expert has different settings (entries not allowed). It's a better choice as expert will be able to handle already opened positions.

It's not as stupid as it looks like if it works, you know.

Props to Kypa for giving the actual solution. This is an easy to program fix!

Reason: