Yes your above code works quite well.
– From 1 h TF, no problem to get data of 1 week TF
– From 15 min i get problem for getting 1 week TF data but I assume that is linked to the limited history (in 15min, with PRT complete version, I can display (so load I guess) only 233 units so 10 working days)
So topic solved Thanks a lot for your support pableitor.
(I will probably create same kind of topics for SMA and RSI since I fail as well to get the right values…)