code an mql4 indicator which calculates the difference between the default adr(x) 20 and the price moved during the day. this result should be shown as a white line in a new window below the main chart. If, for example, the adr(x) is 10 and the share price moves by 11, then in the window below you should show a line at 11 minus 10, i.e. 1. If, on the other hand, the share price is 9 and the adr(x) is 10, then the line should show 9 minus 10, i.e. minus 1. And so on, accumulating up to the x defined at the beginning (if on the first day the difference is plus 1 and on the second day the difference is minus 2, then the line will show 1-2:-1). The line restarts at zero at the end of period x (default 20). Please do not use chatgpt..
類似した注文
Bonjour, Je recherche un développeur expérimenté pour créer mon propre robot de trading automatique nommé JAD’OR X. Étant débutant en trading, je souhaite que le développeur me propose une stratégie documentée et adaptée au trading de l’or. Caractéristiques principales : MetaTrader 5 / MQL5. Trading XAUUSD uniquement. Achats et ventes entièrement automatiques. Analyse des tendances, supports et résistances. Stop Loss