Permission denied!

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

3 Day Reversal for Amibroker (AFL)

Rating:
5 / 5 (Votes 1)
Tags:
trading system, amibroker

3 Day Reversal

Similar Indicators / Formulas

EMA crossover
Submitted by Ketan-0 almost 14 years ago
Kase Peak Osc. V2 batu
Submitted by batu1453 over 10 years ago
Kase CD V2batu
Submitted by batu1453 over 10 years ago
Ichimoku
Submitted by prashantrdx over 10 years ago
Adaptive Price Zone (APZ)
Submitted by AndrewThomas almost 14 years ago
LANDIS Modified
Submitted by isfandi almost 14 years ago

Indicator / Formula

Copy & Paste Friendly
// 3 Day Reversal 

// Knowing the Current Trend

P1 = Param("Period",10,0,100,1);

MyPDI= PDI(P1);//Positive Directional Indicator
MyMDI= MDI(P1);//Negative Directional Indicator (Minus)

// Trend Conditions
Cond1 = MyPDI > MyMDI;
Cond2 = MyPDI < MyMDI;

//Sell Conditions

Cond3 = Ref(C,-1) > Ref(C,-2) AND Ref(C,-2) > Ref(C, -3) AND Ref(C, -3) > Ref(C, -4);
Cond4 = C < Ref(C,-1) AND C < Ref(O, -1);
A = H - C;
B = ( ( 100 * A ) / C );
D = (100 * 0.50 ) / H;
E = (100 * 0.50 ) / L;

Cond5 = O > (H - D); // AND B < 0.50; 
Cond6 = C <= (L + E);

Sell = Cond1 AND Cond3 AND Cond4 AND Cond5 AND Cond6;

// Buy Conditions

Cond7 = C > Ref(C,-1) AND C > 0;
Cond8 = O <= (L + E);
Cond9 = C >= (H - D);

Buy = Cond2 AND Cond7 AND Cond8 AND Cond9;

Short=Cover=0;

Buy = ExRem(Buy, BarsSince(Buy) > 5);
Sell = ExRem(Sell, BarsSince(Sell) > 5);

0 comments

Leave Comment

Please login here to leave a comment.

Back