Do you mean running the EA once and remove it once closed? Or maybe doing it without removing the EA from the chart at all? In the first case you can do it with input parameters, in the second one via buttons.