Multi 10:4 Trader EA

Post Reply
MrLong

Re: Multi 10:4 Trader EA

Post by MrLong »

forextra wrote:I seem to remember others having this or similar issue a while back. Multitudes of pendings opening and closing for the same pair. Have a look at the image - first 21 USDJPY and then 14 EURJPY all within a few minutes of each other. The pending is set just above WMR1 which is what you would expect - but why set and then cancel almost straight away.
Any thoughts
Closed trades.jpg
Check this out, on line 877 ish, do the following:

if (deleteStops)
{
mangeStopOrders(CurrentPair);
// mangeColorChange(CurrentPair); <===
}
MrLong

Re: Multi 10:4 Trader EA

Post by MrLong »

Nicastro wrote:Mr Long,

I have downloaded a new Global prime live account but v.2.4 of the ea will not attach to any chart.

Compiling the ea shows up the following error:-


'mt4gui.mqh' - cannot open the program file C:\Program Files (x86)\Global Prime Empty4 - LIVE B\experts\Multi_10_4_EAv2.04.mq4 (84, 1)

Can you please look into this.

Best regards
Hi,

You need to make sure you downloaded this file from page 1 and correctly installed it:
'mt4gui.mqh
User avatar
forextra
Trader
Posts: 42
Joined: Tue Mar 12, 2013 12:34 pm
Location: Perth, Australia

Re: Multi 10:4 Trader EA

Post by forextra »

MrLong wrote:
Check this out, on line 877 ish, do the following:

if (deleteStops)
{
mangeStopOrders(CurrentPair);
// mangeColorChange(CurrentPair); <===
}
Thanks Andy - done.
Incidentally, it was on line 797 so you obviously have a bit more code in yours. Does this mean we are soon to be greeted with a later and greater version. Sure hope so. Keep up the great work.
Allan
Nicastro
Trader
Posts: 41
Joined: Wed Nov 16, 2011 7:42 am

Re: Multi 10:4 Trader EA

Post by Nicastro »

MrLong wrote:
Nicastro wrote:Mr Long,

I have downloaded a new Global prime live account but v.2.4 of the ea will not attach to any chart.

Compiling the ea shows up the following error:-


'mt4gui.mqh' - cannot open the program file C:\Program Files (x86)\Global Prime Empty4 - LIVE B\experts\Multi_10_4_EAv2.04.mq4 (84, 1)

Can you please look into this.

Best regards
Hi,

You need to make sure you downloaded this file from page 1 and correctly installed it:
'mt4gui.mqh
Mr long,
Thank you for your prompt reply
I already had it in experts\include. Have downloaded it again and replaced it with the new download.
Sadly, still will not attach
Regards
MrLong

Re: Multi 10:4 Trader EA

Post by MrLong »

Nicastro wrote:
MrLong wrote:
Nicastro wrote:Mr Long,

I have downloaded a new Global prime live account but v.2.4 of the ea will not attach to any chart.

Compiling the ea shows up the following error:-


'mt4gui.mqh' - cannot open the program file C:\Program Files (x86)\Global Prime Empty4 - LIVE B\experts\Multi_10_4_EAv2.04.mq4 (84, 1)

Can you please look into this.

Best regards
Hi,

You need to make sure you downloaded this file from page 1 and correctly installed it:
'mt4gui.mqh
Mr long,
Thank you for your prompt reply
I already had it in experts\include. Have downloaded it again and replaced it with the new download.
Sadly, still will not attach
Regards
try to compile the file
Nicastro
Trader
Posts: 41
Joined: Wed Nov 16, 2011 7:42 am

Re: Multi 10:4 Trader EA

Post by Nicastro »

MrLong wrote:
Nicastro wrote:
MrLong wrote:
Nicastro wrote:Mr Long,

I have downloaded a new Global prime live account but v.2.4 of the ea will not attach to any chart.

Compiling the ea shows up the following error:-


'mt4gui.mqh' - cannot open the program file C:\Program Files (x86)\Global Prime Empty4 - LIVE B\experts\Multi_10_4_EAv2.04.mq4 (84, 1)

Can you please look into this.

Best regards
Hi,

You need to make sure you downloaded this file from page 1 and correctly installed it:
'mt4gui.mqh
Mr long,
Thank you for your prompt reply
I already had it in experts\include. Have downloaded it again and replaced it with the new download.
Sadly, still will not attach
Regards
try to compile the file
Mr Long,
I have just tried to recompile the EA and it comes up with the following warnings:-

Function "guiPrintXY" is not referenced and will be removed from exp-file
Function "guiPriFunction "ExtractOrderID" is not referenced and will be removed from exp-file
Function "ExtractOrderID" is not referenced and will be removed from exp-file
Function "_CloseByTicket" is not referenced and will be removed from exp-file
Function "log" is not referenced and will be removed from exp-file

As for the MT4Gui file, i do not know how to open and recomplie it

regards
MrLong

Re: Multi 10:4 Trader EA

Post by MrLong »

Nicastro wrote:
MrLong wrote:
Nicastro wrote:
MrLong wrote:
Nicastro wrote:Mr Long,

I have downloaded a new Global prime live account but v.2.4 of the ea will not attach to any chart.

Compiling the ea shows up the following error:-


'mt4gui.mqh' - cannot open the program file C:\Program Files (x86)\Global Prime Empty4 - LIVE B\experts\Multi_10_4_EAv2.04.mq4 (84, 1)

Can you please look into this.

Best regards
Hi,

You need to make sure you downloaded this file from page 1 and correctly installed it:
'mt4gui.mqh
Mr long,
Thank you for your prompt reply
I already had it in experts\include. Have downloaded it again and replaced it with the new download.
Sadly, still will not attach
Regards
try to compile the file
Mr Long,
I have just tried to recompile the EA and it comes up with the following warnings:-

Function "guiPrintXY" is not referenced and will be removed from exp-file
Function "guiPriFunction "ExtractOrderID" is not referenced and will be removed from exp-file
Function "ExtractOrderID" is not referenced and will be removed from exp-file
Function "_CloseByTicket" is not referenced and will be removed from exp-file
Function "log" is not referenced and will be removed from exp-file

As for the MT4Gui file, i do not know how to open and recomplie it

regards
They are ok, just saying they are not used.

Open Metaeditor and on the right hand side you should be able to see what looks like files. the file labelled include, has the file inside, double click and when it opens, hit the compile button at the top of the window.
Nicastro
Trader
Posts: 41
Joined: Wed Nov 16, 2011 7:42 am

Re: Multi 10:4 Trader EA

Post by Nicastro »

MrLong wrote:
Nicastro wrote:
MrLong wrote:
Nicastro wrote:
MrLong wrote:
Nicastro wrote:Mr Long,

I have downloaded a new Global prime live account but v.2.4 of the ea will not attach to any chart.

Compiling the ea shows up the following error:-


'mt4gui.mqh' - cannot open the program file C:\Program Files (x86)\Global Prime Empty4 - LIVE B\experts\Multi_10_4_EAv2.04.mq4 (84, 1)

Can you please look into this.

Best regards
Hi,

You need to make sure you downloaded this file from page 1 and correctly installed it:
'mt4gui.mqh
Mr long,
Thank you for your prompt reply
I already had it in experts\include. Have downloaded it again and replaced it with the new download.
Sadly, still will not attach
Regards
try to compile the file
Mr Long,
I have just tried to recompile the EA and it comes up with the following warnings:-

Function "guiPrintXY" is not referenced and will be removed from exp-file
Function "guiPriFunction "ExtractOrderID" is not referenced and will be removed from exp-file
Function "ExtractOrderID" is not referenced and will be removed from exp-file
Function "_CloseByTicket" is not referenced and will be removed from exp-file
Function "log" is not referenced and will be removed from exp-file

As for the MT4Gui file, i do not know how to open and recomplie it

regards
They are ok, just saying they are not used.

Open Metaeditor and on the right hand side you should be able to see what looks like files. the file labelled include, has the file inside, double click and when it opens, hit the compile button at the top of the window.
Thank you Mr Long, the EA now attaches perfectly.

Many thanks for your all your efforts.
nonlinear
Trader
Posts: 293
Joined: Fri Jun 01, 2012 2:56 pm
Location: Washington DC

Re: Multi 10:4 Trader EA

Post by nonlinear »

Just loaded on ATC demo.
You do not have the required permissions to view the files attached to this post.
bubo
Trader
Posts: 29
Joined: Thu Jan 10, 2013 7:02 am

Re: Multi 10:4 Trader EA

Post by bubo »

Andy - I noticed that the external input of 'TradeComment' does not seem to be hooked up, it still adds 'Magic: xx' into the trade comment (at least in v2.02, have not checked v2.04).

How about an external input below the TradeComment:

Code: Select all

extern bool TimeStamp=true;
And then stamp the variable TradeComment with the current time before the OrderSend:

Code: Select all

if(TimeStamp)  {TradeComment = TimeToStr(TimeCurrent(),TIME_DATE|TIME_MINUTES);}
And then put the variable 'TradeComment' inrto the OrderSend command. If you would like to have the option of seeing the Magic Number in the order comment, then perhaps have this put in if the TradeComment is empty.

Just details, but I find it useful to have a time stamp. After a pending order has been filled with an open order, Empty4 won't give you the original date anymore, and a time stamp will still allow me to trace when the EA placed the pending order in first place (and assess whether I feel there was a strong rationale to do so or not).
Post Reply

Return to “Nanningbob 10.x”