Best Bob

Post your 10.7 EA's here
Post Reply
Radar
Trader
Posts: 437
Joined: Fri Mar 23, 2012 5:39 pm
Location: Round the bend ;)

Best Bob

Post by Radar »

Hey Zada,
zada » Sun Apr 20, 2014 6:18 pm wrote:I'm not a coder, so keep in mind with my statement... I have observed some EAs designed for the new builds send 2 orders. 1 for entry followed by 2nd order for modify.
There's an input in the EA's, "IsGlobalPrimeOrECNCriminal" which controls that... It's there because of how the brokers handle order open requests...

Some brokers are ECN/STP brokers, that is, your order goes straight to market... When an order goes straight to market, it cannot have a stoploss or takeprofit, as they are different types of orders, which have to be sent after the the original order has been sent and confirmed, and you have a ticket number.

This isn't limited to the new builds, it has been common for quite a few years now.

Have fun!

Radar =8^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
effluvium

What's happening now with BestBob EA ?

Post by effluvium »

Hi Steve,
I'd like to know if this EA could be tested now or it is still in debugging mode ?
Do you have any feedback about its actual performance ?
Also , Wanted to know if you should attach it to each pauir chart you'd like to trade ?
Thanks
phil_trade

Best Bob

Post by phil_trade »

SteveHopwood » 16 Apr 2014, 23:57 wrote:Just to let you guys know that I also have had problems with the ea closing trades.

I have no idea why. This code has worked successfully for years, so not a clue why it should suddenly be flakey now. I made some amendments, but they appear not to have helped. Live with it until someone comes up with a solution. I am not going to spend my entire life trying to solve it.

Probably finding an alternative platform to that of Empty4 will be a major part of solving it.

Also, the yellow flip code appears to be working correctly, so I have bumped MinutesToConfirmYellowFlip up to 15.

:xm:
Hi Steve

This problem appear when we have lot of graph with instrument with different lot (CFD and Forex)

I add to the error message -> Symbo() + OrderSymbol() and can see that Best BOB from EURGBP graph (min lot = 0.01) try to Close a trade from DE30 symbol (min lot = 1)

see attached picture
You do not have the required permissions to view the files attached to this post.
phil_trade

Best Bob

Post by phil_trade »

I have modified the code in adding an "OrderSelect"

Code: Select all

bool CloseTrade(int ticket)
  {
   while(IsTradeContextBusy()) Sleep(100);
   bool orderselect=OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES);
   RefreshRates();
and this EURGBP trade was closed correctly

so I suppose you will need to update all function with "ticket" parameters to ensure a good position of the trade pointer

Philippe
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Best Bob

Post by SteveHopwood »

phil_trade » Mon Apr 28, 2014 2:19 pm wrote:I have modified the code in adding an "OrderSelect"

Code: Select all

bool CloseTrade(int ticket)
  {
   while(IsTradeContextBusy()) Sleep(100);
   bool orderselect=OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES);
   RefreshRates();
and this EURGBP trade was closed correctly

so I suppose you will need to update all function with "ticket" parameters to ensure a good position of the trade pointer

Philippe
Nice one Phil. Thanks.

V1a with the fix is in post 1. I amended it slightly to:

Code: Select all

bool orderselect=OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES);
   if (!orderselect) return(false);
Those of you using my/Tomasso's various shells to create your own ea's need to make changes for yourselves in the shells you have downloaded.

Don't you just love those turds at CrapperQuotes?

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
rapple
Trader
Posts: 277
Joined: Fri Feb 21, 2014 10:56 pm
Location: Sydney, Australia

Best Bob

Post by rapple »

Dear forum

I am new to this group so expect my questions/observations are pretty naive and expecting a bagging :) .

Anyway I have the lastest version of 'Best Bob V1a' running OOTB on the 12 pairs used in the CSS 12 pair system. One change I did make was to turn the 'IsGlobalPrimeorECNCriminal' to 'true' as I have it on ICMarkets ECN demo.

I have noted that I get 'ROGUE TRADING ACTIVITY' on a few pairs and the EA is suspended.

This is due to a series of 'Yellow flips' generating buy/sell trades every 4 to 5 mins.

Is it possible to filter this out....I am thinking of just using the RED and Stoch7 to generate trades

Kind regards Rapple
You do not have the required permissions to view the files attached to this post.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Best Bob

Post by SteveHopwood »

rapple » Tue Apr 29, 2014 9:52 pm wrote:Dear forum

I am new to this group so expect my questions/observations are pretty naive and expecting a bagging :) .

Anyway I have the lastest version of 'Best Bob V1a' running OOTB on the 12 pairs used in the CSS 12 pair system. One change I did make was to turn the 'IsGlobalPrimeorECNCriminal' to 'true' as I have it on ICMarkets ECN demo.

I have noted that I get 'ROGUE TRADING ACTIVITY' on a few pairs and the EA is suspended.

This is due to a series of 'Yellow flips' generating buy/sell trades every 4 to 5 mins.

Is it possible to filter this out....I am thinking of just using the RED and Stoch7 to generate trades

Kind regards Rapple
No idea what has caused this behaviour. It is hard to delve into it until it is replicated on my platform - and it is not replicating for the time being. When replication happens it will grab my attention and force me to do something about it. Until then, I am a tad helpless because I have no clue what is happening.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
phil_trade

Best Bob

Post by phil_trade »

rapple » Yesterday, 23:52 wrote:Dear forum

I am new to this group so expect my questions/observations are pretty naive and expecting a bagging :) .

Anyway I have the lastest version of 'Best Bob V1a' running OOTB on the 12 pairs used in the CSS 12 pair system. One change I did make was to turn the 'IsGlobalPrimeorECNCriminal' to 'true' as I have it on ICMarkets ECN demo.

I have noted that I get 'ROGUE TRADING ACTIVITY' on a few pairs and the EA is suspended.

This is due to a series of 'Yellow flips' generating buy/sell trades every 4 to 5 mins.

Is it possible to filter this out....I am thinking of just using the RED and Stoch7 to generate trades

Kind regards Rapple
Hi
you can set 3 params : MinMinutesBetweenTrades to avoid this special condition !

cheers

Philippe
User avatar
rapple
Trader
Posts: 277
Joined: Fri Feb 21, 2014 10:56 pm
Location: Sydney, Australia

Best Bob

Post by rapple »

Hi Steve and Phil

I am still having the same issue.

With MinMinutesBetweenTrades set to the default '0' I have trades every few seconds.

I then increased 'MinMinutesBetweenTrades' to 1 and the trades were occurring every minute.

It is happening on most pairs

Cheers rapple
You do not have the required permissions to view the files attached to this post.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Best Bob

Post by milanese »

rapple » Wed Apr 30, 2014 10:00 pm wrote:Hi Steve and Phil

I am still having the same issue.

With MinMinutesBetweenTrades set to the default '0' I have trades every few seconds.

I then increased 'MinMinutesBetweenTrades' to 1 and the trades were occurring every minute.

It is happening on most pairs

Cheers rapple
which timeframe you are using?

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Post Reply

Return to “10.7 Auto Traders Forum”