As in the subject, is there an instruction to get the spread at the exact instant? (variable spread) Or at least the spread of the instrument in the case of fixed spreads.
Thank you Piero
Nope! Spread will vary second to second, minute to minute, hour to hour and day to day and no PRT strategy will ever know what the exact spread is. Backtesting is based on mid price and whatever fixed spread you set for backtesting. So do not try to write a scalping strategy that takes one or two pips as it will not work in real life as it appears to do in backtesting – you will be poor very quickly!
This is not for a spread strategy but for to do so that the screening routine give me results considering the spread too.. this is very important for my screening routine.
If you use IG they have posted all the “average real spreads” on instruments. Might help? 🙂 Usually a bit above the spread that it says.
It would be really helpful if PRT gave “live” spread feedback but as far as I know it’s not available.
I’ve been gathering some historical spreads by running 2 scripts/codes in DEMO mode, one code that buys every tick and the other that sells. Then copy results into Excel and this gives you spread over 24/7. Obviously each script will lose money but that’s ok in Demo mode.
This gives an idea of what spreads might be like, but I guess it won’t be accurate in real-time