Discussing the article: "Optimal Trade Exit in MQL5: Longstaff-Schwartz Least-Squares Monte Carlo for Continuation-Value Estimation"
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Check out the new article: Optimal Trade Exit in MQL5: Longstaff-Schwartz Least-Squares Monte Carlo for Continuation-Value Estimation.
Every discretionary trader asks the same question about an open position: is this the best exit I'm going to get, or should I give it more room? Most automated systems answer with a fixed stop-loss/take-profit pair decided at entry, sometimes with a trailing rule bolted on - a reasonable default, but one that throws away information, since the market keeps talking after entry and a fixed level can't listen to any of it.
This article builds an exit engine that does listen. It borrows a tool from a different corner of quantitative finance: the Longstaff-Schwartz Least-Squares Monte Carlo (LSM) method, developed to price American options - contracts that, unlike European options, can be exercised any time before expiry. An open trading position shares that shape in one narrow sense: at every point you choose between exercising (closing the trade, banking what's on the table) and continuing (holding, keeping the optionality of a better price later). It isn't an option in any stricter sense - no counterparty, no risk-neutral price, and a losing position has a negative payoff a vanilla option never has. This article adapts that machinery - historical drift for risk-neutral valuation, position PnL net of costs for option payoff, an artificial forced-liquidation horizon for a fixed expiry - into a live trade-management module for MetaTrader 5.
Author: Adesewa Tolulope Gbadebo