Forum

Spread filter for EA

Hello guys. Can you tell me if the code in this way can be correct or where i`m doing wrong? Thanks to everyone. //++++ Spread Filter extern double MaxSpread = 5.0; int MarketInfo() if {(StringFind(Symbol(), "JPY") >= 0){ {Spread = (Ask-Bid)*100; } else {Spread = (Ask-Bid)*10000; }}}

Advice for making an EA.

Hello everybody. I have few question about it. It's possible to use the same EA in two or three different chart? (Ex. Eurusd, gbpusd, usdjpy ecc.) And can you give to me a code mql as example. Also is possible to put a limit for the spread (and if it's possible if you can provide me an example )