9Trading.com

Home Page

9Trading Community
September 08, 2010, 04:21:06 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome To 9Trading Community Center
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Happy To Be Here & About Automated Trade Process  (Read 1149 times)
nilu_2005
Newbie
*
Posts: 1


View Profile Email
« on: April 16, 2009, 10:18:53 AM »

Hello,

This is my first post to this forum. I am glad that I found this very special site. I was looking for Amibroker & AFL related forum. I want to develop automated trading system for Amibroker. I have written some AFL buy/sell triggering method to activated my automation process.

Here is sample triggering method :

fh = fopen( "1EQUITYBUY.text", "w");
if( LastValue( Buy ))
{
fputs("[1,EQITY,BUY]", fh );
fclose(fh);
 
}
else
{
printf("Error opening file");
fclose(fh);
}


fs = fopen( "1EQUITYSELL.text", "w");
if( LastValue( Sell))
{
fputs("[1,EQUITY,SELL]", fs );
fclose(fs);
 
}
else
{
printf("Error opening file");
fclose(fs);
}


Problem with this type of trigger is that whenever say 5 minute candle show buy signal , when real time  tick value from that 5 minute candles crosses stop loss line. But some time some of the tick values again cross that stop loss line in opposite direction. This lead into false buy signal or sometime to many buy signals. I want to filter this problem in my trading system. I do have solution but it's not good for automation process. That method is, I can wait that 5 minute candle to form completely with clear buy/sell signal, then trade accordingly. But sometimes it lead into entering into trade too late. How improvise this problem. If anyone has suggestion please let me know.
 
Logged
9Trading Community
« on: April 16, 2009, 10:18:53 AM »

 Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!