if(there are a signal with the oposite sign)
{
OrderClose(.....);
}
qjol:
Really Thanks qjol for your answer.I try it.
i have a similar problem, i want to close and order and the new signal, if no stop by stoploss, must close one and open a new, but i don´t know.
I make this.
if (ma1<ma2)
{OrderClose(OrderTicket(), OrderLots(), dnBid, Slippage, MediumSeaGreen);
if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(dnBid, Digits) + " Close Buy");
if (!EachTickMode) BarCount = Bars;
IsTrade = False;
Order = SIGNAL_BUY;
}
......
if (Order == SIGNAL_BUY && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) {
if(!IsTrade) {
Ticket = OrderSend(Symbol(), OP_BUY, lotMM, dnAsk, Slippage, StopLossLevel, TakeProfitLevel,
"Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue);
}
CROM:
Helloo!!!!!!!!
I have my own ea based in the distance between two ema´s. ( I attach a picture in EURUSD M15 )
But I have a problem, I don´t know how to close the trade if there are a signal with the oposite sign, and open this new signal.
If there aren´t new signals my objective is TP : 600 and SL: 120 pips
Any help is good, thanks guys..
Crom,
So your holding onto a trade until TP or SL? Care to share the system?
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
I have my own ea based in the distance between two ema´s. ( I attach a picture in EURUSD M15 )
But I have a problem, I don´t know how to close the trade if there are a signal with the oposite sign, and open this new signal.
If there aren´t new signals my objective is TP : 600 and SL: 120 pips
Any help is good, thanks guys..