Pitbul: Brian's strategy automated

Mariusz
Trader
Posts: 19
Joined: Sun Dec 11, 2011 4:29 pm

Re: Pitbul: Brian's strategy automated

Post by Mariusz »

jboy wrote:I still can't get this EA profitable, even following TLF settings. I would make a few bucks initally with the EA. Then it would go into a big DD. I haven't tried implementing a 1.5% daily stoploss. But this looks like it will involve turning it off and on manually, and knowing how to time the market. So we are getting into discretionary trading. I'm really trying to hard to make this work.
Jboy,

You do not need to turn off this EA to implement 1.5%SL. All you have to do to attach to another chart the EA - CloseTrades_After_Account_Loss_TooMuch and put there 1.5%SL.
I have on my machine and it works together well - another issue is that I cannot also get good results with LTF settings: yesterday 4 losses and 1 gain, today - 5 losses and 1 gain - I am goint to let it run couple of days and then see what can be done...
You do not have the required permissions to view the files attached to this post.
Mariusz
Trader
Posts: 19
Joined: Sun Dec 11, 2011 4:29 pm

Re: Pitbul: Brian's strategy automated

Post by Mariusz »

Update: today 11 losses and 1 gain (based on TLF setting),
TLF - could you please share your results for today (i presume you stopped trading after the first basket loss ie. you loss would be only 1.5%)
jboy
Trader
Posts: 57
Joined: Sat Dec 17, 2011 7:18 am

Re: Pitbul: Brian's strategy automated

Post by jboy »

Mariusz wrote:
jboy wrote:I still can't get this EA profitable, even following TLF settings. I would make a few bucks initally with the EA. Then it would go into a big DD. I haven't tried implementing a 1.5% daily stoploss. But this looks like it will involve turning it off and on manually, and knowing how to time the market. So we are getting into discretionary trading. I'm really trying to hard to make this work.
Jboy,

You do not need to turn off this EA to implement 1.5%SL. All you have to do to attach to another chart the EA - CloseTrades_After_Account_Loss_TooMuch and put there 1.5%SL.
I have on my machine and it works together well - another issue is that I cannot also get good results with LTF settings: yesterday 4 losses and 1 gain, today - 5 losses and 1 gain - I am goint to let it run couple of days and then see what can be done...
Will this stoploss EA prevent the pitbull EA from opening new trades after accounts loses 1.5%? I don't think it will unless it disables all EA completely. If pitbull keeps opening new trades, and the stoploss EA keeps closing them....that can be a very dangerous combination, and quickly draining your account to zero.
Mariusz
Trader
Posts: 19
Joined: Sun Dec 11, 2011 4:29 pm

Re: Pitbul: Brian's strategy automated

Post by Mariusz »

Agree - it will not stop PB EA from running after hitting DAILY limit 1.5%SL, it will just limit loss of ONE basket. This combination let me assess if a rule of 'one basket loss per day' makes sense or not.
TheLocustFund
Trader
Posts: 15
Joined: Tue Apr 10, 2012 3:19 pm

Re: Pitbul: Brian's strategy automated

Post by TheLocustFund »

Mariusz wrote:Agree - it will not stop PB EA from running after hitting DAILY limit 1.5%SL, it will just limit loss of ONE basket. This combination let me assess if a rule of 'one basket loss per day' makes sense or not.
Yes, these settings are killlllllllling it! 3-4 days a week it closes 5-6 baskets a day, then every now and has a losing basket. I cannot fathom why Brian suggests to "control drawdown" When these baskets go in drawdown it is because you were top/bottom ticked. Just have the cajones to bail and live to see another day. Why stress managing 1 basket when you can more than likely come back and make 3x that the next day?? We are just tapping the surface of this system. With months worth of data we can filter out times, optimize the cash take profit etc.
IF "Con" is the Opposite of "Pro", then what is the opposite of PROGRESS?
trader689
Trader
Posts: 674
Joined: Thu Nov 17, 2011 12:53 am

Re: Pitbul: Brian's strategy automated

Post by trader689 »

hey locust

glad to know the strat is working well.... im wondering what im doing wrong though. i installed your setfile and started my demo on masterforex on the 3rd of this month, when it successfllu closed a basket for $50 gain. since then no activity.... is there a preferred broker for this or am i missing a trick ?
Last edited by trader689 on Thu May 10, 2012 9:04 pm, edited 2 times in total.
User avatar
will80
Trader
Posts: 48
Joined: Sun Apr 22, 2012 6:58 am
Location: Sydney, Australia

Re: Pitbul: Brian's strategy automated

Post by will80 »

Hi trader689 - I also had the same problem, a little earlier in the thread jjgengis posted some code you need to modify, paste the code and compile before you run the EA. The code is:

//Open trades
if (OldTradingTime != iTime(NULL, TradingTimeFrame, 0) && !DoneForToday)
{
OldTradingTime = iTime(NULL, TradingTimeFrame, 0);
LookForTradingOpportunities();
}

All credit goes to jjgengis as it works for me. Now getting the EA to be profitable after that first basket is the next challenge ;-)
lilac
Trader
Posts: 60
Joined: Fri Jul 20, 2012 8:57 am

Re: Pitbul: Brian's strategy automated

Post by lilac »

I am experimenting with pitbull EA, first 1H and after 15M TF + Relative 180M. It's very good at printing money at both TF, many profitable baskets and individual trades closed, but i noticed the DD was bigger at higher TF (or at least that was my impression), so I tried the smallest TF 1M + Relative 10M, threshold 5 and 0.1 lot. I also configured mptm to handle losing trades with a hedge at -17 pips and close at breakeven. Profitable trades breakeven at 10 locking 5, and overall basket breakevenprofit 10$, both jumping by 5 after breakeven.

This creates many small profits of 5-10-15$, and the overall DD is smaller (didn't see it going above -20). The most profitable hours have been during the London session in the morning, however in the afternoon and during NY session everything goes slower, making profits and breaking even losing trades in a slow market seems to be harder, so it makes sense to trade only 9h to 16h GMT +2.

Brijon pointed some ways of managing DD different form hedging, such as taking profits of pairs that are no longer listed at top/bottom of the indi, balancing number of buys and sells according to current trend, and taking advantage of high interest currencies swap. He also said that the currency strength meter was an important part of this system.

So far it is going well, although i believe it could do much better with a good DD management, as described above, and not just hedging like I am currently doing. It would be good to be able to configure a max number of open trades, trades per pair, and sleep minutes to next trade of same pair, as mobthehop suggested earlier in this thread. A margin check would provide more protection too.

I think this EA has a lot of potential, is there anybody still using pitbull ea with any sort of success?

It is working well for me so far, except for the fact that i have to restart it manually after basket or individual trades are closed, because otherwise it will open no more trades at all. I looked earlier at this thread, and some others pointed the same problem when selecting TF lower than H1. I tried this code fix:
SteveHopwood wrote:
webregs wrote:I'm having the same issue. When the EA is started it opens the two strongest and two weakest trades as per OOTB settings then once these are closed in profit it doesn't open anymore until I restart the EA. Can't find where this is set in the code (assuming it is)?
It isn't. If this is the only EA you are demoing on the platform, then the problem is definitely at your end. The only potential is for ForceClose being somehow left set at 'true', but the code

Code: Select all

if (OrdersTotal() == 0) ForceClose = false;
resets the variable.

If you are demoing different ea's on the same platform, then move

Code: Select all

      //The next routine takes care of all trade closure possibilities
      CountOpenTrades();
so that it is positioned above the OrdersTotal() conditional and add

Code: Select all

if (OpenTrades == 0) ForceClose = false;
to see if this sorts out the problem.
:D
The above didn't work for me. I also pasted this code:

Code: Select all

//Open trades
if (OldTradingTime != iTime(NULL, TradingTimeFrame, 0) && !DoneForToday)
{
OldTradingTime = iTime(NULL, TradingTimeFrame, 0);
LookForTradingOpportunities();
}
But that was exactly the same code that already appeared in the version I am using (1st post)

Then I also saw this workaround, but I don't really know how to implement this code:
jjgengis wrote:HI
this could be a workaround for this EA for substitute iTime() function:

Code: Select all

bool SyncroTime()
{
   string minuti = StringSubstr( TimeToStr(TimeCurrent(), TIME_DATE|TIME_MINUTES) , 14 , 2 ) ;
   if (minuti == "00" || minuti == "15" || minuti == "30" || minuti == "45" )
   {
      return(true);
   }
   return(false);
}
JJ
Did anybody manage to make the ea restart itself after closing trade/basket, when using TF other than 1H? Anybody tried the fix above? I would really appreciate any kind of help. Thanks.
mesto
Posts: 2
Joined: Wed Aug 15, 2012 8:10 am

Re: Pitbul: Brian's strategy automated

Post by mesto »

Hello, please some body can send me teh ea with code added inside because when i put in chart open trades but after no activity. Thanks
lilac
Trader
Posts: 60
Joined: Fri Jul 20, 2012 8:57 am

Re: Pitbul: Brian's strategy automated

Post by lilac »

my BasketCashDailyTarget=100.0, and ea doesn't wake up after first closure, even if target not reached. I will try with 0 to see if it helps, anyway i manage pb trades with mptm to be able to use BE and JS. thanks.
lehoaac wrote:Did U try to check out "BasketCashDailyTarget" option ?!

I have read the code anh see that

1. when U set it to 0 - the EA will restar in next bar
2. when U set it to 5 as default - the EA will auto restar in next day :lol: because it's enought for the day.


------------------
Did anybody manage to make the ea restart itself after closing trade/basket, when using TF other than 1H? Anybody tried the fix above? I would really appreciate any kind of help. Thanks.
Post Reply

Return to “Automated trading systems”