| -
Bid price when backtesting
Hi,
Please can someone tell me how I can get the exact bid price when back testing? I can get the open\high\low\close of a bar but can't seem to get the bid. I read somewhere that I can use
Bars.StatusLine.Bid
for live testing but that this doesn't work when backtesting. How can I access the bid?
Thanks for any help.
Tom
-
Hi Tom,
During backtest, depending on the precision of your strategy, the close could be deemed as the bid price (assuming this is a Bid chart).
If you need the bid price for intrabar, you'll have to enable the Bar Magnifier and adjust the bid price inside the bars.
Bar Magnifier can be enabled by right-clicking on the chart -> Format Strategy Advisor -> press the Properties button -> under Backtesting tab, check the Use Bar Magnifier box and configure the precision that you want.
Hope this helps.
Regards,
Jimmy
|
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.