Forex bot & backtest system with Python #77 Margin calculation

preview_player
Показать описание
We chatter on this Discord server:

Creating a forex bot and backtesting system with Python for complete beginners.

If you want to trade seriously in the Forex markets, you must build yourself a backtesting system.

If you want to trade without emotion, build a system to do it for you.

Using Python you can test 100s of pairs over years of data in just a few minutes.

This way you can test your strategies, and pretty quickly discover that the well known 'indicators' and strategies are worthless.
Рекомендации по теме
Комментарии
Автор

Thank you very much. You are truly the best.

beatricesaunders
Автор

4:29 I haven't seen the whole video so this might be something addressed later. I don't quite understand your formula for mid: (ask - bid) + bid. Doesn't that equal to ask instead of mid, as the bids cancel each other out?

ap
Автор

Sorry to bring up another question so soon. I did attempt to solve from google and youtube searches without fruit. I am trying the following for general practice:

6:36:
print(prices['EUR_USD']) works just fine
however,
yields the error "TypeError: 'OandaPrice' object is not subscriptable"

It (prices) looks like a dictionary, but somehow it is not. Converting prices to dataframe and extracting ['EUR_USD']['ask'] yields the same error. I am stumped.

ap
Автор

Thank you for you videos. I"m new to forex, kind of new to python. Learned a lot. Is more training coming soon? (Hope so!). Thanks again!

toddwbutler
Автор

About the mid conversion formula : mid = (ask - bid) + bid. Wouldn't this just be equal to the ask price? I thought the mid price is just the average of the bid and ask. Great series, thanks again for sharing this powerful knowledge with the world, FOR FREE! Cheers!

kevinhu
join shbcf.ru