I test this scripts in Gold , mainly I use in Timeframe 15 min ( I try to use with other pairs , It is Ok after I finish test more parameter will post again) This script will alarm when buy and exit buy , sell and exit sell. Background : Dark Green : Buy Dark Red : Sell Pink : may sell but not recommend or must use small lot size Green : may buy but not recommend or must use small lot size Blue : Interest zone for movement but not confirm buy or sell.
For position sizing I use Stoploss from Daily ATR with %Risk as shown.
you must try many parameter in TP SL %Risk ,.... But I think default value is Ok.