Thank you!ROBST3R wrote:here you go, 1.35
Best Regards,
MiTija
Code: Select all
if (OrderType() == OP_BUY)
{
stop = CalculateStopLoss(OP_SELL);
}//if (OrderType() == OP_BUY)
Code: Select all
if (OrderType() == OP_BUY)
{
stop = CalculateStopLoss(OP_BUY);
}//if (OrderType() == OP_BUY)
Oops! I havent done anything with that code from the Shell so something to watch for in other EAs maybe? I'll update and send out a fix in a bit. Nice catch!skoda2008 wrote:I have been running version 1.38 for the last few days. I noticed a few orders were slipping through with no stoploss applied. It turns out there is a small typo in the InsertStopLoss module, a small typo which could potentially cost you $$$!
Should be changed to:Code: Select all
if (OrderType() == OP_BUY) { stop = CalculateStopLoss(OP_SELL); }//if (OrderType() == OP_BUY)
Otherwise you may end up with no stoploss applied to some Buy orders, as I was experiencing.Code: Select all
if (OrderType() == OP_BUY) { stop = CalculateStopLoss(OP_BUY); }//if (OrderType() == OP_BUY)
magft wrote:Update in Post #1
It should dotrader689 wrote:hey magft does this latest update also fix this following error, referring to v1.38? -
"Weird activity this morning. I had several trades open up that were totally backwards. Buy orders when candles were all well below MA"
thanks
magft wrote:Update in Post #1
Hi magft, I have the latest version and I have had 8 trades all losers and all appear to placed back to front.magft wrote:It should dotrader689 wrote:hey magft does this latest update also fix this following error, referring to v1.38? -
"Weird activity this morning. I had several trades open up that were totally backwards. Buy orders when candles were all well below MA"
thanks
magft wrote:Update in Post #1
I'm not getting back to fronts, just losing trades...Rascacio wrote: Hi magft, I have the latest version and I have had 8 trades all losers and all appear to placed back to front.
I can't figure it out. Anyone else with obviously reversed trades ?