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

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.