TMA_CG: EA to buy at support & sell at resistance

Post Reply
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: TMA_CG: EA to buy at support & sell at resistance

Post by dudest »

pete14 » Mon Jan 20, 2014 5:51 pm wrote:here it is
20130819.log
This one tells me that "10:52:43 Experts are disabled because the account has been changed", so it can't be right.

Is this the latest logfile from experts\logs folder? <Empty4_Installation_Directory>\experts\logs\20140120.log

Also, by attaching the log, can I assume your answer to my question is no? ( i.e, you didn't put the EA on the chart more than once in the space of a few mins)?
pete14
Trader
Posts: 73
Joined: Thu Feb 02, 2012 1:29 pm
Location: Germany

Re: TMA_CG: EA to buy at support & sell at resistance

Post by pete14 »

the answer is no. I didn't put the EA on the chart more than once in the space of a few mins.
This is the only log file I can find.
Another question: Is it possible to close the trade when the middle line is reached?
pete14
Trader
Posts: 73
Joined: Thu Feb 02, 2012 1:29 pm
Location: Germany

Re: TMA_CG: EA to buy at support & sell at resistance

Post by pete14 »

dudest » Mon Jan 20, 2014 3:57 pm wrote:
pete14 » Mon Jan 20, 2014 5:51 pm wrote:here it is
20130819.log
This one tells me that "10:52:43 Experts are disabled because the account has been changed", so it can't be right.

Is this the latest logfile from experts\logs folder? <Empty4_Installation_Directory>\experts\logs\20140120.log

Also, by attaching the log, can I assume your answer to my question is no? ( i.e, you didn't put the EA on the chart more than once in the space of a few mins)?
Ok, I think I found the problem.
Every time I change something within the EA, i.e. from 20 pips stop loss to 0.02, which means 20 pips in a currency, a new trade is opened.
Anyhow, how can manage it that the EA takes profit at the middle line or the second line (red when long green when short)?
Thanks
Peter
User avatar
zentauro67
Trader
Posts: 441
Joined: Fri Mar 01, 2013 4:41 pm
Location: Spain

Re: TMA_CG: EA to buy at support & sell at resistance

Post by zentauro67 »

dudest » Mon Jan 20, 2014 1:00 pm wrote:PS: it's not hard to create a generic 4-digit version, not too much customization needed from current version


That said, I have tested a couple of pairs, and was not too satisfied with results. Of course I'd love to have a pair that can complement Gold! (after all, I'm here to make money, the more that work the merrier). I just haven't had the time to test 30+ pairs offered by my broker *in-depth* as I have with Gold.
Try AUDUSD. It´s highly correlated to gold (the same way USDCAD is correlated to oil).
User avatar
SpiderX
Trader
Posts: 554
Joined: Thu Aug 22, 2013 4:50 pm

Re: TMA_CG: EA to buy at support & sell at resistance

Post by SpiderX »

Hi dudest,

Want to point out something which i am checking out recently...
Currently wondering if the MAE, MFE analysis in myfxbook is accurate or dependent on how often you send them data.
You would have to have a look at your past trades and study the charts to confirm how accurate it is.
Otherwise if MAE, MFE is inaccurate, whatever analysis that comes out of it is also garbage.
As they say: Garbage in , Garbage out.

Cheers
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: TMA_CG: EA to buy at support & sell at resistance

Post by dudest »

pete14 » Mon Jan 20, 2014 6:03 pm wrote:the answer is no. I didn't put the EA on the chart more than once in the space of a few mins.
This is the only log file I can find.
Another question: Is it possible to close the trade when the middle line is reached?
For ver C no-stacking version
TMACG_Gold_M15_no_stacking_TPmiddle_C.mq4
.
You do not have the required permissions to view the files attached to this post.
pete14
Trader
Posts: 73
Joined: Thu Feb 02, 2012 1:29 pm
Location: Germany

Re: TMA_CG: EA to buy at support & sell at resistance

Post by pete14 »

fantastic
thanks a lot
Peter
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: TMA_CG: EA to buy at support & sell at resistance

Post by dudest »

pete14 » Mon Jan 20, 2014 6:44 pm wrote: Ok, I think I found the problem.
Every time I change something within the EA, i.e. from 20 pips stop loss to 0.02, which means 20 pips in a currency, a new trade is opened.
Anyhow, how can manage it that the EA takes profit at the middle line or the second line (red when long green when short)?
Thanks
Peter
Every time you change any setting the EA is automatically reloaded (when you double-click it from Navigator window).

And as I said, "hard-coded to Gold"

Code: Select all

int CheckRunningTradesOnStart( int op_type )
{
     for (int cc = OrdersTotal() - 1; cc >= 0; cc--)
     {
         if (!OrderSelect(cc, SELECT_BY_POS, MODE_TRADES) ) continue;
         
         if (OrderCloseTime() > 0) continue;
     
         if ( StringFind (Symbol(), "XAU", 0) == -1 ) continue;
         
         if ( (OrderMagicNumber() != MagicNumber_Normal) ) continue;

         if ( OrderType() == op_type )
         {
             return ( OrderTicket() );
         }
     }
     
     return ( -1 );

}   //CheckRunningTradesOnStart
So the above function returns that there are no running Gold trades belonging to us, and opens a new trade coz price is at a boundary. Solved.

Cheers
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: TMA_CG: EA to buy at support & sell at resistance

Post by dudest »

zentauro67 » Mon Jan 20, 2014 10:56 pm wrote:
Try AUDUSD. It´s highly correlated to gold (the same way USDCAD is correlated to oil).
Thanks Zentauro.
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: TMA_CG: EA to buy at support & sell at resistance

Post by dudest »

SpiderX » Tue Jan 21, 2014 7:24 am wrote:Hi dudest,

Want to point out something which i am checking out recently...
Currently wondering if the MAE, MFE analysis in myfxbook is accurate or dependent on how often you send them data.
You would have to have a look at your past trades and study the charts to confirm how accurate it is.
Otherwise if MAE, MFE is inaccurate, whatever analysis that comes out of it is also garbage.
As they say: Garbage in , Garbage out.

Cheers
True dat!

I had the same thought yesterday. The MyFXB publisher EA is sending every 5mins, was thinking of reducing this to, say, 2 mins. And I also will double-check each and every trade at the end of this week to verify; if the MAE value shows any problem, will revert back to original value

Cheers!, and thanks for the continually good feedback :)
Post Reply

Return to “Automated trading systems”