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

Detect GAP for Amibroker (AFL)
erlenjr
about 13 years ago
Amibroker (AFL)

Rating:
5 / 5 (Votes 1)
Tags:
Gap, amibroker

Detects the occurrence of gap for one day to another day and jumps right amount of candles.

Similar Indicators / Formulas

Gap Levels
Submitted by windmild_15 over 14 years ago
All in one Chart Ploter
Submitted by shravan2964 over 11 years ago
3_6Day GuaiLiLv
Submitted by motorfly almost 13 years ago
Williams Alligator System
Submitted by durgesh1712 about 13 years ago
Interactive Linear Regression Channel
Submitted by InternetWorm almost 13 years ago
*Level Breakout system*
Submitted by Tinych about 13 years ago

Indicator / Formula

Copy & Paste Friendly
//+--------------------------------------------------------------------------------------------------------+
//|                                                                                                GAPs.afl |
//|                                                                                        Project EJR 2011 |
//|                                                                                   erleninvest@gmail.com |
//+---------------------------------------------------------------------------------------------------------+

candlejump = Param("Candle Jump",11,3,20) ; // Amount of candles to jump is detected
Vlrgap = Param("Porcentagem GAP",0.3,0,2,0,01) ; // size percentage above or below
qntcandles=BarsSince(TimeNum() < Ref(TimeNum(),-1)); // counting candles that have passed since the day began.
Vlry=ValueWhen(TimeNum() < Ref(TimeNum(),-1),Ref(C,-1));  // return to the previous close when the day begins.
Vlrt=ValueWhen(qntcandles==0,Open); // 
wait=IIf(qntcandles < candlejump,1,0); 
delay=IIf(wait==1 AND ( Vlrt > Vlry * (1+(vlrgap/100)) 
OR Vlrt < Vlry * (1-(vlrgap/100))) ,1,0); 

/////////////////////////PLOT

Plot(delay,"teste",colorRed);

0 comments

Leave Comment

Please login here to leave a comment.

Back