Automatic stops executed by alert, not actual order in market ???

 

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.

 

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(...)
Reason: