Specifiche
I have started a program provided to you with the filename “alerter.ipynb”. It is in jupyter-notebook format. Please take that program and make the following changes:
-
Add more space between the MACD indicator chart and the candlestick chart
-
Change the color of the MACD histogram so that the peaks are green and the valleys are red.
-
Change the faster MACD line to be yellow and the slower MACD line to be blue.
-
Add these other indicators which are overlaid on top of the candlestick chart:
-
Arnaud-legoux moving average, 10 period, other settings default. Green line color.
-
Arnaud-legous moving average, 30 period, other settings default. Blue line color.
-
Add these indicators below the MACD chart:
-
RSI with default settings. Blue line color.
-
On balance volume with default settings. Red line color.
-
Currently the program downloads data once and displays a chart which never updates. Please make the chart and indicators constantly updating. As a new candlestick is formed, the oldest candlestick gets removed. Since the amount of candlesticks stays the same, no side to side scrolling is necessary. No interactivity with the chart is required. The chart needs to only display data.
-
Write code that detects when all of these conditions occur. Store the result as boolean.
-
Alma10 crosses with the alma20
-
MACD crossover
-
RSI approaches overbought or oversold.
-
Write code that places an order. Risk is 1% of account balance. Take profit is 3 times as much as risk. The stop loss and take profit distance from the current price should be fixed. I don’t know the distance yet, just make sure I can edit it. The lot size will have to change dynamically as my account balance changes.
I must be provided with all source code at the end of the project. Please use pandas-ta for indicators, mplfinance for charting, and the mt5 library. Please use my jupyter notebook code as a starting point. All changes to this requirements specification must be approved by me.