stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

TMA_CG: EA to buy at support & sell at resistance
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3372
Page 15 of 30
Author:  dudest [ Mon Jan 20, 2014 2:57 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

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)?
Author:  pete14 [ Mon Jan 20, 2014 3:03 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

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?
Author:  pete14 [ Mon Jan 20, 2014 3:44 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

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
Author:  zentauro67 [ Mon Jan 20, 2014 7:56 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

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).
Author:  SpiderX [ Tue Jan 21, 2014 4:24 am ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

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
Author:  dudest [ Tue Jan 21, 2014 12:04 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

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
.
Author:  pete14 [ Tue Jan 21, 2014 12:09 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

fantastic
thanks a lot
Peter
Author:  dudest [ Tue Jan 21, 2014 12:10 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

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
Author:  dudest [ Tue Jan 21, 2014 12:12 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

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.
Author:  dudest [ Tue Jan 21, 2014 12:21 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

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 :)
All times are UTC Page 15 of 30