► A problem with the position opening and closing at the exact same price at the exact time should be fixed. This was one of my first scripts back when I was learning the basics, it's hard to believe some people actually liked it as it was.
► I added some basic stop-loss and profit settings to the strategy that I add to my buyerss' scripts. It will add some consistency to the strategy without restricting it too much. The previous version had fixed profit and loss too, but its definition was a static number of ticks. The strategy uses dynamic calculation, but a static option is available too.
Target calculation example - option "Close + ATR(len) * %":
• Average True Range is calculated for the Length number of candles.
• Above range is multiplied by the percentage. If you want to double it, input 200. If you want to quadruple it, use 400. To half, use 50...
• The result is added to the close price of the candle which was used for entry.
• A set number of ticks is added to the result.
• Algorithm will reverse the process for Short positions.
Stop calculation example - option "Low - (close - lowest low(len)) * %":
• The lowest low in the Length number of bars is subtracted from the closing price of the entry candle.
• This value is multiplied by a percentage. If you want to double the value, set the percentage to 200. If you want to half it, set it to 50.
• The result is subtracted from the entry candle's low. After that, a set number of ticks is subtracted from the result.
• The process is reversed for calculating a stop for Short positions.