Does anyone know how to put in a Forex trading Strategy a piece of code that would check the bid and the ask to see if the spread is lets say for example over 1.2 pips and if its more then that it will not allow a trade to take place?
The reason its real important at certain hours the spreads with Forex can really widen and I would hate to get filled with a 4-8 pip spread I would rather have my strategy only take trades when the spread is under 1.2 pips.
If this is a fairly simple piece of code please post it in this thread.