Trying Positions-Tested AFL-300%profit.

veluri1967

Well-Known Member
#1
Hello friends,

These recommendations are based on self made AFL in Amibroker. I have backtested the AFL on Nifty shares.
AFL has included one custom made indicator apart from MACD crossovers and stoch crossovers.
You have to be both Buy and Short the shares in order to gain the positions. Signals are generated very frequently and hence we cannot term it as Positional but Swing.
I am paper Trading these positions for next few days to enforce confidence in the system.
If interested watch them for next few days.

Ticker Trade Date Close

AMBUJACEM Short 18-12-2009 98.3000
BHARTIARTL Short 18-12-2009 317.8500
DLF Short 18-12-2009 357.4000
HCLTECH Buy 18-12-2009 365.3000
HINDALCO Short 18-12-2009 142.8500
IDEA Short 18-12-2009 56.9500
ITC Short 18-12-2009 247.0000
JINDALSTEL Short 18-12-2009 707.6500
ONGC Short 18-12-2009 1185.2500
RANBAXY Buy 18-12-2009 530.3500
RELIANCE Short 18-12-2009 1007.6500
SAIL Short 18-12-2009 213.1000
SIEMENS Short 18-12-2009 553.5500
TATAMOTORS Buy 18-12-2009 733.9500
TATASTEEL Short 18-12-2009 563.2500
TCS Buy 18-12-2009 727.500
UNITECH Short 18-12-2009 80.2000

No of shares shown as SHORT are more than No of shares shown as LONG that confirms overall bearish trend.

The date and price shown above are on the date with closing price the signal is generated. Enter the trades at the opening price of the scrip on next trading day.

Since there are both SHORT and LONG, these are best suited for Futures and Options. Longs can be tested on Cash Shares as well.

Hoping for a Smooth sail.
 

atulaw

Active Member
#2
If you can post the AFL or the system, we might have something to carry forward the discussion. Improving the system or perhaps more back testing by other members...
 

veluri1967

Well-Known Member
#3
Thatz fine friend.
I am actually not a techie.
Writing of AFL by me may look silly for some especially for those who are at expert level.

I think it would be prudent to discuss how the AFL is written.

AFL should be like this.

Buy/Cover. when stoch %k crosses up %d.
MACD crosses up signal line.
Sell/Short. Reverse the above.

Custom Indicator. It is tricky. Plot RSI with usual settings. Drag and drop MA over it.
Buy when RSI crosses up MA. Sell when RSI crosses down MA.
Club all three signals to generate the signals.

Hope friends here will come up with a colourful AFL and its backtesting results.

Whatever may be, I am giving below my AFL. Kindly let me know what is the wrong with this AFL. When I backtest, its giving fabulous returns. But when I check it manually, the story is different and pathetic.

Filter = Close > 0;
_SECTION_BEGIN("RSI");
SetChartOptions(0,0,chartGrid30|chartGrid70);
periods = Param( "Periods", 15, 1, 200, 1 );
Plot( RSI( periods), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

_SECTION_BEGIN("MA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();


/* Create date: 20 Dec 2009
The Stochastic %K(Slow) crosses above the Stochastic %D(Slow) on the current bar */

Buy =Cross( StochK( 14, 3 ), StochD( 14, 3, 3 ) )AND StochK( 14, 3 ) > 20 OR
/* Create date: 20 Dec 2009
The MACD crosses above the Signal on the current bar */

Cross( MACD( 12, 26 ), Signal( 12, 26, 9 ) ) /*AND
/* Create date: 20 Dec 2009
The Simple MA (Medium) crosses above the Simple MA (Long) on the current bar */

/*Volume > 250000 */OR
Cross(RSI ( periods ), MA ( P, Periods));
Sell = Cross( StochD( 14, 3, 3 ), StochK( 14, 3 ) )AND StochK( 14, 3 ) < 80 OR
Cross( Signal( 12, 26, 9 ), MACD( 12, 26 ) )/*AND
/* Create date: 20 Dec 2009
The Close Price of the current bar is greater than the Simple MA (Long) of 1 bar ago */

/* Create date: 20 Dec 2009
The Simple MA (Medium) crosses above the Simple MA (Long) on the current bar */

/*Volume > 250000*/ OR
Cross(MA ( P, Periods),RSI ( periods ) );
Short = Sell;
Cover = Buy;
 
Last edited:
#5
Hi,

I am a new trader and trying to gain some knowledge about the reliable companies to invest for long & short term. any websites or any suggestions about companies. thanks
 

veluri1967

Well-Known Member
#6
Todays Sell Triggers

Ticker Trade Date Close
ABB Sell 21-12-2009 756.2500
CIPLA Sell 21-12-2009 343.9500
GRASIM Sell 21-12-2009 2398.8501
HCLTECH Sell 21-12-2009 356.2000
HDFC Sell 21-12-2009 2564.2500
HINDUNILVR Sell 21-12-2009 262.1000
LT Sell 21-12-2009 1610.0500
M&M Sell 21-12-2009 1017.7000
ONGC Sell 21-12-2009 1177.9500
RANBAXY Sell 21-12-2009 526.2000
SIEMENS Sell 21-12-2009 551.3000
SUZLON Sell 21-12-2009 80.9000
TATASTEEL Sell 21-12-2009 555.9000



Buy Triggers

NTPC Buy 21-12-2009 208.5000


Todays scenerio depicts even more bearish trend compared to last days.
 
Last edited:
#7
Thnx Velluri... but do you check this on intraday or on EOD??

As I am unable to understand your AFL. Can you suggest me as I am not familier with AB..!!

Regards,

Paresh
swot9 at yahoo dot com
Error in AFL formula:

/*Volume > 250000*/ OR
Cross(MA ( P, Periods),RSI ( periods ) );
Short = Sell;
Cover = Buy
-----------^

Error 30.
Syntax error
 
Last edited:

veluri1967

Well-Known Member
#8
Todays Sell Triggers

Ticker Trade Date Close
ACC Sell 22-12-2009 837.4000
AMBUJACEM Sell 22-12-2009 96.0000
BHEL Sell 22-12-2009 2288.1499
INFOSYSTCH Sell 22-12-2009 2502.3999
RANBAXY Sell 22-12-2009 522.9500
TATAMOTORS Sell 22-12-2009 725.7500

Todays Buy Triggers
HEROHONDA Buy 22-12-2009 1698.7500
IDEA Buy 22-12-2009 58.3500
JINDALSTEL Buy 22-12-2009 713.5000
NTPC Buy 22-12-2009 214.8000
RELIANCE Buy 22-12-2009 1019.2000
SAIL Buy 22-12-2009 225.4500
SUNPHARMA Buy 22-12-2009 1502.9500
TATASTEEL Buy 22-12-2009 577.2000
SUZLON Buy 22-12-2009 84.2500
 
Last edited:

veluri1967

Well-Known Member
#9
Thnx Velluri... but do you check this on intraday or on EOD??

As I am unable to understand your AFL. Can you suggest me as I am not familier with AB..!!

Regards,

Paresh
swot9 at yahoo dot com
Error in AFL formula:

/*Volume > 250000*/ OR
Cross(MA ( P, Periods),RSI ( periods ) );
Short = Sell;
Cover = Buy
-----------^

Error 30.
Syntax error
Hello friend,

I am actually trying for positional trades on EOD signals.

But on observation it is found that the signals are working unbelievably on intraday basis on next day trades.

If we can book profits on intraday basis then the system will, i hope, give excellent results.

Anyway thanks friend for your initiative. If you happend to take pain in backtesting kindly let me know result.

Thanks
 
#10
Hello friend,

I am actually trying for positional trades on EOD signals.

But on observation it is found that the signals are working unbelievably on intraday basis on next day trades.

If we can book profits on intraday basis then the system will, i hope, give excellent results.

Anyway thanks friend for your initiative. If you happend to take pain in backtesting kindly let me know result.

Thanks
Hi Veluri,

Yes I am also interested for backtesting. But I am unable to run on my system can you explain me step by step.

thnks