Hi
I am currently involved in building an EA which uses buy/sell stop orders. When placing these orders the broker insists that the price must differ by x number of pips from the narket price. Fine, except that this amount seems to change. Some times of the day it may be 2 pips, later in the day, same pair, same broker, it can be as high as 5 pips.
The EA is based on a breakout system and right now, GCI wants 10 pips above the ask price for a buy-stop.
This means that with a breakout box high at 1.4000, a spread of 3 and a breakout margin at 5, your buy-stop order will fail if the graph shows a price >=1.3992 - Other times of the day this order will go through correctly.
The EA is intended for public release so it is important it is not broker dependent if possible.
Does anyone have any thoughts as to how to handle this?
I am currently involved in building an EA which uses buy/sell stop orders. When placing these orders the broker insists that the price must differ by x number of pips from the narket price. Fine, except that this amount seems to change. Some times of the day it may be 2 pips, later in the day, same pair, same broker, it can be as high as 5 pips.
The EA is based on a breakout system and right now, GCI wants 10 pips above the ask price for a buy-stop.
This means that with a breakout box high at 1.4000, a spread of 3 and a breakout margin at 5, your buy-stop order will fail if the graph shows a price >=1.3992 - Other times of the day this order will go through correctly.
The EA is intended for public release so it is important it is not broker dependent if possible.
Does anyone have any thoughts as to how to handle this?