This script includes the 200 (green), 100 (purple) and 50 (yellow) SMAs and the 20 EMA (blue) from the daily calculated from the close. It is coded so the studies change at midnight ET on the charts to the next day's value.
The script also include the 252 day high ( bright green dashed) and low ( bright red dashed).