I have an existing EA that works fine except for the partial takeprofit element.
Currently, it has a five step level of partial takeprofit:
string _group_12_ = "+++";
bool partialtp = false; // partial close at takeprofit 2,3,4,5
double takeprofit2 = 10; // takeprofit 2 to close a certain percentage of
lot
double tp2percentage = 40; // percentage of lots to close at takeprofit 2
double takeprofit3 = 20; // takeprofit 3 to close a certain percentage of
lots
double tp3percentage = 20; // percentage of lots to close at takeprofit 3
double takeprofit4 = 30; // takeprofit 4 to close a certain percentage of
lots
double tp4percentage = 20; // percentage of lots to close at takeprofit 4
double takeprofit5 = 40; // takeprofit 5 to close a certain percentage of
lots
double tp5percentage = 10; // percentage of lots to close at takeprofit 5
Problem is, none of these partial take profits work, at least not in backtesting. I want them to work in backtesting and live. So you might need to
examine the code and see what needs to be tweeked.
Also, I would like three additional partial takeprofit levels to be worked out based on ATR.
I already have the formula for the ATR takeprofit (as it is used for my takeprofit), but I would like to add it to the partial takeprofit as an
option. Please show me that these partial take profits can work in backtesting and live.
相似订单
Project Description I am looking for an experienced MQL5/MT5 Expert Advisor developer to develop an automated trading EA for XAUUSD on the M3 timeframe , running on an Exness account . The EA will automate a manual strategy based on SNR/GAP zones , using two setup types: Price Rejection Price Correction The EA should identify valid BUY/SELL setups around predefined SNR/GAP areas, apply configurable RSI, SMA, EMA and
Indicador Maximas e Minimas + Super Trend O Indicador MAX/MIN é um indicador de análise técnica para o MetaTrader 5 , desenvolvido para ajudar você a identificar regiões importantes de preço e possíveis oportunidades de compra e venda. O que ele faz MAX/MIN: identifica máximas e mínimas relevantes do mercado e mostra os preços no gráfico. HH / HL / LH / LL: ajuda a visualizar a estrutura do mercado, mostrando quando
Hi i need help to connect my chat gtp with ninja trader I have all tools. Just need supervision and seeking a professional who can do that for me. This the bridge extension https://crosstrade.io/blog/chatgpt-to-ninjatrader-mcp-walkthrough
Hello everybody, I'm looking for an experienced MQL4/MQL5 developer to optimize a High-Frequency Trading (HFT) Expert Advisor for both MT4 and MT5. The EA performs consistently and profitably on demo accounts, but when it is run on Raw and Standard live accounts under what appear to be the same trading conditions, it begins generating losses. I do not have the original source code (.mq4/.mq5); I only have the