Peaky on Steroids
-
Maximilian
- Trader
- Posts: 150
- Joined: Sat Sep 06, 2014 2:43 pm
Peaky on Steroids
I think the red dot is a reminiscene of Dotty. She feels probably neglected and a bit jelous. Therefore she sents some of her dots to remind you.

-
macush
- Trader
- Posts: 31
- Joined: Wed Mar 16, 2016 12:34 am
Peaky on Steroids
Can we have a special thread for Steve's CLANGERS??
" Not even the merest beginnings of the slightest hint of the opening gambit of a clue what happened there."
" I am starting to lose the will to live "
Priceless !!!!

" Not even the merest beginnings of the slightest hint of the opening gambit of a clue what happened there."
" I am starting to lose the will to live "
Priceless !!!!
- Zool
- Trader
- Posts: 50
- Joined: Wed May 09, 2012 8:39 pm
- Location: Komárom, Hungary
Peaky on Steroids
"AUDCHF Peaky on Steroids OP_SELLSTOP order send failed with error(130): invalid stops TF = M15: bid = 125.758 Price = 125.255"
Getting this error message. Then it changes to AUDCAD after some time. The price (125.75) is for the EURJPY pair, and I think PoS is trying to send recovery trades, since it moved away more than 100 pips from my sell order.
Getting this error message. Then it changes to AUDCAD after some time. The price (125.75) is for the EURJPY pair, and I think PoS is trying to send recovery trades, since it moved away more than 100 pips from my sell order.
- PJSantos100
- Trader
- Posts: 16
- Joined: Sun Sep 04, 2016 4:36 am
- Location: Dubai but Portuguese :)
Peaky on Steroids
Zool » Tue Jun 27, 2017 2:32 pm wrote:"AUDCHF Peaky on Steroids OP_SELLSTOP order send failed with error(130): invalid stops TF = M15: bid = 125.758 Price = 125.255"
Getting this error message. Then it changes to AUDCAD after some time. The price (125.75) is for the EURJPY pair, and I think PoS is trying to send recovery trades, since it moved away more than 100 pips from my sell order.
Hi zool , same error here
- tomele
- Administrator
- Posts: 1208
- Joined: Tue May 17, 2016 3:40 pm
- Location: Germany, Forest of Odes, Defending the Limes
Peaky on Steroids
Hi.
AUDCAD and/or AUDCHF at 125-ish? This looks like a CHFJPY price. The EA seems to mix up the pairs. The order looks right, only the symbol looks wrong.
AUDCAD and/or AUDCHF at 125-ish? This looks like a CHFJPY price. The EA seems to mix up the pairs. The order looks right, only the symbol looks wrong.
Happy pippin, Thomas 
It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so. (Mark Twain)
Keep the coder going: Donate
It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so. (Mark Twain)
Keep the coder going: Donate
- Zool
- Trader
- Posts: 50
- Joined: Wed May 09, 2012 8:39 pm
- Location: Komárom, Hungary
Peaky on Steroids
Yes the price is definitely a xxxJPY pair's price. I think there is some mixing up with the different arrays. I think somehow the index of the time frame array sare used to get the symbol name from the trade pair array. I have trades on the 1st 2 timeframes needing the FillGapsWithStopOrders orders, and the symbol name array's first 2 symbols are the ones that are coming up in the error messages.tomele » Tue Jun 27, 2017 1:47 pm wrote:Hi.
AUDCAD and/or AUDCHF at 125-ish? This looks like a CHFJPY price. The EA seems to mix up the pairs. The order looks right, only the symbol looks wrong.
I'm trying to track down this bug, but I'm a bit rusty with MQL4 and first I have to translate Steve's shell code to my brain
- PJSantos100
- Trader
- Posts: 16
- Joined: Sun Sep 04, 2016 4:36 am
- Location: Dubai but Portuguese :)
Peaky on Steroids
Hi Zool ,Zool » Tue Jun 27, 2017 5:10 pm wrote:Yes the price is definitely a xxxJPY pair's price. I think there is some mixing up with the different arrays. I think somehow the index of the time frame array sare used to get the symbol name from the trade pair array. I have trades on the 1st 2 timeframes needing the FillGapsWithStopOrders orders, and the symbol name array's first 2 symbols are the ones that are coming up in the error messages.tomele » Tue Jun 27, 2017 1:47 pm wrote:Hi.
AUDCAD and/or AUDCHF at 125-ish? This looks like a CHFJPY price. The EA seems to mix up the pairs. The order looks right, only the symbol looks wrong.
I'm trying to track down this bug, but I'm a bit rusty with MQL4 and first I have to translate Steve's shell code to my brain
If it helps... i disabled the 1st time frame and i'm just using the 2nd , 3rd and 4th but still i have the same error as you....
Sorry , the error cames from AUDJPY...
Also AUDJPY H4 raised more than 20 pending orders , because every time the EA tries to modify the
order it will open a new one :youknow:
Cheers
- tomele
- Administrator
- Posts: 1208
- Joined: Tue May 17, 2016 3:40 pm
- Location: Germany, Forest of Odes, Defending the Limes
Peaky on Steroids
Hi.
I might have found it. OrderSymbol() in FillGapsWithStopOrders gives back wrong symbol. The LatestTradeTicketNo for my orders belongs to other symbols than OrderSymbol() gives back.
A possible fix looks like this:
In line 2312, change the call to:
Replace FillGapsWithStopOrders with this one:
I might have found it. OrderSymbol() in FillGapsWithStopOrders gives back wrong symbol. The LatestTradeTicketNo for my orders belongs to other symbols than OrderSymbol() gives back.
A possible fix looks like this:
In line 2312, change the call to:
Code: Select all
FillGapsWithStopOrders(cc,symbol);Code: Select all
void FillGapsWithStopOrders(int dd, string symbol)
{
//Fill in the gaps between the market price and the most recent trade
//when the market is above the PH or below the PL.
bool result = true;
double price = 0;
double SendLots = Lot;
double stop = 0, take = 0;
//Sell stops
if (LatestTradeTicketNo > -1)
if (BetterOrderSelect(LatestTradeTicketNo, SELECT_BY_TICKET, MODE_TRADES))
if (OrderType() == OP_SELL || OrderType() == OP_SELLSTOP)
if (bid - OrderOpenPrice() >= (MarketDistance / factor) )
{
price = NormalizeDouble(OrderOpenPrice() + (MarketDistance / factor) / 2, digits);
take = OrderTakeProfit();//New stop orders have the same take profit as the oldest market trade
if (!DoesStopOrderExist(symbol, OP_SELLSTOP, price, dd))
{
stop = CalculateStopLoss(OP_SELL, price, dd);
result = SendSingleTrade(symbol, OP_SELLSTOP, TradeComments[dd], SendLots, price, stop, take, MagicNumbers[dd]);
}//if (!DoesStopOrderExist(OrderSymbol(), OP_SELLSTOP, price, dd))
}//if (bid - OrderOpenPrice() >= (MarketDistance / factor) )
//Buy stops
if (LatestTradeTicketNo > -1)
if (BetterOrderSelect(LatestTradeTicketNo, SELECT_BY_TICKET, MODE_TRADES))
if (OrderType() == OP_BUY|| OrderType() == OP_BUYSTOP)
if (OrderOpenPrice() - bid >= (MarketDistance / factor) )
{
price = NormalizeDouble(OrderOpenPrice() - (MarketDistance / factor) / 2, digits);
take = OrderTakeProfit();//New stop orders have the same take profit as the oldest market trade
if (!DoesStopOrderExist(symbol, OP_BUYSTOP, price, dd))
{
stop = CalculateStopLoss(OP_BUY, price, dd);
result = SendSingleTrade(symbol, OP_BUYSTOP, TradeComments[dd], SendLots, price, stop, take, MagicNumbers[dd]);
}//if (!DoesTradeExist(OP_BUYSTOP, price))
}//if (OrderOpenPrice() - bid >= (MarketDistance / factor) )
}//End void FillGapWithStopOrders(int cc)
Happy pippin, Thomas 
It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so. (Mark Twain)
Keep the coder going: Donate
It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so. (Mark Twain)
Keep the coder going: Donate
- Zool
- Trader
- Posts: 50
- Joined: Wed May 09, 2012 8:39 pm
- Location: Komárom, Hungary
Peaky on Steroids
Thank you it seems like your mod solved the issue. The one thing I don't get that the OrderTakeProfit() and OrderOpenPrice() functions are giving the good values yet the OrderSymbol() gives back something completely different. This is a Empty4 feature, or I am missing something here?tomele » Tue Jun 27, 2017 2:52 pm wrote:Hi.
I might have found it. OrderSymbol() in FillGapsWithStopOrders gives back wrong symbol. The LatestTradeTicketNo for my orders belongs to other symbols than OrderSymbol() gives back.
-
taipan
- Trader
- Posts: 355
- Joined: Sat Feb 16, 2013 11:27 am
Peaky on Steroids
Is it this statement to be repalced:" LookForTradingOpportunities(symbol, cc);" with your code?