by Gilles » Fri May 06, 2022 9:35 am
Hello Apprentice,
This is not the expected result.
We have here two distinct elements Min[period] and Max[period] while I proposed to make a MinMax_MA[period] which has as a source of calculation TMA[period].
Another problem encountered the output of the two elements is not aligned or accessible.
How to make a strategy from this version, is it possible ?
The rules are :
if
TMA[period] >= MinMax_MA[period]
then
BUY();
elseif
TMA[period] < MinMax_MA[period]
then
SELL();
end
Thank you very much for the work already done.