Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Simple EMA ADX Trading System by Sosrodiningrat @2017 for Amibroker (AFL)

Rating:
3 / 5 (Votes 2)
Tags:
trading system, amibroker, adx

This just a simple trading system using EMA ADX crossing. You can optimize the value for different condition. Not for real trading, just for education purpose.
By Sosrodiningrat @2017

Indicator / Formula

Copy & Paste Friendly
//Simple EMA ADX Trading System by Sosrodiningrat @2017

function ParamOptimize(description,defaultVal,minv,maxv,step){return Optimize(description,Param(description,defaultVal,minv,maxv,step),minv,maxv,step);}//parameter and optimizer
SetTradeDelays(1,1,0,0);
BuyPrice=O;
SellPrice=O;

b1=ParamOptimize("b1",42,2,100,1);
b2=ParamOptimize("b2",2,2,100,1);
b3=ParamOptimize("b3",48,2,100,1);
b4=ParamOptimize("b4",49,2,100,1);
s1=ParamOptimize("s1",59,2,100,1);
s2=ParamOptimize("s2",80,2,100,1);
s3=ParamOptimize("s3",46,2,100,1);
s4=ParamOptimize("s4",2,2,100,1);

Buy=Cross(EMA(ADX(b1),b2),EMA(ADX(b3),b4));
Sell=Cross(EMA(ADX(s1),s2),EMA(ADX(s3),s4));

Buy=ExRem(Buy,Sell);Sell=ExRem(Sell,Buy);

Plot(C,"",colorBlack,styleCandle);

PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorBlue,0,L,-12);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,H,-12);


//===============================================

0 comments

Leave Comment

Please login here to leave a comment.

Back