NetTrap Metatrader Expert Advisor

This is a discussion on NetTrap Metatrader Expert Advisor within the Forex Net Trap forums, part of the T2W Archive category; Hi everyone Attached is the latest version of the EA. The following new functionality has been included: Allow multiple instances ...

Reply
 
LinkBack Thread Tools Search this Thread
Old Oct 11, 2010, 8:26am   #16
Joined Dec 2006
Re: NetTrap Metatrader Expert Advisor

SpindriftUK started this thread Hi everyone

Attached is the latest version of the EA. The following new functionality has been included:

Allow multiple instances to run simultaneously
To run more than one instance of the EA, drag it onto different GBP/USD 15 minute charts, making sure that the the parameter EA_ident is different on each chart. There is some validation in the EA that will attempt to enforce this.

Money management to cater for £/pip (e.g. like SmartLiveMarkets)
The only thing that changed here was the introduction of a volume precision parameter, as SML only allows volumes to the nearest 10p. Also, there's no need to convert to GBP as it's the only currency SML allow and they've already catered for the conversion.

Option to move S/L to n pips at hh:mm
New parameters have been added that give the option for SL to be changed to the specified number of pips at the specified time, as long as the trade is a specified number of pips in profit. The stop will only be moved with the trade; it cannot be extended, only shortened.

Option for fixed TP
Take profit pips can be specified, rather than having to use TPMult.

Option to compensate for shorter TP
A new parameter in the Money Management section will allow the order volume to be increased to compensate for a larger stop loss. Basically, if set to TRUE, the program will work out the profit that would have been achieved with VNT settings and then increase the trade size to ensure the same profit, regardless of stop loss distance.

Instant trade mode
If set to TRUE, a position will be opened at the start of the trade period, rather than a pending trade.

On/Off switch
This is now the first parameter - named trading - which, if set to FALSE, will prevent the EA from doing anything.
---------------

I've changed the order of the parameters and put them into broad sections; e.g. EA Control, Trade Entry, etc. Those parameters that I feel are likely to become redundant have been moved to the end of their sections.

I have only loosely tested the changes and I would be grateful for any work you can put in checking that it all works as it should. I think SmartLiveMarkets is the way forward for EA trading of NT so would suggest any testing be done on a demo account from them.

As ever, I am happy to receive reports of errors and any suggestions for improvement.

Possible further enhancements
  • The option to set TP and SL (and possibly Entry Point) from manually drawn lines.
  • Have program to look back though the chart to work out the most profitable variation over the past n days

Cheers,
Spin
Attached Files
File Type: ex4 FNTTrader.ex4 (55.3 KB, 284 views)
SpindriftUK is offline   Reply With Quote
Old Oct 11, 2010, 12:19pm   #17
Joined Dec 2009
Re: NetTrap Metatrader Expert Advisor

Quote:
Originally Posted by SpindriftUK View Post
Hi everyone

Attached is the latest version of the EA. The following new functionality has been included:

Allow multiple instances to run simultaneously
To run more than one instance of the EA, drag it onto different GBP/USD 15 minute charts, making sure that the the parameter EA_ident is different on each chart. There is some validation in the EA that will attempt to enforce this.

Money management to cater for £/pip (e.g. like SmartLiveMarkets)
The only thing that changed here was the introduction of a volume precision parameter, as SML only allows volumes to the nearest 10p. Also, there's no need to convert to GBP as it's the only currency SML allow and they've already catered for the conversion.

Option to move S/L to n pips at hh:mm
New parameters have been added that give the option for SL to be changed to the specified number of pips at the specified time, as long as the trade is a specified number of pips in profit. The stop will only be moved with the trade; it cannot be extended, only shortened.

Option for fixed TP
Take profit pips can be specified, rather than having to use TPMult.

Option to compensate for shorter TP
A new parameter in the Money Management section will allow the order volume to be increased to compensate for a larger stop loss. Basically, if set to TRUE, the program will work out the profit that would have been achieved with VNT settings and then increase the trade size to ensure the same profit, regardless of stop loss distance.

Instant trade mode
If set to TRUE, a position will be opened at the start of the trade period, rather than a pending trade.

On/Off switch
This is now the first parameter - named trading - which, if set to FALSE, will prevent the EA from doing anything.
---------------

I've changed the order of the parameters and put them into broad sections; e.g. EA Control, Trade Entry, etc. Those parameters that I feel are likely to become redundant have been moved to the end of their sections.

I have only loosely tested the changes and I would be grateful for any work you can put in checking that it all works as it should. I think SmartLiveMarkets is the way forward for EA trading of NT so would suggest any testing be done on a demo account from them.

As ever, I am happy to receive reports of errors and any suggestions for improvement.

Possible further enhancements
  • The option to set TP and SL (and possibly Entry Point) from manually drawn lines.
  • Have program to look back though the chart to work out the most profitable variation over the past n days

Cheers,
Spin
whoa ! .... fab job

So, who's brave enough to try it out then ?
stricky1967 is offline   Reply With Quote
Old Oct 11, 2010, 8:52pm   #18
Joined Dec 2006
Re: NetTrap Metatrader Expert Advisor

SpindriftUK started this thread I found a bug in the instant trade volume calculation (for a buy), which I've fixed in the attached version. Also included is the ability to specify different stop loss pips for buy and sell (to cater for the "S" variants).

Still needs lots of testing

Cheers,
Spin
Attached Files
File Type: ex4 FNTTrader.ex4 (55.9 KB, 266 views)
SpindriftUK is offline   Reply With Quote
Old Oct 11, 2010, 9:03pm   #19
 
mark120169's Avatar
Joined Apr 2010
Re: NetTrap Metatrader Expert Advisor

Quote:
Originally Posted by SpindriftUK View Post
I found a bug in the instant trade volume calculation (for a buy), which I've fixed in the attached version. Also included is the ability to specify different stop loss pips for buy and sell (to cater for the "S" variants).

Still needs lots of testing

Cheers,
Spin
Will test it live during 1/2 term week (25th-29th October) on SLM @ 10p pip for TNT with INT40/30 and HNT40 for a week while also doing my usual manual trades the same bur full trades so I can compare the EA vs live maunal trading. I can be at the trade the whole time from 6.15am to 8.30am as no school run to do.

M
mark120169 is offline   Reply With Quote
Old Oct 12, 2010, 11:06am   #20
Joined Dec 2006
Re: NetTrap Metatrader Expert Advisor

SpindriftUK started this thread
Quote:
Originally Posted by mark120169 View Post
Will test it live during 1/2 term week (25th-29th October) on SLM @ 10p pip for TNT with INT40/30 and HNT40 for a week while also doing my usual manual trades the same bur full trades so I can compare the EA vs live maunal trading. I can be at the trade the whole time from 6.15am to 8.30am as no school run to do.

M
I should have ironed out a few more of the bugs by then

Speaking of which, the attached version has some validation to prevent incorrect parameter settings on SML.

Spin
Attached Files
File Type: ex4 FNTTrader.ex4 (56.4 KB, 253 views)
SpindriftUK is offline   Reply With Quote
Old Oct 19, 2010, 11:03am   #21
Joined Dec 2006
Re: NetTrap Metatrader Expert Advisor

SpindriftUK started this thread Hi folks
Attached is the final iteration of version 3 of FNTTrader. I've ironed out quite a few wrinkles, mostly cosmetic, and I'm happy that the options are pretty much working as they should.

There are still numerous parameters, although I think in later versions this will reduce significantly, as lots of the options are experimental. The defaults are currently set for an Alpari GBP account using 30SNT20. With Metatrader EAs, it's possible to save a parameter set and then load it. If anyone is having trouble creating a particular variant, please let me know and I will create such a parameter set.

One option I would like to highlight is the compensateForLowRRR parameter. If TRUE, it will cause the amount staked per pip to be increased if the reward/risk ratio is less than the VNT norm; e.g. if using HNT, SNT, etc. The program works out how much profit would be achieved with a standard NT target and then increases the stake so that the same profit can be achieved using the closer target. More risky, it's true, but my testing so far suggests it might be worthwhile.

I have been running the EA on a SmartLIveMarkets demo account, using an old PC as a kind of server, which I have just left turned on 24/5, running 30SNT20. This has worked ok and all of the "new day" initialisations appear to work as they should.

I have also been running the EA live with very small take profits and standard NT stops, on both SML and Alpari and it's performed well, with 5 consecutive wins on Alpari and 4 on SML.

I am now doing some simulations using the MT strategy tester, for which I've finally managed to get fully populated historical data. I've got some interesting results already, which I will post to this thread soon.

Cheers,
Spin

p.s. In version 4, I will look at including RH's new Safety Net options and also a more radical version of money management that I've been mulling over.
Attached Files
File Type: ex4 FNTTrader.ex4 (64.2 KB, 260 views)
SpindriftUK is offline   Reply With Quote
Thanks! The following members like this post: Trader333 , MaxiV
Old Oct 19, 2010, 1:02pm   #22
Joined Dec 2009
Re: NetTrap Metatrader Expert Advisor

Quote:
Originally Posted by SpindriftUK View Post
Hi folks
Attached is the final iteration of version 3 of FNTTrader. I've ironed out quite a few wrinkles, mostly cosmetic, and I'm happy that the options are pretty much working as they should.

There are still numerous parameters, although I think in later versions this will reduce significantly, as lots of the options are experimental. The defaults are currently set for an Alpari GBP account using 30SNT20. With Metatrader EAs, it's possible to save a parameter set and then load it. If anyone is having trouble creating a particular variant, please let me know and I will create such a parameter set.

One option I would like to highlight is the compensateForLowRRR parameter. If TRUE, it will cause the amount staked per pip to be increased if the reward/risk ratio is less than the VNT norm; e.g. if using HNT, SNT, etc. The program works out how much profit would be achieved with a standard NT target and then increases the stake so that the same profit can be achieved using the closer target. More risky, it's true, but my testing so far suggests it might be worthwhile.

I have been running the EA on a SmartLIveMarkets demo account, using an old PC as a kind of server, which I have just left turned on 24/5, running 30SNT20. This has worked ok and all of the "new day" initialisations appear to work as they should.

I have also been running the EA live with very small take profits and standard NT stops, on both SML and Alpari and it's performed well, with 5 consecutive wins on Alpari and 4 on SML.

I am now doing some simulations using the MT strategy tester, for which I've finally managed to get fully populated historical data. I've got some interesting results already, which I will post to this thread soon.

Cheers,
Spin

p.s. In version 4, I will look at including RH's new Safety Net options and also a more radical version of money management that I've been mulling over.
great work ! well done
stricky1967 is offline   Reply With Quote
Old Oct 19, 2010, 2:16pm   #23
Joined Dec 2006
Re: NetTrap Metatrader Expert Advisor

SpindriftUK started this thread
Quote:
Originally Posted by stricky1967 View Post
great work ! well done
Thanks - I hope it proves useful. If nothing else, making it available to others has helped me to improve it!

Cheers,
Spin
SpindriftUK is offline   Reply With Quote
Old Oct 19, 2010, 2:24pm   #24
Joined Dec 2006
Re: NetTrap Metatrader Expert Advisor

SpindriftUK started this thread Attached is a spreadsheet showing all the parameters, alphabetically (more-or-less) within each parameter section.

Cheers,
Spin
Attached Files
File Type: xls FNTTrader parameter descriptions.xls (24.5 KB, 337 views)
SpindriftUK is offline   Reply With Quote
Old Oct 20, 2010, 11:15am   #25
Joined Feb 2008
Re: NetTrap Metatrader Expert Advisor

Hi Spin. This is amazing. Thanks for sharing. I hope you don't mind me asking two questions.

I put the EA on my demo SML account on 4 graphs last night with various different settings. The smiley face in the top right was showing but today in the morning no trades have triggered.

I am thinking it was because my pc went into 'sleep mode' and I need to change the power settings or I did not put in a trade amount -can't find this bit on EA input.

Apologies if silly questions.
pimplico is offline   Reply With Quote
Old Oct 20, 2010, 11:29am   #26
Joined Dec 2006
Re: NetTrap Metatrader Expert Advisor

SpindriftUK started this thread
Quote:
Originally Posted by pimplico View Post
Hi Spin. This is amazing. Thanks for sharing. I hope you don't mind me asking two questions.

I put the EA on my demo SML account on 4 graphs last night with various different settings. The smiley face in the top right was showing but today in the morning no trades have triggered.

I am thinking it was because my pc went into 'sleep mode' and I need to change the power settings or I did not put in a trade amount -can't find this bit on EA input.

Apologies if silly questions.
Hi

Not silly at all - I still get caught out by MTs various settings when I load a new copy!

The first thing to check are the settings in Metatrader relating to EAs. Go to Tools/Options and select the Expert Advisors tab. I have attached a screenshot of my settings.

Trade amount is calculated if you set the useMoneyManagement parameter to true or set equal to the lots parameter if not.

What I often do to test my settings is to drag the EA onto the chart then set the start and end times to be about an hour ahead. The EA will display the "likely" values for the trade right up until the startHHMM value, at which time will create the trade.

Let me know how you get on...

Cheers,
Spin
Attached Thumbnails
mt-ea-settings.png  
SpindriftUK is offline   Reply With Quote
Old Oct 20, 2010, 11:43am   #27
Joined Oct 2009
Re: NetTrap Metatrader Expert Advisor

Just to add one more thing - with SmartLiveMarkets, if you want to use an EA on a live account you have to explicitly enable the use of EAs on your account webpage. If it still doesn't work, phone them as it's actually a manual task on their side.

(Sorry if I'm repeating common knowledge but this is a likely place for someone to find it )
zorba_g is offline   Reply With Quote
Old Oct 20, 2010, 11:47am   #28
Joined Dec 2006
Re: NetTrap Metatrader Expert Advisor

SpindriftUK started this thread
Quote:
Originally Posted by zorba_g View Post
Just to add one more thing - with SmartLiveMarkets, if you want to use an EA on a live account you have to explicitly enable the use of EAs on your account webpage. If it still doesn't work, phone them as it's actually a manual task on their side.

(Sorry if I'm repeating common knowledge but this is a likely place for someone to find it )
Good point! When I opened my account with SML, I requested that EAs be enabled. A few days later, it hadn't been done and I emailed them asking why. That prompted them to do the necessary
SpindriftUK is offline   Reply With Quote
Old Oct 20, 2010, 11:52am   #29
Joined Feb 2008
Re: NetTrap Metatrader Expert Advisor

Thank very much Spin,

For your very detailed reply and screen shot. I think it definitely was my EA settings which I have now amended to the same as yours! I will test the settings today and for tomorrow. Will let you know how I get on.

Thanks again.

P
pimplico is offline   Reply With Quote
Old Oct 20, 2010, 11:59am   #30
Joined Oct 2009
Re: NetTrap Metatrader Expert Advisor

Quote:
Originally Posted by SpindriftUK View Post
Good point! When I opened my account with SML, I requested that EAs be enabled. A few days later, it hadn't been done and I emailed them asking why. That prompted them to do the necessary
Snap! And would you believe it was only winning trades that I missed?
zorba_g is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Metatrader Expert advisor losses money automatically oildaytrader Trading Software 3 Oct 5, 2009 4:11pm
expert advisor anguel First Steps 0 Apr 10, 2009 10:54am
Expert Advisor Help mozillan Trading Software 0 Mar 1, 2007 5:49pm

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)