Example - Scale Price Gap Down by Rate
Example - Scale Price Gap Down by Rate
- Goal: I want to start with 10 pips gap size and I want the EA to start scaling down the price gap size when the price moves against the first trade by 2 or more price levels. In that case I want to make the gap sizes reduced to 80% of the gap (i.e. smaller by 20%), compounding for each subsequent level, however I do not want the gap size to become less than 5 pips.
-
How-to: Here is an example EA configuration how to achieve the above:
- Price Gap = 10
- Gap Scaling Start Level = 2
- Gap Scaling Rate = 80
- Minimum Gap Size = 5
Below shows the price gaps in pips to be used for the trade entries:
Price Level Effective Gaps after BUY Initial Trade Effective Gaps after SELL Initial Trade Up 6 - 5 Up 5 - 5 Up 4 - 5.1 Up 3 - 6.4 Up 2 - 8 Up 1 Exit at Closure Target 10 Initial Entry 10 10 Down 1 10 Exit at Closure Target Down 2 8 - Down 3 6.4 - Down 4 5.1 - Down 5 5 - Down 6 5 -