Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-09-2007, 05:03 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,354
ElectricSavant is on a distinguished road
Artificial Intelligence

I downloaded this EA from here in the hopes of developing the AIMM™ complete Artificial Intelligence trading system with Money Managment.:

http://www.earnforex.com/mt4_expert_...telligence.mq4

I am using this one hour TF EA in an unconventional way and loaded it and viewing it on 1 hr charts. I am "in need" of just one thing added to the code, just now. Please do not fill up this thread with posts and make it long and incoherent. Allow me to just post my results with the default settings presented in the link above. After a bit...we will get a "feel" for this as the market conditions demonstrate their most excellent ability to remove money from your account. I hope that changes will be sparse in this thread and tested before they are made.

This global variable that I am requesting does not necessarily need to be be dragged into each chart, but made a part of the EA code...or maybe a script could be added somewhere to be automatically run when the TOTAL PORTFOLIO arrives at the percent indicated/chosen in a user friendly interface where the percent can be typed with one decimal...for example 1.8%...1.9%...2.0%...2.1%...etc...etc I need three inputs allow in these percents to be entered with their own BeginTime..such as 2:00...00:00.....17:00...etc These times should read the local computer clock.

I need this money managment input added to this, to look at the total portfolio wide floating P/L in MT4/IBFX and when the users chosen percent for that time area is reached...1.5% for example then a "close all" script will activate, taking the profit and getting flat in the four pair I trade, thus allowing the EA to start again.


I will share the three combinations of four pair portfolio's when some kind soul adds this to the code and posts the MQ4 download that modifies this EA as requested. It would be so helpful to me as I do this "entire portfolio exit" manually now and I do not have time to be glued to the platform, but can glance at it to make sure all is running ok. Understand, I need to test your code modification before I start posting Journal-style posts.

I know...I know...Electric! why are you messing with these AI EA's?... It's just that I battle to keep my mind open and this EA makes the most money in the last two days out of the four different EA's that I watch on my four 19" LCD's...in a market that goes up and down. I also really, really do trade with four live accounts too! in the upper half of my four screens turned vertically. This EA goes long and short and has no weaknesses towards the positive carry unwinding or winding and bases trades on different logic and is longer term (but I make it shorter term with my exits and the four pair that do not overlap). I need diversification, thus I am trying this and this EA seems to get me going on the correct side of the trade and I never have let it trail its SL's up as it goes positive...but they are there if needed. I have only traded it in my demo account for 2 days and it is too early to tell...but I get busy and manually taking 2% off the table is inefficient as I miss opportunities. I need it automated!

ElectricSavant™

Last edited by ElectricSavant; 08-11-2007 at 09:48 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 08-09-2007, 05:28 PM
elitecamper's Avatar
Senior Member
 
Join Date: May 2007
Posts: 132
elitecamper is on a distinguished road
hello electronic savant i agree with you. I think it is a great EA based on a very simple idea. i did a little tweak, the original EA has 0, 7, 14, 21 as bar intervals between the accelerators. but i changed it to fabonacci intervals 0, 8, 13, 21. it works, more profit

another idea, in the optimizer give all 4 variables a little more range , i was testing with 200 on each variable it seemed to work good. , and optimize it every day on data of last 10 days. im working on getting this ea to self optimize itself everyday. it can be done but need to run a seperate terminal for optimizatioin. this is a very smart system very good.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 08-09-2007, 05:47 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,354
ElectricSavant is on a distinguished road
For those of you curious as to this users two modifications (elitecamper) IN THE CODE and not the user input screen. Here are the default inputs presented in the opening post above for this EA, but this user is going into the code (I will list the entire & simple input screen here below):

x1: 135
x2: 127
x3: 16
x4: 93
sl: 85.0
lots: 1.0
MagicNumber: 888

ES

P.S. The first change, I will implement at the posters word. It is not my style, but Fib #'s cannot be so bad.

P.P.S. The 2nd change suggested by this user would automate the "a pairs unique inherint charateristics.

Below is the portion of code this user is tinkering with.

//+------------------------------------------------------------------+
//| The PERCEPTRON - a perceiving and recognizing function |
//+------------------------------------------------------------------+
double perceptron()
{
double w1 = x1 - 100;
double w2 = x2 - 100;
double w3 = x3 - 100;
double w4 = x4 - 100;
double a1 = iAC(Symbol(), 0, 0);
double a2 = iAC(Symbol(), 0, 7);
double a3 = iAC(Symbol(), 0, 14);
double a4 = iAC(Symbol(), 0, 21);
return(w1 * a1 + w2 * a2 + w3 * a3 + w4 * a4);
}
//+------------------------------------------------------------------+



Quote:
Originally Posted by elitecamper View Post
hello electronic savant i agree with you. I think it is a great EA based on a very simple idea. i did a little tweak, the original EA has 0, 7, 14, 21 as bar intervals between the accelerators. but i changed it to fabonacci intervals 0, 8, 13, 21. it works, more profit

another idea, in the optimizer give all 4 variables a little more range , i was testing with 200 on each variable it seemed to work good. , and optimize it every day on data of last 10 days. im working on getting this ea to self optimize itself everyday. it can be done but need to run a seperate terminal for optimizatioin. this is a very smart system very good.

Last edited by ElectricSavant; 08-09-2007 at 06:00 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 08-09-2007, 05:53 PM
lepiricus's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 218
lepiricus is on a distinguished road
ES, I'm not a coder but you can use this EA in the meanwhile, you simply attach it to a random chart and input what $ amount you want it to close all trades and it closes all trades once the input profit is reached then the AI EA will re-start.

You can easily figure up 2% of your balance in your head even. It won't automate it but should save you considerable screen time. You would simply have to update the 2% input as your balance goes up
Attached Files
File Type: mq4 CloseAll-PL.mq4 (4.2 KB, 325 views)
__________________
All your pips are belong to us!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 08-09-2007, 06:02 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,354
ElectricSavant is on a distinguished road
Since there are many people reading from all over the world and at various levels in their journey...I will ask this:

Question:
Do I simply change the numbers, highlighted in blue below, then save & compile in the MetaEditor and then close down and restart the MT4 platform...do I need to remove the EA and then re-drag after I reopen? also do I need to do all of this in a flat/no open trades moment?


//+------------------------------------------------------------------+
//| The PERCEPTRON - a perceiving and recognizing function |
//+------------------------------------------------------------------+
double perceptron()
{
double w1 = x1 - 100;
double w2 = x2 - 100;
double w3 = x3 - 100;
double w4 = x4 - 100;
double a1 = iAC(Symbol(), 0, 0);
double a2 = iAC(Symbol(), 0, 7);
double a3 = iAC(Symbol(), 0, 14);
double a4 = iAC(Symbol(), 0, 21);
return(w1 * a1 + w2 * a2 + w3 * a3 + w4 * a4);
}
//+------------------------------------------------------------------+


ES

P.S. To those of you that have never coded and would love to try...remember every space even if its empty has a function...be very, very careful.

Last edited by ElectricSavant; 08-09-2007 at 06:11 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 08-09-2007, 06:14 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,354
ElectricSavant is on a distinguished road
to clarify what this contributer means:


I can open up a fifth chart..and run his download that he shared (I will leave its background black, which is different from the midnight blue that I use in my charts within demo accounts to remind me what they are and they are not live hehe).

The reason the fifth chart is needed is that two EA's cannot run at once on one chart. Since the automation that I need can run independently of the other four pair it can remain outside of the four pair that I use in this AIMM™ EA. Actually, this could be used for coding the global variables and be that chart designated for that part of the development of this 2-EA AIMM™ system and the future modifcations to the EA could be separated and contained there.

This fifth black chart will remind me that it is there to merely function as an AIMMEarlyTP™. I find that to organize from the beginning when testing several EA's, indicators and theories saves a lot of time and confusion for me the trader/researcher. (keep a written journal and update it each morning with your cup of Java)

Thank you lepiricus, I will test this solution.

ES


Quote:
Originally Posted by lepiricus View Post
ES, I'm not a coder but you can use this EA in the meanwhile, you simply attach it to a random chart and input what $ amount you want it to close all trades and it closes all trades once the input profit is reached then the AI EA will re-start.

You can easily figure up 2% of your balance in your head even. It won't automate it but should save you considerable screen time. You would simply have to update the 2% input as your balance goes up

Last edited by ElectricSavant; 08-11-2007 at 08:16 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 08-09-2007, 06:16 PM
elitecamper's Avatar
Senior Member
 
Join Date: May 2007
Posts: 132
elitecamper is on a distinguished road
Quote:
Question:
Do I simply change the numbers in the code listed below save & compile in the MetaEditor that are highlighted in blue below and then close down and restart the MT4 platform...do I need to remove the EA and then re-drag after I reopen? also do i need to do all of this in a flat/no open trades moment?
i would say yes to all the above.
here is my little fib tweak.
im going to try to combine the ai ea and the ea lepericus posted.
its just a cut and paste job.
then it can all be backtested.
Attached Files
File Type: mq4 ArtificialIntelligenceFibTweak.mq4 (5.7 KB, 531 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 08-09-2007, 06:21 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,354
ElectricSavant is on a distinguished road
Thank you Sir...please test thouroughly before posting your work...please (because I will). This is fun isn't it?

but wouldn't you agree that writing in percent rather than dollar amount would be better & self-updating...trade set to trade set...? please include the 1 decimal percent input field, as requested in the opening post.

There is no hurry folks...accuracy and well thought out presentation and testing is far more important than speed.

I hope that somebody can get something from this "plain speak" Journal. Don't worry I will FORCE these guys to speak in "Plain Speak English"

Please folks slow down now...lets give this a day and do not go off in several different directions as I must test one change at a time...

ES


Quote:
Originally Posted by elitecamper View Post
i would say yes to all the above.
here is my little fib tweak.
im going to try to combine the ai ea and the ea lepericus posted.
its just a cut and paste job.
then it can all be backtested.

Last edited by ElectricSavant; 08-09-2007 at 08:19 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 08-09-2007, 06:33 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,354
ElectricSavant is on a distinguished road
Thank you for posting this elitecamper.

I have reached this far in the thread and this represents one change from the opening link posted.

I will test this as I got sidetracked here and there was 2% in the float as I post... I took it!...HeHe I used a "close all" tool that I have and quickly exited and got flat in the entire portfolio. Then I turned off the advisor..in preparation for this new test...now some of you are asking to yourselves..Electric? why 2% ? This is my answer: Because we are working together with SL's and TP's and I am trading with 1 lot which is a total of 4 lots per 3k. 2% seems reachable before the AI system kicks in...which I consider protection instead of being naked. I like getting out early with diversification just to see what the AI does with its directions on the new entries at the next opening of the one hour candlestick. We are combining and calibrating, thus my need for one change at a time folks.

Thank you.

Do not post your PERCENT MM change until tomorrow please! as I must test and it will get lost in this thread. Lets limit our posts now ok? This can become a very large thread...or maybe we can be quiet and test (please do not rate this thread).

Forget backtesting multiple pair..it does not work together...This is AI with MM. Plus I will Forward test.
ES

P.S. With the four independent pair that I trade representing eight currencies...there are losses and gains in the mix..so when I exit and re-enter...the AI can go in another direction...sometimes it stays the same....and the individual losses that was averaged previously turned around and becomes the gain in the next exit...each pair fortifies each other and who cares which one is carrying the weight! Remember we are not naked and we have SL's and TP's...also...This technique that I am using is advanced trading and should be realized by some of you as brilliance, and believe it...I found this all by accident and years of trading experience and not MY brilliance. (now I am going to eat my words if all this goes bad).

I have made 6.39% in two days with my Demo trading, with the link in the opening post here, and I used the default inputs on the four pair We can now compare this one change to this to see how it does, but I need to watch and exit at 2%, as I have been doing, to compare apples to apples.

Late edit: the EA portfolio of four pair with this latest change, is already in plus territory in under 10 minutes...some pairs are losing and some winning. the reentry that the AI evaluates is always new after a 2% profitable reset...and again...if the hold becomes overnight we are not naked.

Quote:
Originally Posted by elitecamper View Post
i would say yes to all the above.
here is my little fib tweak.
im going to try to combine the ai ea and the ea lepericus posted.
its just a cut and paste job.
then it can all be backtested.

Last edited by ElectricSavant; 08-09-2007 at 08:19 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #10 (permalink)  
Old 08-09-2007, 07:48 PM
Member
 
Join Date: Mar 2006
Posts: 82
mike4X is on a distinguished road
Hi Savvy,
I opened he EA on GBP/USD, USD/JPY, EUR/USD and GBP/JPY.
The first three are all winning but the GBP/JPY stopped out.
Probably not a good pair for this EA?
When will you divulge your 4 pairs?
Mike.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
artificial intelligence, artificial intelligence ea, artificial intelligence forex, ARTIFICIAL INTELLIGENCE MQ4, ArtificialIntelligence, ArtificialIntelligence mq4, artificialintelligence.mq4, emily, neural network, Neural Network mt4, neural networks, PERCEPTRON, Yury V. Reshetov


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT. The time now is 06:51 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.