Example - Scale Price Gap Up by Rate

Example - Scale Price Gap Up by Rate

  • Goal: I want to start with 10 pips gap size and I want the EA to start scaling up the 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 bigger by 50%, compounding for each subsequent level.
  • How-to: Here is an example EA configuration how to achieve the above:
    1. Price Gap = 10
    2. Gap Scaling Start Level = 2
    3. Gap Scaling Rate = 150

    Below shows the price gaps in pips to be used for the trade entries:

    Price LevelEffective Gaps after BUY Initial TradeEffective Gaps after SELL Initial Trade
    Up 6-75.9
    Up 5-50.6
    Up 4-33.8
    Up 3-22.5
    Up 2-15
    Up 1Exit at Closure Target10
    Initial Entry1010
    Down 110Exit at Closure Target
    Down 215-
    Down 322.5-
    Down 433.8-
    Down 550.6-
    Down 675.9-