Hello.
I am contacting you because I am having difficulty developing my strategy.
Context :
Using two moving averages namely a 9 period MVA and a 45 period HMA.
These two moving averages are applied to both the RSI and the price.
From these two moving averages, I extracted an average of the averages.
It is with this moving averages that I work on the RSI and the price.
Strategy:
When the average of the moving averages is increasing, I go into buying.
When the average of the moving averages is decreasing, I am selling.
If I go one way and the moving averages change trend, it should close open trades.
Attachments :
I have attached the file "Arrow_RSI_MA.lua" which allows me to display on the chart when I need to enter and exit position.
I have attached the file "Averages RSI + MA Strategy.lua" which is the work I have already done on the strategy.
Demand :
1 - I cannot report my moving average average.
2 - I am not sure if the position close occurs when the trend reverses.
Thank you in advance for any help you could give me.
P.S.
If you see any inconsistencies or improvements, I welcome any comments.