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

Fibonacci/Lucas time series indicator for Amibroker (AFL)

Rating:
3 / 5 (Votes 2)
Tags:
amibroker, fibonacci

August 2011 Traders Tips:
A ready-to-use, all-in-one formula for the article is presented here. To use it, enter the formula in the Afl Editor, then press “Insert indicator.”

The starting point of a time series can be selected either by a mouse click on a chart or via the parameters window, which can also be used to define colors and determine which series should be plotted, Lucas or Fibonacci.

Screenshots

Similar Indicators / Formulas

Auto retracment
Submitted by gaurav918 almost 13 years ago
Automatic Fibonacci Levels
Submitted by kaiji almost 15 years ago
Automatic Fibonacci
Submitted by ngocleasing over 14 years ago
Fibonacci High-Probability Zones
Submitted by jayman2005 over 11 years ago
fibonacci extension updown
Submitted by vijaybaroda almost 12 years ago

Indicator / Formula

Copy & Paste Friendly
function DrawSeries( start, series, Color )
{
  x = BarsSince( start );

  result = 0;

  for( i = 0; ( bar = StrToNum( StrExtract( series, i ) ) ) != 0; i++ )
  {
     result += x == bar;
  }

  Plot( result, "", Color, 
        styleHistogram | styleOwnScale | styleNoLabel, 0, 1 );
}

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

FibSeries = "5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765";
LucSeries = "3,4,7,11,18,29,47,76,123,199,322,521,843,1364,2207,3571";

dn = ParamDate("Date", "", 0 );
tn = ParamTime("Time", "00:00:00", 0 );

bi = BarIndex();

if( ParamToggle("Start point", "Mouse select|Date input", 0 ) )
start = DateNum() == dn AND TimeNum() == tn;
else
start = bi == SelectedValue( bi );

if( start[ BarCount -1 ] ) 
  Title = "Click on chart to select starting point or enter date in the Parameters window";

fibon = ParamToggle("Fib Series", "Off|On", 1 );
fibcolor = ParamColor("Fib Color", colorRed );

lucon = ParamToggle("Lucas Series", "Off|On", 1 );
luccolor = ParamColor("Lucas Color", colorGreen );

if( fibon ) DrawSeries( start, FibSeries, fibcolor );
if( lucon ) DrawSeries( start, LucSeries , luccolor );

1 comments

1. rohitb

sir great work

Leave Comment

Please login here to leave a comment.

Back