Trades opening with larger than specified spread
1 replies
Mike H.
9 years ago #112367
OK, I figured it out… Change code to sqConvertToPips (Ask – Bid) < 2.2 or (Ask – Bid) < 0.00022
In the Wizard, it would be sqConvertToPips Spread < 2.2
Example: Enter Long if one of the Conditions is Spread < 2.2
Code shown as (Ask – Bid) < 2.2
but trades open regardless of the spread size… What am I doing wrong ???
The Trading Desks are using 5 decimals… DEMO accounts
In the Editor, I tried changing to (Ask – Bid) < 2 and (Ask -Bid) < 2.0 and trades still open with larger spreads…
Mark Fric
9 years ago #125392
Hello,
you can use it either as:
ConvertToPips(Spread) < 2.2
or
Spread < ConvertToRealPips(2.2)
In any case it should work.
Have you considered that the spread might change since the action was triggered and your order was placed?
Also, there could be some slippage in order.
If you think it doesn’t work, try to change it from 2.2 to to 0.1 spread. Will it still take the trades?
If yes it would mean there is a bug, but I don’t think so, this is very simple comparison.
It doesn’t matter if broker is using 4 or 5 decimals, it is recognized automatically.
Mark
StrategyQuant architect
Viewing 1 replies (of 1 total)