![]()
This script automates the sending of a buy or sell order using the entrySignal input inputting LONG or SHORT respectively. The stoploss and take profit levels are placed using a multiple of the atr value of the previous candle using the stopLossMultiplier input. The takeProfit Multiplier is used to place the reward multiple of the stopLoss risk. With the stopLoss and takeProfit level the script calculates the optimal lotsize at which the order is sent.
Attached are screen shots showing the input prompt box when the script is run and another shot showing the successful execution of the script.
Happy Trading!