Quote:
Originally Posted by pip thief
another quick question for you. If i have an ea placing my trades but it doesn't have a feature that watches the spread in order to keep it out of the market during news flow, such as max spread = 3 any more dont trade. how would I go about doing that as I don't code and really don't use ea's but just trying something new. Once again I appreciate your help.
|
Something simple like this:
PHP Code:
extern int Max_Spread = 3;
if (MarketInfo(Symbol(),MODE_SPREAD) <= Max_Spread)
{
//Your OrderSend() code here
}
If the current spread is less than or equal to your Max Spread, order will open. If greater than your Max Spread, it won't.