Avatar Hendrick Stam
400094

Phoenix_4_CONTEST (USDJPY 15 minutes)
 
Balance:
19 732.31  
Profit:
0.00  
Equity: 19 732.31  
5
Files:
 Phoenix_4_CONTEST.mq4 (10.5 Kbytes)
comments: 
Totals: 49
To add comments, please,log in or register
 
Actually, after having read the Phoenix thread at Forex Factory I now understand that this EA doesn't reverse direction when receiving a reversing signal when in an open position. The indicator shows all of the signals. This is why the indicator and EA don't align.

billworld wrote:

I applied this indicator and compared it with the actual trades logged for Hendrick and don't see a one-to-one correlation. The indicator below generates way more signals than are traded. Is there some additional filter that is required?

freaky wrote:
Hi Hendrick,
I use your EA since 2 weeks. It gives me 8 TP in a row! GREAT.
I've made an indicator showing the signals made by Phoenix.
Here it goes:




2006.11.12 16:00

I applied this indicator and compared it with the actual trades logged for Hendrick and don't see a one-to-one correlation. The indicator below generates way more signals than are traded. Is there some additional filter that is required?

freaky wrote:
Hi Hendrick,
I use your EA since 2 weeks. It gives me 8 TP in a row! GREAT.
I've made an indicator showing the signals made by Phoenix.
Here it goes:



2006.11.11 21:10

May God Bless you Harry ! :)
2006.11.10 23:17
Hendrick Stam,
I really admire your kindness, sir
by sharing us your EA, while the others just like to keep it for themselves if profitable

I will help as much as I can like you did to others,

May You win, Hendrick..


2006.11.10 18:39
raduga wrote:
Indeed, this is the right piece of code:

maF2 = iMA(Symbol(), 0, F_Period, 0, MODE_SMA, F_Price, mypos + 1);
maS2 = iMA(Symbol(), 0, S_Period, 0, MODE_SMA, S_Price, mypos + 1);
return(maF2-maS2);

If it can be replaced by a MACD? Could be. Will test this. Thanks for your contribution!




freaky
wrote:

BTW

This piece of code:

    dv1 = (maF1 - maS1);
// same code...
    dv2 = ((maF1 - maS1) - (maF2 - maS2));
    return(dv1 - dv2);
is completely with no sense.

1. dv1 - dv2 = dv2!!!
2. And dv2 is simply MACD(fast,slow,mypos+1)

So all divergence function could be replaced by one iMACD(...) value.





... just a notice...

1. dv1 -dv2 != dv2 !!! but dv1 - dv2 = maF2 - maS2 !!!!!
2. dv2 is NOT MACD, but MACD(fast,slow, mypos) - MACD(fast,slow, mypos+1) !!!!!

But you're right ... all divergence function could be surely replaced by iMACD(fast, slow, pos+1)... :-))))))
and this piece of code has no sense at all, I completely agree with you ....

5
2006.11.10 17:55
freaky wrote:
BTW

This piece of code:

    dv1 = (maF1 - maS1);
// same code...
    dv2 = ((maF1 - maS1) - (maF2 - maS2));
    return(dv1 - dv2);
is completely with no sense.

1. dv1 - dv2 = dv2!!!
2. And dv2 is simply MACD(fast,slow,mypos+1)

So all divergence function could be replaced by one iMACD(...) value.





... just a notice...

1. dv1 -dv2 != dv2 !!! but dv1 - dv2 = maF2 - maS2 !!!!!
2. dv2 is NOT MACD, but MACD(fast,slow, mypos) - MACD(fast,slow, mypos+1) !!!!!

But you're right ... all divergence function could be surely replaced by iMACD(fast, slow, pos+1)... :-))))))
and this piece of code has no sense at all, I completely agree with you ....
140
2006.11.10 02:58
BTW

This piece of code:

    dv1 = (maF1 - maS1);
// same code...
    dv2 = ((maF1 - maS1) - (maF2 - maS2));
    return(dv1 - dv2);
is completely with no sense.

1. dv1 - dv2 = dv2!!!
2. And dv2 is simply MACD(fast,slow,mypos+1)

So all divergence function could be replaced by one iMACD(...) value.





2006.11.10 02:24
Hi Hendrick,
I use your EA since 2 weeks. It gives me 8 TP in a row! GREAT.
I've made an indicator showing the signals made by Phoenix.
Here it goes:


And here's the code:

//+------------------------------------------------------------------------+
//|                                        Phoenix_4_CONTEST_indicator.ex4 |
//|                                         Copyright © 2006, fryk@tlen.pl |
//| This indicator is based on Phoenix_v4_2_CONTEST.mq4 EA © 2006 Hendrick |
//+------------------------------------------------------------------------+
#property copyright "Copyright © 2006, fryk@tlen.pl"
 
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Red
 
 
 
double ExtMapBuffer1[];
double ExtMapBuffer2[];
 
 
 
extern int        SMAPeriod        = 7;
extern int        SMA2Bars         = 14;
extern double     Percent          = 0.0032;
extern int        EnvelopePeriod   = 2;
extern int        OSMAFast         = 5;
extern int        OSMASlow         = 30;
extern double     OSMASignal       = 2;
 
extern int        Fast_Period      = 25;
extern int        Fast_Price       = PRICE_OPEN;
extern int        Slow_Period      = 15;
extern int        Slow_Price       = PRICE_OPEN;
extern double     DVBuySell        = 0.003;
extern double     DVStayOut        = 0.024;
 
 
 
double divergence(int F_Period, int S_Period, int F_Price, int S_Price, int mypos)
  {
    int i;
//----
    double maF1, maF2, maS1, maS2;
    double dv1, dv2;
//----
    maF1 = iMA(Symbol(), 0, F_Period, 0, MODE_SMA, F_Price, mypos);
    maS1 = iMA(Symbol(), 0, S_Period, 0, MODE_SMA, S_Price, mypos);
    dv1 = (maF1 - maS1);
 
    maF2 = iMA(Symbol(), 0, F_Period, 0, MODE_SMA, F_Price, mypos + 1);
    maS2 = iMA(Symbol(), 0, S_Period, 0, MODE_SMA, S_Price, mypos + 1);
    dv2 = ((maF1 - maS1) - (maF2 - maS2));
//----
    return(dv1 - dv2);
  }
 
int nShift=0;
 
int init()
  {
    SetIndexStyle(0, DRAW_ARROW, 0, 1);
    SetIndexArrow(0, 233);
    SetIndexBuffer(0, ExtMapBuffer1);
    SetIndexStyle(1, DRAW_ARROW, 0, 1);
    SetIndexArrow(1, 234);
    SetIndexBuffer(1, ExtMapBuffer2);
    switch(Period())
      {
        case     1: nShift = 1;   break;    
        case     5: nShift = 3;   break; 
        case    15: nShift = 5;   break; 
        case    30: nShift = 10;  break; 
        case    60: nShift = 15;  break; 
        case   240: nShift = 20;  break; 
        case  1440: nShift = 80;  break; 
        case 10080: nShift = 100; break; 
        case 43200: nShift = 200; break;               
      }
    return(0);
  }
int start()
  {
    int limit;
    int counted_bars = IndicatorCounted();
    if(counted_bars < 0) return(-1);
    if(counted_bars > 0) counted_bars--;
    limit = Bars - counted_bars;
    for(int i = 0; i < limit; i++)
      {
         bool BuySignal1=false, SellSignal1=false;
 
         double HighEnvelope1 = iEnvelopes(NULL,0,EnvelopePeriod,MODE_SMA,0,PRICE_CLOSE,Percent,MODE_UPPER,i+1);
         double LowEnvelope1  = iEnvelopes(NULL,0,EnvelopePeriod,MODE_SMA,0,PRICE_CLOSE,Percent,MODE_LOWER,i+1);
         double CloseBar1     = Close[i+1];
         
         if(CloseBar1 > HighEnvelope1) {SellSignal1 = true;} 
         if(CloseBar1 < LowEnvelope1)   {BuySignal1  = true;}
 
         bool BuySignal2=false, SellSignal2=false;
 
         double SMA1=iMA(NULL,0,SMAPeriod,0,MODE_SMA,5,i+1);
         double SMA2=iMA(NULL,0,SMAPeriod,0,MODE_SMA,5,i+SMA2Bars);
 
         if(SMA2-SMA1>0) {BuySignal2  = true;}
         if(SMA2-SMA1<0) {SellSignal2 = true;}
 
         bool BuySignal3=false, SellSignal3=false;
 
         double OsMABar2=iOsMA(NULL,0,OSMASlow,OSMAFast,OSMASignal,PRICE_CLOSE,i+2);
         double OsMABar1=iOsMA(NULL,0,OSMASlow,OSMAFast,OSMASignal,PRICE_CLOSE,i+1);
 
         if(OsMABar2 > OsMABar1)  {SellSignal3 = true;}
         if(OsMABar2 < OsMABar1)  {BuySignal3  = true;}
 
         double diverge;
         bool BuySignal4=false,SellSignal4=false;
 
         diverge = divergence(Fast_Period, Slow_Period, Fast_Price, Slow_Price,i);
 
         if(diverge >= DVBuySell && diverge <= DVStayOut)
             {BuySignal4 = true;}
         if(diverge <= (DVBuySell*(-1)) && diverge >= (DVStayOut*(-1))) 
             {SellSignal4 = true;} 
 
 
         if((SellSignal1==true) && (SellSignal2==true) && (SellSignal3==true) && (SellSignal4==true) )   
              {
                     ExtMapBuffer2[i] = High[i] + nShift*Point;
              }
 
         if((BuySignal1==true) && (BuySignal2==true) && (BuySignal3==true) && (BuySignal4==true) ) 
              {
                     ExtMapBuffer1[i] = Low[i] - nShift*Point;
              }
        
      }
//----
    return(0);
  }
//+------------------------------------------------------------------+

HAVE FUN!

2006.11.10 02:13

Hi Hendrick!!!

Thanx for the quick reply...

I did some searching and found the bb at forex factory. I am very impressed with what you have put together over there and really value the reason behind all of the work you have done... More on that later. I will email you why your goals are so heartworming and impressive to me...

Good luck with the competition! But more importantly, good luck to all of those who "follow in your footsteps" and continue to work on phoenix.

Ian...

PS... Watergy - a combination of Water and Energy, as we are all conected and made of up both.

2006.11.10 00:55
Hi Ian,

You can contact me at my e-mail hendrickstam@yahoo.com
watergy
wrote:

Hi Hendrick...

I have been monitering your trades, and I am very impressed. It appears that you have put something together that is somewhat consistant, rather than hitting the "lucky trade". There is little about you that I could find, although perhaps I am looking in the wrong place, but I would like to know more about your trading and your experiances.

Good luck in the championship!

Ian


5
2006.11.09 10:17
comments: