Hello devs,
I need an EA that manages my open trades and has a panel to change the values of the rules.
The EA needs the following rules:
- every trade that goes 20% in profit needs its SL moved 50% towards entry.
- Every trade that goes 50% in profit needs its SL moved to 1% profit.
- Every trade that goes 60% in profit needs to partial close 50%.
Example:
I take a buy order on EURUSD at 1.2000 with a lot size of 10. I set SL at 1.9500 and TP at 1.3000. When the trade goes in profit and price touches 1.2200, SL needs to be moved to 1.9750. Why?
1.2200 is 20% in profit.
How?
1.3000 - 1.2000 = 0.1000
0.1000 * 0.2 + 1.2000 = 1.2200
Why SL to 1.9750?
1.2000 - 1.9500 = 0.05
0.05 * 0.5 + 1.9500 = 1.9750
Next the trade goes 50% in profit (price touches 1.2500). Now SL needs to go 1% in profit (SL to 1.2100).
After that, price touches 1.2600, this is 60% in profit. Now the trade has to be closed for 50%, so 10 * 0.5 = 5 lots.
In a sell order it would be exactly the same calculations.
I take a sell order on GBPUSD at 1.5000 with a lot size of 8. SL is at 1.5600 and TP at 1.4200.
When trade goes 20% in profit, aka price touches 1.4840.
(1.4200 - 1.5000) * 0.2 + 1.5000 = 1.4840
Now SL needs to go 50% towards entry, aka SL to 1.5300.
(1.5000 - 1.5600) * 0.5 + 1.5600 = 1.5300
And so on…
Formula to calculate price at a certain percentage in profit:
TP = Take Profit price
EN = Entry Price
P = percentage in profit
(TP - EN) * P + EN = Price
Formula to calculate price at half SL:
SL = Stop Loss Price
EN = Entry price
(EN - SL) * 0.5 + SL = price
When I’ve manually entered a trade, the EA has to immediately calculate all the price points where a change is needed and save them. Now the EA only has to be in a while loop and check if a certain price is touched where a certain change is needed.
Every function in the code needs a description about what it does and its inputs and outputs. No DLLs
The EA may not open positions. It only may adjust manually entered trades.
Solicitudes similares
I need a boom-and-crash MT5 robot that is very accurate for opening trades just before the spike happens. It should use M1 or M5 timeframe It should have options for changing lot size, number of trades to open, stop loss and take profit in points If the spike happens and it makes some profit, it should automatically close all trades. If the spike happens and the spike is not in profits, the trades can remain open
Merge nearby zones yes/no Alert on/off Label on/off Show only current relevant zones near price yes/no Distance filter from current price Zone transparency Colors Preferred Output on Chart: I want the indicator to show only: the strongest nearby support zones under price the strongest nearby resistance zones above price major higher timeframe zones clean chart view I do not want excessive clutter. Entry Assistance
Criei um Robô para a venda alta precisão que automatiza a estratégia de correção média de Larry Williams. Possui filtros de tendência seletiva, controle de lote por risco percentual e execução rápida. Compatível com contas Hedge e Netting. Configuração simples e otimizada para mercados de alta volatilidade. *55(16) 993786056
I want already build FULLY AUTOMATED order block MT5 XAUUSD HTF H4 ENTRY LTF M15 - Show result on live account. m15 ob entry in the direction of h4 ob bias the developper to provide source code in the end
Project Title: Custom XAUUSD Support & Resistance Indicator Platform Required: MT5 preferred. If possible, also provide TradingView Pine Script version later. Main Goal: I want a custom indicator made specifically for XAUUSD (Gold) only. The indicator should automatically detect and draw strong support and resistance zones where price has a high probability of reacting, rejecting, or reversing. It must update
1. IF price forms: - Higher highs + higher lows → TREND = BUY - Lower highs + lower lows → TREND = SELL ELSE → NO TRADE 2. IF: - Trend = BUY - Price retraces to support zone - Bullish engulfing candle forms - TDI green crosses above red (optional) THEN: - Execute BUY 3. IF: - Trend = SELL - Price retraces to resistance - Bearish engulfing forms - TDI confirms THEN: - Execute SELL 4. Risk per trade = 1% of account Lot
I need a high frequency trading robot for gold in one or 5 minute timeframe the robot should have spread filter where it should only open trades below a set spread should have news filter to allow trading during fundal news or not the robot should have input in number of minutes to close all open trades and remove pending orders before fundamental news as part of news filter. It should also have the number of minutes
Hello, I am looking for a professional trading system including: 1- Trading Bot (Expert Advisor): - Good profit performance - High security and strong risk management - Works efficiently during high market volatility (news and strong movements) - Works on all pairs (Forex + Gold) 2- Signal Indicator: - Provides clear Buy and Sell signals - Includes Take Profit and Stop Loss - No repaint (signals must not change or
This is yakubu Jnr trading bots I create the trading robots to help my self and others traders to be successful please you can join my live trading bots or subscribe to my trading robots