On Friday, starting from the specified time ' Friday Start Hour ' :: ' Friday Start Minute ', the utility starts closing positions and deleting pending orders.
Stop loss and take profit are stop orders that close a position when the price reaches their value. Stop loss allows traders to limit losses, while take profit enables thjem to save their gains. The main advantage of using stop loss and take profit is the ability to control financial risks and use money management.
noorad sharafi: Which strategy is best to close profitable positions ?
Based on extensive back testing, for retail traders overall costs and conditions, closing a position at n standard deviations or ATR from the current price seems to be the best choice.
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 models position exits as an American option and implements the Longstaff–Schwartz least‑squares Monte Carlo in native MQL5. The engine calibrates drift and volatility from recent returns, simulates forward price paths, and uses backward induction to compare immediate exercise to continuation. It integrates into an EA with hard time and price backstops and a live indicator, and is tested on four symbol/timeframe combinations with mixed, reproducible Strategy Tester results.
Close Delete On Friday - expert for MetaTrader 5
On Friday, starting from the specified time ' Friday Start Hour ' :: ' Friday Start Minute ', the utility starts closing positions and deleting pending orders.
Forum on trading, automated trading systems and testing trading strategies
Where Do I start from?
Sergey Golubev, 2024.03.20 06:28
Trader-friendly stop loss and take profit
Which strategy is best to close profitable positions ?
Based on extensive back testing, for retail traders overall costs and conditions, closing a position at n standard deviations or ATR from the current price seems to be the best choice.
Optimal Trade Exit in MQL5: Longstaff-Schwartz Least-Squares Monte Carlo for Continuation-Value Estimation