Position size and drawdown calculator script for MT5

hyperion

20 replies

Wrote myself a small MT5 utility that reads stop distance in points and spits out lot size against a fixed equity percentage. Fed up with fat-fingering lot entries on gold when spreads blow out during US data. 0.5% risk is 0.5% risk, no excuses. Anyone else scripting their sizing instead of trusting their fingers?

3 likes

Replies

  1. Peter Bell

    Live forward logs with real slippage are the only numbers that matter. Curve-fitted backtests fall apart the moment spreads widen.

    0 likes

  2. William Shaw

    Peter Bell wrote:

    Live forward logs with real slippage are the only numbers that matter. Curve-fitted backtests fall apart the moment spreads widen.

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    1 like

  3. arctic_hare

    William Shaw wrote:

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    Trailing equity DD is what guts people: your floating loss counts even if the stop never gets hit. On gold I size for the CPI spike, not the entry candle - if the math doesn't survive a 40-dollar adverse wick, the position was too big. Otherwise just flat into the release.

    0 likes

  4. Jules

    arctic_hare wrote:

    Trailing equity DD is what guts people: your floating loss counts even if the stop never gets hit. On gold I size for the CPI spike, not the entry candle - if the math doesn't survive a 40-dollar adv…

    Wait for the candle close and clean structure confirmation before entering. Chasing mid-range breakouts without a defined stop ruins the reward-to-risk math.

    0 likes

  5. Craig Booth

    Jules wrote:

    Wait for the candle close and clean structure confirmation before entering. Chasing mid-range breakouts without a defined stop ruins the reward-to-risk math.

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    1 like

  6. pulsar7

    Craig Booth wrote:

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    Word-for-word copy of William's post two replies up - add something or say nothing. And the DD rule isn't even the real killer on gold: spreads tripling through CPI turns your clean 0.5% into 1% before the stop fills. Size for the spike conditions, not the entry screen.

    1 like

  7. Tomasz

    pulsar7 wrote:

    Word-for-word copy of William's post two replies up - add something or say nothing. And the DD rule isn't even the real killer on gold: spreads tripling through CPI turns your clean 0.5% into 1% befo…

    Wait for the candle close and clean structure confirmation before entering. Chasing mid-range breakouts without a defined stop ruins the reward-to-risk math.

    1 like

  8. Ross P.

    Tomasz wrote:

    Wait for the candle close and clean structure confirmation before entering. Chasing mid-range breakouts without a defined stop ruins the reward-to-risk math.

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    0 likes

  9. Soren

    Ross P. wrote:

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    That's the third word-for-word paste of the same line in this thread - add something or log off. And trailing DD is only half the problem on gold: spreads tripling through CPI mean your 0.5% position eats 1% before the stop even fills. Size for the spike conditions or stay flat through the release.

    1 like

  10. nordic_pine

    Soren wrote:

    That's the third word-for-word paste of the same line in this thread - add something or log off. And trailing DD is only half the problem on gold: spreads tripling through CPI mean your 0.5% position…

    Wait for the candle close and clean structure confirmation before entering. Chasing mid-range breakouts without a defined stop ruins the reward-to-risk math.

    0 likes

  11. Matthew Hughes

    nordic_pine wrote:

    Wait for the candle close and clean structure confirmation before entering. Chasing mid-range breakouts without a defined stop ruins the reward-to-risk math.

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    0 likes

  12. Gerald F.

    Matthew Hughes wrote:

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    2 likes

  13. Florian Weber

    Wait for the candle close and clean structure confirmation before entering. Chasing mid-range breakouts without a defined stop ruins the reward-to-risk math.

    2 likes

  14. Paul S.

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    0 likes

  15. Robin Meyer

    Paul S. wrote:

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    0 likes

  16. Craig Booth

    Robin Meyer wrote:

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    Someone's scraped my own post and pasted it back at me for the fifth time in this thread. The substance still stands though: equity-based trailing DD kills evaluations during news, and on gold the spread blowout alone can double your 0.5% before the stop fills. Hard-code a max-spread filter into that script or sit flat through the release.

    2 likes

  17. Arthur

    Wait for the candle close and clean structure confirmation before entering. Chasing mid-range breakouts without a defined stop ruins the reward-to-risk math.

    0 likes

  18. Aitor Ruiz

    Arthur wrote:

    Wait for the candle close and clean structure confirmation before entering. Chasing mid-range breakouts without a defined stop ruins the reward-to-risk math.

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    0 likes

  19. Jamie K.

    Aitor Ruiz wrote:

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    0 likes

  20. Cormac Martin

    Jamie K. wrote:

    Check the daily drawdown trailing rules before sizing up. Most traders fail evaluations by ignoring equity drawdown during news spikes.

    Sixth identical paste in this thread, well done. The actual point got buried anyway: the script needs a hard max-spread filter and an equity-based DD check coded in, because a fixed 0.5% lot calc is fiction when gold spreads triple through CPI and your stop fills a full percent wider.

    0 likes

Reply

Sign in to reply.