//xxx=33
//yyy=720
cCHANGE=ROC[xxx](close)
If cchange > 0 then
pPrice=low[0]
elsif cchange < 0 then
pprice=high[0]
endif
if close[0] crosses over average[4](pprice)then
ccpl=low
elsif close[0] crosses under average[4](pprice) then
ccpl=high
endif
rrocycle=close-average[yyy](ccpl)
Mma1=ExponentialAverage[7](rrocycle)
Hi Nicolas and all,
I am trying to automate the daily data for ‘Mma1’ to be used as a level on a 1min TF, my attempts have as of yet been unsatisfactory, I would be grateful if you could let me know if it is possible and if you could aid me in achieving the result.
Many thanks,
Robert
JSParticipant
Senior
Hi Robert,
It is indeed possible to display an indicator with a 1-day timeframe on a 1-minute chart…
The problem with your indicator is that you are using 720 days (yyy=720), and to display this on a 1-minute chart, you need more than 1 million bars (720 days x 24 hours x 60 minutes > 1,000,000 units).
A simple example with fewer days…