You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library is a gem for stock exchange markets - however, it doesn't work correctly for forex.
The improvement might involve several steps and issues, but here are some of them:
Take profit calculation for forex isn't simply self.__size * (price - self.__entry_price) as we already have in Trade.pl - it must involve pip, position margin values as well.
Trade.value isn't correct in the case of using Forex portfolio.
I would appreciate receiving any comments, how to use this package for the Forex strategy backtesting.
The text was updated successfully, but these errors were encountered:
I found this discussion but didn't get how to do that - #8.
Let's say I am buying 10 points of EUR/USD pairs on the Forex market today, which results in a 35$ margin(or Trade.value) on the FXCM, but If I specify size=10 in Strategy.buy method, that will produce abs(self.__size) * priceTrade.value, which isn't correct. How should I change that?
This library is a gem for stock exchange markets - however, it doesn't work correctly for forex.
The improvement might involve several steps and issues, but here are some of them:
self.__size * (price - self.__entry_price)
as we already have inTrade.pl
- it must involve pip, position margin values as well.Trade.value
isn't correct in the case of using Forex portfolio.I would appreciate receiving any comments, how to use this package for the Forex strategy backtesting.
The text was updated successfully, but these errors were encountered: