Yes, ExecuteThresholdPerfect is directional. The specified percentage is applied relative to the direction of your trade, ensuring that trades execute under the appropriate market movement.
1️⃣ How It Works
For Long trades (buying to profit from price increases):
- The threshold is applied to price drops.
- Example:
ExecuteThresholdPerfect: 5→ The trade will execute only after the price drops 5% from the reference price, allowing you to enter at a better price.
For Short trades (selling to profit from price decreases):
- The threshold is applied to price increases.
- Example:
ExecuteThresholdPerfect: 5→ The trade will execute only after the price rises 5%, ensuring your short entry is triggered at an optimal level.
2️⃣ Benefits of Directional Thresholds
- Aligned with trade strategy: Ensures entries are triggered in the correct market direction.
- Prevents premature execution: Trades only fire when price movement supports your intended position.
- Optimizes entry points: Improves risk-reward by entering trades closer to favorable levels.
3️⃣ Best Practices
- Always double-check the trade direction in your YAML entry to ensure the threshold behaves as expected.
- Combine with
Price: 0for dynamic, market-relative execution. - Adjust the percentage based on market volatility and strategy objectives (smaller thresholds for fast entries, larger thresholds for pullbacks or dips).
Pro Tip
Think of ExecuteThresholdPerfect as a directional trigger: it tells the bot, “Enter this trade only after the market moves against the intended direction by X%,” ensuring you get smarter entry points for both longs and shorts.