Euro / Dollaro

My first script that needs to be optimized based on MACD and AO

111
This is my first script here.
I need to understand how to set take-profit and stop-loss based on price and not on ticks, moreover I need to understand how to set time frame.

Thanks to who wants to help

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.