PremiseI'm actually studying Java programming to improve my personal background. I started some time ago, but I had to postpone due to many difficulties and my knowledge is still at an elementary level, so in case you notice some mistakes on the code, please forgive me in advance. With this article I want to show how I automated a simple MA-based strategy. So I also take the opportunity to share it and to show my approach in detecting main factors and then all steps I considered while developing and testing the code.ToolsI decided to start coding the very first strategy I used because I have a good familiarity with all its good & bad aspects, and to use it in this article since gives a clear perception of the main aspects I'm presenting. However, the code can be modified to look for different MA periods in different timeframes and instruments.Instrument: EUR/USD;Timeframe: 15 Minutes;Indicators: EMA(14) & EMA(65);EssentialsThe strategy is simple and people could laugh thinking about it, while I really suggest to give it a deeper consideration.This is how the chart setup appears:The rule is clear: sell when green line (ema14) cross down the red one (ema65), buy when it cross up. But…
Read article
Translate to English Show original