That is good news. Thanks for you effort. Hope you had a smashing weekend.fxdaytrader wrote:Hm, as I mentioned before, it seems that on my Empty4 everything works as desired.
The trade some hours ago was placed, with the minimum expiration time (11 minutes), because the other calculation went wrong because of the timeframe=0 problem (see my previous post).
But no errors at all.
HELP WITH ERROR 4107
-
fx800
- Trader
- Posts: 1334
- Joined: Sun Dec 04, 2011 4:11 am
Re: HELP WITH ERROR 4107
- fxdaytrader
- Trader
- Posts: 190
- Joined: Sun Jun 10, 2012 7:03 am
- Location: Poon-Town (germany, se-asia, se-europe) ...
Re: HELP WITH ERROR 4107
See the latest version attached. Use on H4 timeframe.
Please have a look to the code (short instructions in the header) / find my changes/mods when searching 'fxdaytrader' in the code.
Most important: When setting AllowMultipleReEntries=true the robot will take multiple re-entry trades, regardless if opentrades==0 !
Set LoadCustomMASettings=false if you want the original settings (see what the functions loads: scroll to the end of file and have a look)
Further you can choose the timeframe for ma-stacking (I set it to 60, you may change that).
If you want to use the debug-feature for pending trade, set usedebug=true (I set it to false because on my terminal everything seems to work now).
TO DO: close pendings/stop trading on friday / sleep when market is closed / utc time
Please have a look to the code (short instructions in the header) / find my changes/mods when searching 'fxdaytrader' in the code.
Most important: When setting AllowMultipleReEntries=true the robot will take multiple re-entry trades, regardless if opentrades==0 !
Set LoadCustomMASettings=false if you want the original settings (see what the functions loads: scroll to the end of file and have a look)
Further you can choose the timeframe for ma-stacking (I set it to 60, you may change that).
If you want to use the debug-feature for pending trade, set usedebug=true (I set it to false because on my terminal everything seems to work now).
TO DO: close pendings/stop trading on friday / sleep when market is closed / utc time
You do not have the required permissions to view the files attached to this post.
-
fx800
- Trader
- Posts: 1334
- Joined: Sun Dec 04, 2011 4:11 am
Re: HELP WITH ERROR 4107
Thanks, fxdaytrader.fxdaytrader wrote:See the latest version attached. Use on H4 timeframe.![]()
Please have a look to the code (short instructions in the header) / find my changes/mods when searching 'fxdaytrader' in the code.
Most important: When setting AllowMultipleReEntries=true the robot will take multiple re-entry trades, regardless if opentrades==0 !
Set LoadCustomMASettings=false if you want the original settings (see what the functions loads: scroll to the end of file and have a look)
Further you can choose the timeframe for ma-stacking (I set it to 60, you may change that).
If you want to use the debug-feature for pending trade, set usedebug=true (I set it to false because on my terminal everything seems to work now).
TO DO: close pendings/stop trading on friday / sleep when market is closed / utc time
Will set up demo with the latest update.
-
fx800
- Trader
- Posts: 1334
- Joined: Sun Dec 04, 2011 4:11 am
Re: HELP WITH ERROR 4107
I am still getting error 130. Have set debug to true. Will post the log file when it happens again.fx8000 wrote:Thanks, fxdaytrader.fxdaytrader wrote:See the latest version attached. Use on H4 timeframe.![]()
Please have a look to the code (short instructions in the header) / find my changes/mods when searching 'fxdaytrader' in the code.
Most important: When setting AllowMultipleReEntries=true the robot will take multiple re-entry trades, regardless if opentrades==0 !
Set LoadCustomMASettings=false if you want the original settings (see what the functions loads: scroll to the end of file and have a look)
Further you can choose the timeframe for ma-stacking (I set it to 60, you may change that).
If you want to use the debug-feature for pending trade, set usedebug=true (I set it to false because on my terminal everything seems to work now).
TO DO: close pendings/stop trading on friday / sleep when market is closed / utc time
Will set up demo with the latest update.
However, despite the error130, the ea did send the pending order which was later triggered.
Demo is with E-Global.
- fxdaytrader
- Trader
- Posts: 190
- Joined: Sun Jun 10, 2012 7:03 am
- Location: Poon-Town (germany, se-asia, se-europe) ...
Re: HELP WITH ERROR 4107
-
fx800
- Trader
- Posts: 1334
- Joined: Sun Dec 04, 2011 4:11 am
Re: HELP WITH ERROR 4107
Excellent news. Which broker are you using ? I could set up a demo and use a trade copier.fxdaytrader wrote:wow, yes, please post the details (experts tab/journal) - because I do not understand it, I got no errors and everything works.
Is there a free trade copier around that is not blocked by Metaquotes ? I understand Metaquotes have blocked MT4i trade copier.
I am using H1 TF to get more trade entries. All TF settings set to = 0.
Last edited by Anonymous on Tue Aug 20, 2013 9:32 am, edited 2 times in total.
-
fx800
- Trader
- Posts: 1334
- Joined: Sun Dec 04, 2011 4:11 am
Re: HELP WITH ERROR 4107
Error 130
2013.08.20 10:00:56 Bob and Shelley Again.v1o.PendingOrders.fxdaytrader 19-8-2013 2 EURCAD,H1: EURCAD Bob and Shelley Again.v1o.PendingOrders.fxdaytrader 19-8-2013 2 OP_BUYSTOP order send failed with error(130): invalid stops
2013.08.20 10:00:56 Bob and Shelley Again.v1o.PendingOrders.fxdaytrader 19-8-2013 2 GBPCAD,H1: GBPCAD Bob and Shelley Again.v1o.PendingOrders.fxdaytrader 19-8-2013 2 OP_BUYSTOP order send failed with error(130): invalid stops
Pending orders not sent.
2013.08.20 10:00:56 Bob and Shelley Again.v1o.PendingOrders.fxdaytrader 19-8-2013 2 EURCAD,H1: EURCAD Bob and Shelley Again.v1o.PendingOrders.fxdaytrader 19-8-2013 2 OP_BUYSTOP order send failed with error(130): invalid stops
2013.08.20 10:00:56 Bob and Shelley Again.v1o.PendingOrders.fxdaytrader 19-8-2013 2 GBPCAD,H1: GBPCAD Bob and Shelley Again.v1o.PendingOrders.fxdaytrader 19-8-2013 2 OP_BUYSTOP order send failed with error(130): invalid stops
Pending orders not sent.
You do not have the required permissions to view the files attached to this post.
- fxdaytrader
- Trader
- Posts: 190
- Joined: Sun Jun 10, 2012 7:03 am
- Location: Poon-Town (germany, se-asia, se-europe) ...
Re: HELP WITH ERROR 4107
Great, thank you very much for the logfile - It seems that there is a problem with the takeprofit-line drawn for stackingtrades (the error occurs in the countopentrades-function).
I will check and fix that (did not had a look to it yet, overlooked it, ...).
btw - see attached the screenshot of the pending order sent today, expiration time etc. works as desired
I will check and fix that (did not had a look to it yet, overlooked it, ...).
btw - see attached the screenshot of the pending order sent today, expiration time etc. works as desired
You do not have the required permissions to view the files attached to this post.
-
fx800
- Trader
- Posts: 1334
- Joined: Sun Dec 04, 2011 4:11 am
Re: HELP WITH ERROR 4107
Danke, Fxdaytrader !fxdaytrader wrote:Great, thank you very much for the logfile - It seems that there is a problem with the takeprofit-line drawn for stackingtrades (the error occurs in the countopentrades-function).
I will check and fix that (did not had a look to it yet, overlooked it, ...).
btw - see attached the screenshot of the pending order sent today, expiration time etc. works as desired
You are doing a great job and are making good progress. I am sure your effort will be rewarded ten fold.
I am doing very well manually with the strategy and pending orders. Very few failed entry.
I trade price action with Nial Fuller's course, always enter with pending orders. If price has no momentum, it will not clear the next bar high/low. This principle is true more often than not.
So far the ea has taken two trades, both in profit.
- fxdaytrader
- Trader
- Posts: 190
- Joined: Sun Jun 10, 2012 7:03 am
- Location: Poon-Town (germany, se-asia, se-europe) ...
Re: HELP WITH ERROR 4107
Regarding your 130-error try the following please:
In the CountOpenTrades()-function look for that line (must be line number ~2507):
That code replace with this:
I am not 100% sure if it helps, but I think it is worth a try. 
In your logfile I found another error:
cannot open file 'C:\FOREX Empty4\E-GLOBAL\experts\Bob and Shelley Again.v1o.PendingOrders.fxdaytrader 19-8-2013 2.ex4', expert was not reloaded
The way I try to solve that kind of problems when I download a new mq4-file: Copy the mq4-file in the desired directory (e.g. experts/). Then load another file from your Empty4 (rightclick - edit) in the editor, press F5 key to compile (it seems that all files will be re-compiled, or at least the files where no .ex4 exists) ...
In the CountOpenTrades()-function look for that line (must be line number ~2507):
Code: Select all
if (MaxTradesAllowed > 1)Code: Select all
if (OrderComment()==StackTradeComment && MaxTradesAllowed > 1 && (OrderType()==OP_BUY || OrderType()==OP_SELL)) //fxdaytraderIn your logfile I found another error:
cannot open file 'C:\FOREX Empty4\E-GLOBAL\experts\Bob and Shelley Again.v1o.PendingOrders.fxdaytrader 19-8-2013 2.ex4', expert was not reloaded
The way I try to solve that kind of problems when I download a new mq4-file: Copy the mq4-file in the desired directory (e.g. experts/). Then load another file from your Empty4 (rightclick - edit) in the editor, press F5 key to compile (it seems that all files will be re-compiled, or at least the files where no .ex4 exists) ...
Last edited by fxdaytrader on Tue Aug 20, 2013 10:38 am, edited 1 time in total.