The trading bot I need is based on linebreak charts, monitoring price movements within a minute-by-minute timeframe. I specifically require the flexibility to set linebreak charts to values below 1, potentially in decimal or fractional formats, different from the standard settings in Tradingview.
Once this custom setting is established, the bot's features will encompass:
Tracking Linebreak Points: It will track points above and below a chosen starting reference point across multiple charts for different assets. This reference point is determined as the closest logged linebreak on the largest linebreak chart. Logging Linebreak Points: All linebreak points will be logged concerning the most recently closed price on the largest timeframe chart being analyzed. These points will serve as the foundation for initiating trades—long positions above these points and short positions below them. Moreover, the bot will:
Log and Chart Multiple Levels: It will log and plot points on smaller linebreak charts based on the reference starting point, forming an expanding array of points both above and below. These expanded points will act as partial exit points for trades, enabling gradual profit-taking. Partial Position Exit Points: For short positions, the bot will progressively close segments of the trade at specified percentage intervals as the price decreases. Similarly, for long positions, it will do the same as the price increases. The exit percentages are as follows: In a Short Position:
Take Partial Linebreak #1: close 9.75% of the trade Take Partial Linebreak #2: close 9.25% of the trade Take Partial Linebreak #3: close 8.75% of the trade Take Partial Linebreak #4: close 8.25% of the trade Take Partial Linebreak #5: close 7.75% of the trade Take Partial Linebreak #6: close 7.25% of the trade Take Partial Linebreak #7: close 6.75% of the trade Take Partial Linebreak #8: close 6.25% of the trade Take Partial Linebreak #9: close 5.75% of the trade Take Partial Linebreak #10: close 5.25% of the trade Take Partial Linebreak #11: close 4.75% of the trade Take Partial Linebreak #12: close 4.25% of the trade Take Partial Linebreak #13: close 3.75% of the trade Take Partial Linebreak #14: close 3.25% of the trade Take Partial Linebreak #15: close 2.25% of the trade Take Partial Linebreak #16: close 1.75% of the trade Take Partial Linebreak #17: close 1.25% of the trade In a Long Position:
Take Partial Linebreak #1: close 9.75% of the trade Take Partial Linebreak #2: close 9.25% of the trade Take Partial Linebreak #3: close 8.75% of the trade Take Partial Linebreak #4: close 8.25% of the trade Take Partial Linebreak #5: close 7.75% of the trade Take Partial Linebreak #6: close 7.25% of the trade Take Partial Linebreak #7: close 6.75% of the trade Take Partial Linebreak #8: close 6.25% of the trade Take Partial Linebreak #9: close 5.75% of the trade Take Partial Linebreak #10: close 5.25% of the trade Take Partial Linebreak #11: close 4.75% of the trade Take Partial Linebreak #12: close 4.25% of the trade Take Partial Linebreak #13: close 3.75% of the trade Take Partial Linebreak #14: close 3.25% of the trade Take Partial Linebreak #15: close 2.25% of the trade Take Partial Linebreak #16: close 1.75% of the trade Take Partial Linebreak #17: close 1.25% of the trade These defined percentages aim to facilitate a systematic profit-taking strategy while minimizing exposure to risk as the trade progresses.