File 026011
Trading Algorithm Analysis by Gennady Mashtalyar - Brexit Case Study (File 026011)
Email from algorithmic trading developer Gennady Mashtalyar to Jeffrey regarding his currency trading algorithm's performance during Brexit, including risk analysis and trading methodology.
Summary
Gennady Mashtalyar presents an analysis of his algorithmic trading model using the Brexit day GBP/USD price movement as a practical example. The document details how his algorithm responded to an 18-cent drop in the pound against the dollar over 7 hours, demonstrating both profitable outcomes (+$7,848) and risk management strategies. Mashtalyar explains key trading concepts, algorithmic parameters (53.99% profit trades, average $20.74 profit per trade), and emphasizes the importance of stop losses and responsible capital allocation, recommending a minimum of $10,000 for safe operation.
Trading Algorithm by GennadyMashtalyarBrexit day or how does my algorithm react to large one-sidemovementsDear Jeffrey,I was thinking how to better answer your question regarding risks associated with a largeopposite side movement against my algorithm’s logic. I decided to test-run Brexit day onGBP/USD to provide you with a practical example of how my algorithm would react to a sudden18 cents price movement down in a day*.**Red lines represent open and close positions for short contracts. Blue lines represent open and close positions for long contracts.As you can see from a picture above, pound was dropping for 7 consecutive hours from 1.50 to1.32 against the dollar during Asian trading hours on June 24 th (during votes count in the UK).Seven hours long 18 cents movements are extremely rare in currency markets. However, 3cents movements are very common and can be predicted beforehand. For instance, currencytraders can expect increased volatility every time the Fed member speaks, U.S. releasesunemployment data, Draghi talks about QE efficiency, or elections take place. These days andhours are well known beforehand. Professional and responsible investors must have case Aand B planned out before any influential data release.*I can only test my algorithm for 24 hour timeframes from 00:00 to 23:59 of a day with my current hardware andsoftware, thus this particular example includes short trades opened before the 18 cent drop and they are workingwell as a hedge.While this particular example above illustrates good results by the end of the day (+$7,848 and$1,600 maximum drawdown from starting balance), there are certainly markets situations thatrequire large margins and can not be expected beforehand. These are usually terrorist attacks,sudden nature disasters, or even FOX News releasing FBI renewal investigation over Clintonand following speculation on Trump’s lead prior U.S. elections.The Brexit day example is certainly a good case scenario for my algorithm. It provides algorithmwith a large volatility and many profitable opportunities. However, there are other large one-sideprice movements in financial markets that can destroy not only my model, but many othertrading strategies if wrong side position is held. In the last month financial markets experiencedpound flash-crash in the middle of a random night. GBP/USD dropped for about 10 cents in 2minutes and jumped back. Many got rich and many got poor for 120 seconds while in theirsleep. The only thing that secures investments is responsible trading, which is placing stoplosses and not risking more than some percentage per trade.As a CFA Candidate and a prospective algorithmic hedge-fund manager I cannot say investingeven in T-Bills is 100% safe and can only say currency trading involves high risk. The only thingI can assure tell you (in my personal opinion) that $10,000 is a lowest safe responsible sum ofmoney needed to operate with the model where $5,000 is used for margin alone and $5,000 isset to be used as a bad case scenario expected drawdown value or a stop loss.P.S. Jeffrey, I want to introduce you to some algorithmic trading concepts and terms needed tounderstand trading algorithms better.• Algorithmic trading is highly dependent on statistics and averages over a long-termhistory.• Drawdown – maximal losing dollar amount for open or closed positions from startingbalance.• Algorithm ceiling – largest amount of money an algorithm can work with (large trades caninfluence market conditions against an algorithm).• Percentage of profit and loss trades: 53.99% profit and 46.01% loss trades this summeron a “back-test”• Average profit trade: $20.74 this summer on a “back-test”• Average loss trade: $14.13 this summer on a “back-test”• Number of trades per time period: 45,221P.P.S. Drawdown value for a condition where price goes down, my algorithm buys a longcontract every minute and does not hold short contracts can be estimated in the Excel fileattached to the email (Estimation of losing P&L).2Results of a scenario where a currency pair loses 0.0001 from 1.11 to 1.0741 (3.59 cents total)every single minute for 360 consecutive minutes can be seen below. This is an extreme casescenario of a pair losing its value for 6 consecutive hours without any retracement. Please, takea note that duration and consistency of a price drop are much more important than the value adrop itself.3