Tradingbot Gash

Job ID: 39816617

Budget: €30 – €250 EUR

I have an existing breakout strategy bot in ATAS. I want to extend and adjust it with the following new features and improvements:


---

1) Direction Filter – Context (Long / Short / Both)

New option in the Misc section: Context with three values: Long, Short, Both.

Behavior:

Long → only open long trades when price breaks above the range. No shorts.

Short → only open short trades when price breaks below the range. No longs.

Both → current behavior, both long and short allowed.


Default value = Both (backward compatible).



---

2) Visual Range Frame + Hotkeys

The drawn range should have a colored frame depending on the selected context:

Long → green frame

Short → red frame

Both → neutral/gray frame


Hotkeys to switch context (configurable, default values):

L = Long

S = Short

B = Both


On switching, the frame color must update immediately, plus a short on-screen notification (e.g. “Context: Long”).



---

3) Stop Management – Break-Even & Risk/Reward

Current behavior: stop moves to entry already at 1:1 (1R).

Requested behavior:

Stop moves to entry only at 1:2 (2R).

After that, trailing continues stepwise as before.

All stop distances smaller than 10 ticks should be automatically rounded up to 10 ticks.


(Optional/if not much effort):

Make Break-Even R multiple configurable (default = 2.0).

Minimum stop (default 10 ticks) configurable.




---

4) Non-Timeframe Support (Renko etc.)

The strategy should also work reliably on non-timeframe charts (e.g. Renko).

Range marking must not rely strictly on clock time. Instead, manual marking with start/end bars should also be supported, so that the same breakout logic applies on Renko charts.



---

5) Optional: Immediate Entry on Activation

If I mark a range and activate the bot, and the current market price is already outside the range, the bot should immediately open a trade in the allowed direction (Context).

To avoid chasing too far:

Configurable buffer (ticks) to define “outside”.

Configurable maximum distance/slippage limit.

Only check once at activation; afterwards normal breakout logic applies.




---

Acceptance Criteria

1. Context filter reliably prevents trades in the blocked direction.


2. Range frame color updates (green/red/gray) depending on context; switching via L/S/B hotkeys works and shows notification.


3. Break-even stop moves only at 2R, not at 1R. Stops smaller than 10 ticks auto-adjust to 10.


4. Works on time-based and Renko charts identically.


5. (Optional) If enabled, bot enters immediately at activation if price is already outside the range.




---

Deliverables

Updated ATAS bot code (.cs file).

Compiled indicator/strategy if possible.

Short note on how to configure new parameters and hotkeys.