Don't use the word alert since that deals with a pop up message.
If the "market goes almost to the TP and pulls back," what would you like it to do? You're not explaining clearly.
"allows u to go through" Don't use a TP.
Write a EA that moves the SL as the market approaches the TP
extern double RRR.SL = 1.3; for(int pos = OrdersTotal()-1; pos >= 0; pos--) if ( OrderSelect(pos, SELECT_BY_POS) // Only my orders w/ && OrderMagicNumber() == Magic.Number // my magic number && OrderSymbol() == Symbol() ){ // and symbol if (OrderType() == OP_BUY){ int DIR=+1; } else DIR=-1; double SLrrr = OrderClosePrice() - RRR.SL*(OrderTakeProfit()-OrderClosePrice()); if ((SLrrr-OrderStopLoss())*DIR>Point) OrderModify(...)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Wondering if its possible, or if anyone has done it. Make a EA that can just get you out by setting the alert at a set price and if hit trade close is executed by this alert setting. Without actually putting the active order in the game, that which is not seen is good, no big bullseye on you order. I cant remember how many times i have set a tp and market goes almost to and pulls back, meanwhile missing the whole thing, maybe a function could be coded into it that allows u to go through the alert but never back, that would be a cool option. Dont know if possible i am ignorant to this. You guys are the smart ones. Thanks for anyone intrested in developing.