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
  #621 (permalink)  
Old 01-22-2009, 08:49 PM
Senior Member
 
Join Date: Dec 2008
Posts: 132
finimej is on a distinguished road
.: Gert Lanckriet :. The author has put this on his homepage, and is in postscript format, I just converted it to PDF. I've checked the original file with ps viewer and the figure is missing in the file also. Well, maybe write to ask the authour about this. His email is on his homepage.


Here is another very nice master thesis on using neural network on forex

Last edited by finimej; 01-23-2009 at 12:39 AM.
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
  #622 (permalink)  
Old 01-23-2009, 08:43 AM
Senior Member
 
Join Date: Dec 2008
Posts: 132
finimej is on a distinguished road
corrected converted papper. Van Gestel, T., Suykens, J.A.K., Lanckriet, G.R.G. , Lambrechts, A., Baestaens, D., De Moor, B., Vandewalle, J. (2001). Bayesian Interpretation of Least Squares Support Vector Machines for Financial Time Series Prediction . Proceedings of the 5th World Multi-Conference on Systemics, Cybernetics and Informatics , Vol. III, pp. 254-259, Orlando, Florida. Outstanding paper award.
Attached Files
File Type: pdf papper.pdf (415.9 KB, 74 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
  #623 (permalink)  
Old 01-23-2009, 10:31 AM
Senior Member
 
Join Date: Oct 2008
Posts: 179
fajst_k is on a distinguished road
another documents and error evaluation

Here are another documents describing usage of NN for financial series. I believe
you should find out the way to measure the statistical error of prediction for your EA and try to improve this.

What data it is using for training ?? Did you try with different input data sets
and compare the results ??

Krzysztof
Attached Files
File Type: pdf FIN-PRE-MJR-artykul-ICAISC2006.pdf (113.3 KB, 59 views)
File Type: pdf jaruszewicz_mandziuk.pdf (134.3 KB, 62 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
  #624 (permalink)  
Old 01-24-2009, 03:26 AM
Senior Member
 
Join Date: Oct 2006
Posts: 206
aegis is on a distinguished road
This stuff is cool.

I wish I knew how to program.
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
  #625 (permalink)  
Old 01-24-2009, 03:34 PM
progressapama's Avatar
Member
 
Join Date: Apr 2008
Posts: 67
progressapama is on a distinguished road
Please Help with this Pending Orders Code if you can

// I am trying to use this Pending order code in NN EA that i am still trying to code. It is far from over i just started. Any help Please.

int CheckOpenPendingOrders() {
for (int i = 0; i < OrdersTotal(); i++) {
if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
if (OrderSymbol() == Symbol() && OrderType() == OP_SELL || OrderType() == OP_BUY)
if (StringSubstr(OrderComment(), 0, 4) == "Open") return (OrderTicket());
}
}
return (0);
}

int CheckPendingOrders() {
for (int i = 0; i < OrdersTotal(); i++) {
if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
if (OrderSymbol() == Symbol() && OrderType() == OP_SELLSTOP || OrderType() == OP_BUYSTOP)
if (StringSubstr(OrderComment(), 0, 4) == "Pending") return (OrderTicket());
}
}
return (0);
}

// The Below Code does not seem to work it goes into a LOOP after after a few trades.


void ClosePendingOrders() {
double PendingOrderOpenPrice;
int ParentTicket;
int PendingTicket = CheckPendingOrders();
int OpenPendingOrderTicket = CheckOpenPendingOrders();

if (PendingTicket > 0 ) //Scan to see if there exists pendings Orders that needs to be cancelled
{
OrderSelect(PendingTicket, SELECT_BY_TICKET);
PendingOrderOpenPrice = OrderOpenPrice();
ParentTicket = OriginalOrderTicket(PendingTicket);
OrderSelect(ParentTicket, SELECT_BY_TICKET);

if (OrderCloseTime() > 0)
{

if (OrderProfit() <= 0.0 )return; // it should activate the Pending order ( into an open Sellstop or buystop) if the Parent order was a LOSS trade
// i.e the STOP LOSS was hit
// does not seem to work correctly it causes a LOOP. it is able to activate the pending order but
// then it starts to go into LOOP

OrderDelete(PendingTicket); // Deletes the Pending Order if the Parent order was a WIN
if (!(Outcome)) return;
return;
}


}

}

Last edited by progressapama; 01-24-2009 at 03:38 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
  #626 (permalink)  
Old 01-24-2009, 09:45 PM
Senior Member
 
Join Date: Dec 2008
Posts: 132
finimej is on a distinguished road
Hello, Progressapama above,
DIN KUSKUS EA in this forum has very nice local functions for order management. I in fact uses it as my EA framework. Take a look at his EA about the local function CloseOrder Part. Hopes it will help.
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
  #627 (permalink)  
Old 01-24-2009, 11:45 PM
Senior Member
 
Join Date: Dec 2008
Posts: 132
finimej is on a distinguished road
Here is the Parzen window classification math equations and here is the
The PNN EA code implemenation. However the PNN EA is doing good in backtest, because the trainer has calculated the bar price and put a buy or sell class for every bar there. Therefore the backtest will always be ok.

For the forward testing, the PNN EA seems not do the classfication right at all. Here is his classification code.
default is -1 for sesultClass. if the parzen window PDF here is his fx[i+1]>fx[i], then the result is in the window, and return a result. However, here comes the problem, the orginal code return the counter i. It shall return a class buy or sell in fact. So later the forwarding test will have problem, when the current bar price is sent for classfication. Can someone who understand the code check it out and correct it? Thanks.

The end there, return (resultClass) there is the sucker, it only returned value 0, so the backtesting for the comming period, is all buying operation.

Quote:
**
* Classify a vector in one class.
*/
int PNNClassifyVector(double vector[]) {
double length = ArrayRange(vector, 0);
double result = -99999999999999999999;
int resultClass = -1;
double fx[2] = {0, 0};
double classVectorCount[2] = {0, 0};
for (int i = 0; i < ArrayRange(pnn, 0); i++) {

int class = pnn[i][0];
double classVector[60];
for (int j = 0; j < length; j++) {
classVector[j] = pnn[i][j + 1];
}
classVectorCount[class]++;

fx[class] += MathExp((-1)
* euclideanScalarProduct(vector,
classVector) / (2 * MathPow(SIGMA, 2)));
}
for (i = 0; i < ArrayRange(fx, 0); i++) {
fx[i] *= 1 / (MathPow(2 * 3.14159265, length / 2)
* MathPow(SIGMA, length))
* (1 / classVectorCount[i]);
if (fx[i] > result) {
result = fx[i];
resultClass = i;
}
}
return (resultClass);
}
Attached Files
File Type: zip PNN.zip (3.8 KB, 75 views)

Last edited by finimej; 01-25-2009 at 12:13 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
  #628 (permalink)  
Old 01-25-2009, 05:39 AM
progressapama's Avatar
Member
 
Join Date: Apr 2008
Posts: 67
progressapama is on a distinguished road
Quote:
Originally Posted by finimej View Post
Hello, Progressapama above,
DIN KUSKUS EA in this forum has very nice local functions for order management. I in fact uses it as my EA framework. Take a look at his EA about the local function CloseOrder Part. Hopes it will help.
Thanks so much. I think i figured out the Problem
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
  #629 (permalink)  
Old 01-26-2009, 09:15 AM
Senior Member
 
Join Date: Dec 2008
Posts: 132
finimej is on a distinguished road
I would like to simplify the task for Neural network. to identify the flat market and trend market, specially identify the trend market when it is in baby phase. Just give the digital output, flat or trend for each candle bar. In this way, we do not need to update the trainer continuelly.

1) input, is the current candlebar, and previous 4, 7, or 11 candlebars.

2) Neural network has the defined pattern for flat market, takes these pattern that defined by this attached PDF by Joe Ross here. The neural network thereafter check the incoming candle against the defined patterns. belongs the pattern, then it is flat market. Does not belongs the pattern, then it is a trend market.

3) Out from the neural network shall be an indicator that give the phase, flat or trend.

We can use the MA cross or Heiken Ashi bar to handle the trend market, and stay out or use the stochastic(5,3,3) to handle the flat or range trading market. WhatI really need is to distinguish the trend market when it is in baby phase, from the flat market.

Attached is the definition of the congestion phase

Here you can also download the Joe Ross' The Law of Charts ebook free
Trading Educators Inc. - Joe Ross - Day Trading and Online Trading
Get Joe Ross' Trader's Trick Entry (TTE) ebook free
Trading Educators Inc. - Joe Ross - Day Trading and Online Trading
I think that the same PNN framework can be used for this, the only differene is that the trainer to get the two group, flat trend candles and trend candles, then the classficiation will automatically take the new currect candle and with the previous 3 candels to compare the pattern in the trainer, to get the class.
Attached Files
File Type: pdf identify congesting phase.pdf (838.4 KB, 76 views)

Last edited by finimej; 01-26-2009 at 05:30 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
  #630 (permalink)  
Old 01-26-2009, 11:01 PM
Senior Member
 
Join Date: Dec 2008
Posts: 132
finimej is on a distinguished road
Can someone please debug the pnn.zip there in the thread #627above?
The backtesting on the period after the training period, does not buying operation. I think there maybe something not right with the classification.

Need help, please.
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
better ea, neural network, svm forex, cache:Jtu9ppOwDvsJ:www.forex-tsd.com/expert-advisors-metatrader-4/11096-better-nn-ea-development.htm, better, nn ea, better ea development, forex better ea, cortex, forex, Better NN EA, better development, better NN development, wackena NN-EA, libsvm, ea better, kalman, auto-scalper, Forex Auto-Scalper, search, Abdul Rahman EA Forex, fapturbo, betterea, GaussPNN, neuro, MT4_FANN, Auto-Scalper.ex4, better nn, Matrix NN ea


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
BrainSystem: indicators development newdigital Brain Systems 58 08-22-2009 09:52 PM
Zigzag system development newdigital Indicators - Metatrader 3 14 05-20-2009 05:52 AM
StochThreshold | ... under development wibitiens Indicators - Metatrader 4 0 05-26-2007 03:26 AM
Brainwashing: system development newdigital Brain Systems 45 11-24-2006 12:55 PM
Help with simple EA idea development Spider4896 Metatrader 4 2 04-21-2006 02:23 PM


All times are GMT. The time now is 10:07 AM.



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