myPickyBreakout - Forex Forum - EarnForex
Forex Forum - EarnForex
Serving Traders Since 2005
 

Go Back   Forex Forum - EarnForex > MetaTrader > MetaTrader Expert Advisors

MetaTrader Expert Advisors Post and discuss the MetaTrader expert advisors here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 6th July 2009, 13:23
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 2,073
Thanks: 69
Thanked 109 Times in 66 Posts
Default myPickyBreakout

Discuss myPickyBreakout expert advisor here. myPickyBreakout is a simple breakout strategy for a daily EUR/USD chart that trades only on specific weekdays. You can ask any questions about this expert advisor here.
Reply With Quote
The Following User Says Thank You to Enivid For This Useful Post:
erickbinusman (19th July 2012)
  #2 (permalink)  
Old 31st December 2011, 12:51
Default Avatar
Junior Member
 
Join Date: Oct 2011
Location: london
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Smile regarding my picky

could this EA be altered to have the option to trade eveyday
without to much hassel ?. I like this EA it can be used in a lot of different
ways...would appreciate it heaps....thanks
Reply With Quote
  #3 (permalink)  
Old 9th January 2012, 14:08
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 2,073
Thanks: 69
Thanked 109 Times in 66 Posts
Default

Re-download the latest version of myPickyBreakout. You can now control the days on which to trade using the input parameters. By default, it's the same Tuesday, Wednesday and Thursday, but you can switch all days on.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #4 (permalink)  
Old 15th March 2012, 14:56
Default Avatar
Junior Member
 
Join Date: Feb 2012
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Angry my Picky breakout EA

Quote:
Originally Posted by Enivid View Post
Discuss myPickyBreakout expert advisor here. myPickyBreakout is a simple breakout strategy for a daily EUR/USD chart that trades only on specific weekdays. You can ask any questions about this expert advisor here.
Often, the EA is a close loss-making position, and open a new one in the same direction. This is not right. Can I change this?: Mad:
Reply With Quote
  #5 (permalink)  
Old 16th March 2012, 09:26
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 2,073
Thanks: 69
Thanked 109 Times in 66 Posts
Default

Try setting MaxDuration to something really big (like 10000).
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
The Following User Says Thank You to Enivid For This Useful Post:
pusztafie (19th March 2012)
  #6 (permalink)  
Old 13th July 2012, 02:45
ElectricSavant's Avatar
Member
 
Join Date: Dec 2010
Posts: 41
Thanks: 0
Thanked 4 Times in 4 Posts
Default

This is kind of a nice EA for those of you that like longer lasting trades. This is on the daily chart and I have been testing it for a couple of weeks so far and it has been in one trade for half of the time. It has a picky criteria for entering the trade and it stays in it for some time. I am riding a short down nicely currently.

I Like it!

Thanks for this EA.

ES

Last edited by ElectricSavant; 13th July 2012 at 03:00.
Reply With Quote
The Following User Says Thank You to ElectricSavant For This Useful Post:
Enivid (13th July 2012)
  #7 (permalink)  
Old 13th July 2012, 07:09
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 2,073
Thanks: 69
Thanked 109 Times in 66 Posts
Default

Good for you! Please keep us updated if it works well for you.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #8 (permalink)  
Old 16th July 2012, 13:57
ElectricSavant's Avatar
Member
 
Join Date: Dec 2010
Posts: 41
Thanks: 0
Thanked 4 Times in 4 Posts
Default

0,Red and 0,Blue does not work when I add them here to get the arrows. Can someone help? I also need those triangles and lines showing the close. Also, where in the code does it specify to close in 5 bars?
ES


MQL4 Code:
void fBuy()
{
    RefreshRates();
    int result = OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,"myPickyBreakout",Magic,0);
    if (result == -1)
    {
        int e = GetLastError();
        Print(e);
    }
    Duration = 0;
}

//+------------------------------------------------------------------+
//| Sell                                                             |
//+------------------------------------------------------------------+
void fSell()
{
    RefreshRates();
    int result = OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippage,0,0,"myPickyBreakout",Magic,0);
    if (result == -1)
    {
        int e = GetLastError();
        Print(e);
    }
    Duration = 0;
}

Last edited by ElectricSavant; 16th July 2012 at 14:01.
Reply With Quote
  #9 (permalink)  
Old 17th July 2012, 08:05
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 2,073
Thanks: 69
Thanked 109 Times in 66 Posts
Default

Quote:
Originally Posted by ElectricSavant View Post
0,Red and 0,Blue does not work when I add them here to get the arrows. Can someone help? I also need those triangles and lines showing the close. Also, where in the code does it specify to close in 5 bars?
ES


MQL4 Code:
void fBuy()
{
    RefreshRates();
    int result = OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,"myPickyBreakout",Magic,0);
    if (result == -1)
    {
        int e = GetLastError();
        Print(e);
    }
    Duration = 0;
}

//+------------------------------------------------------------------+
//| Sell                                                             |
//+------------------------------------------------------------------+
void fSell()
{
    RefreshRates();
    int result = OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippage,0,0,"myPickyBreakout",Magic,0);
    if (result == -1)
    {
        int e = GetLastError();
        Print(e);
    }
    Duration = 0;
}
Please do not forget to use code highlighting when inserting MQL code.

MQL4 Code:
    int result = OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,"myPickyBreakout",Magic,0);

should become:

MQL4 Code:
    int result = OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,"myPickyBreakout",Magic,0, Blue);

MQL4 Code:
    int result = OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippage,0,0,"myPickyBreakout",Magic,0);

should become:

MQL4 Code:
    int result = OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippage,0,0,"myPickyBreakout",Magic,0, Red);

Don't forget to "Compile".

Duration is the counter of bars since the position is open. MaxDuration is an input parameter, which equals 5 by default:

MQL4 Code:
   if (Duration == MaxDuration)
   {
      CloseOrder(OT);
      count = 0;
   }
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
Reply

Bookmarks

Tags
breakout, expert advisor, metatrader


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Inactive Reminders By Icora Web Design

SEO by vBSEO 3.3.2