Andrei Pazniak
2016-03-26
Main idea for Martingale strategy can be found here. https://en.wikipedia.org/wiki/Martingale_(betting_system)
Adaptation Martingale to forex/stock market
Quotes were taken from project https://github.com/lotgon/Coursera_Shiny/tree/master/PrepareData/. To simplify model only the best Bid and Asks were taken with periodicity “Minute”. All qoutes were converted to pips.
There are several input parameters
Trade-off between income and minimum deposit is the most difficult part for this kind of strategies. The minimum required deposit for trade volume 0.01 is shown on the chart
ggplot(r1, aes(x=openTime, y=usedMargin)) + geom_line() + ylab("Required deposit, USD") + ggtitle("Margin requirement for account")