1
Technical Support & Development / Re: Trailing stop loss feature request
« on: June 16, 2017, 04:25:31 AM »
FUNCTIONALITY LIKE THIS WOULD BE A GAME CHANGER. The next and much smarter iteration of stopgain, which currently seems to buy toward the top of dumps and sell toward the bottom of pumps, presumably at the first sign of price reversal past level 1 of buy/sell (or %GAIN?). I've had this happen twice in the last five days, buying at the high end of dumps and then being left with deep bags because stepgain could not follow the dump down.
For selling I would have TRAILING_PERCENT_SELL (or whatever) work in conjunction with the current %GAIN function that guarantees minimum sell above BUY price. So assuming (above) we bought at 100 with a %GAIN of 5% and a TRAILING_PERCENT_SELL set to 3%, using sell strategy TRAILINGSELL. When prices rises past 105, we don't immediately sell, but wait to sell until price either a) retreats 3% from most recent high price, or b) retreats down to %GAIN price. Assuming we stay above the %GAIN sell price, the price momentarily retreating 1-2% below highest current price would not trigger the sale, allowing Gunbot to chase the price up with however much variation along the way the user is comfortable with.
For buying I would think you ALWAYS want the option to chase the price as low as possible, no matter what BUY strategy you use, so maybe the only option you'd need for buying is the TRAILING_PERCENT_BUY which would be used in conjunction with the buy price Gunbot already determines based on the currently selected BUY strategy/range entered. If the user (for some reason) doesn't want to chase a price down and allow for any flux in the price along the way, they can just set the TRAILING_PERCENT_BUY = 0 and buys will work exactly the same they do now.
Again, this would be a HUGE game changer.
- Chris OCC
For selling I would have TRAILING_PERCENT_SELL (or whatever) work in conjunction with the current %GAIN function that guarantees minimum sell above BUY price. So assuming (above) we bought at 100 with a %GAIN of 5% and a TRAILING_PERCENT_SELL set to 3%, using sell strategy TRAILINGSELL. When prices rises past 105, we don't immediately sell, but wait to sell until price either a) retreats 3% from most recent high price, or b) retreats down to %GAIN price. Assuming we stay above the %GAIN sell price, the price momentarily retreating 1-2% below highest current price would not trigger the sale, allowing Gunbot to chase the price up with however much variation along the way the user is comfortable with.
For buying I would think you ALWAYS want the option to chase the price as low as possible, no matter what BUY strategy you use, so maybe the only option you'd need for buying is the TRAILING_PERCENT_BUY which would be used in conjunction with the buy price Gunbot already determines based on the currently selected BUY strategy/range entered. If the user (for some reason) doesn't want to chase a price down and allow for any flux in the price along the way, they can just set the TRAILING_PERCENT_BUY = 0 and buys will work exactly the same they do now.
Again, this would be a HUGE game changer.
- Chris OCC