仕事が完了した
指定
To existing EA, create these modifications:
1) After a Downside Martingale is ended via a T/P, reset lot size to initial setting rather than applying Upside Martingale Multiplier. This will prevent the lot size from ballooning without limit.
2) Replace exponential Upside Martingale Multiplier, with a Flat (non-Martingale) Lot Multiplier (ie, 2x/3x/4x, etc) that does not exponentiate: the same factor is applied to all new lots opened following a T/P. (ie 1> T/P > 2, 2, 2, 2, S/L)
Existing Limit setting remains; it will be used to test limiting the length of consecutive wins rather than to limit exponentiation of lot size after a T/P.
The exponential Upside Martingale tends to discard amassed profits when encountering the next Stoploss; a Flat Multiplier can preserve a string of gains on consecutive T/P wins, only losing the last gain on a S/L (of similar magnitude to T/P setting).
This can be effective if the TakeProfit setting is closer than the StopLoss, creating longer strings of consecutive T/P wins.
3) Add a new feature to override position S/L, limiting the $ loss on any position to x% of current portfolio value, default = 2%.
This feature should offer the following choices for opening a new position after emergency S/L:
-- Full Martingale re-entry, which opens the new position at market as if a regular S/L had occurred (if 1, 2, 4 --> 8), using current T/P and S/L settings
-- Minimal Martingale re-entry, which creates a new lot size sufficient to overcome current cumulative realized $ loss. (if 1, 2, [4 stopped at half S/L] --> 6)
-- No re-entry (ie does not open a new position automatically)