I want to use multiples of Average True Range as a stop loss and limit I tried below, with ‘D’ variable for ATR periods, and’E’ & ‘F’ variables for multiplication of ATR, not working. // Stops and targets SET STOP pLOSS (AVERAGETRUERANGE[D](CLOSE))*E SET TARGET pPROFIT (AVERAGETRUERANGE[D](CLOSE))*F Any ideas? Thank you. MODERATORS EDIT: Code tidied up. Please always use the ‘Insert PRT Code’ button when posting code.