Implementing an algorithmic "Buy Into The Close"? trading strategy on Large Cap Equity CFDs - $AMZN
https://time.com/5228974/tech-stocks-and-the-trump-tweet-effect/

Implementing an algorithmic "Buy Into The Close" trading strategy on Large Cap Equity CFDs - $AMZN


'Buying into the close', as the name implies is the practice of placing last minute market orders in the direction of price momentum just before the close of the trading day.

I will be starting with $AMZN CFDs using HotForex's historical market data. On their platform, Equity CFD markets open at 16:30 and close at 22:00.

In order to determine & measure market momentum, I will be using a short EMA, and opening trades based on the relationship between market price and the EMA at 22:00. I will also be automatically closing the trades a few hours after market open.

No alt text provided for this image

My Buy and BuyIntoClose functions:

No alt text provided for this image

My Trade Close function:

No alt text provided for this image

Backtesting the algorithm on a H1 chart:

No alt text provided for this image

Backtest report:

No alt text provided for this image

Download the full report here.

Comparing with historical AMZN performance in Jupyter.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

要查看或添加评论,请登录

Ben Diagi的更多文章

社区洞察

其他会员也浏览了