Beruflich Dokumente
Kultur Dokumente
In “Automated Techniques For Intraday Traders” in this issue, author Andrew Coles suggests
the use of Fibonacci numbers and Lucas numbers to anticipate potential market reaction points.
The concept is to identify bars that are a Fibonacci or Lucas number of bars from a key bar on the
chart, then use this and other information to determine potential market reaction.
Here, we present indicator code that will identify bars that are a Fibonacci or Lucas number of
bars from a given “start bar.” Once the start bar is found by the code, a counter starts. If the
counter matches one of the Fibonacci or Lucas numbers discussed in the article, the bar is
identified with a PaintBar or ShowMe marker as set by the inputs. Multiple insertions of the
indicator with different colors, plot styles (PaintBar or ShowMe), and offsets can be used to
identify confluence of different insertions.
The EasyLanguage code is shown here. To download the code for the indicator and strategy, first
navigate to the EasyLanguage FAQs and reference posts topic in the EasyLanguage support
forum (https://www.tradestation.com/Discussions/Topic.aspx?Topic_ID=47452), scroll down
and click on the link labeled “Traders’ Tips, TASC.” Then select the appropriate link for the month
and year. The ELDfilename is “_FibAndLucasSeries_Tasc.Eld.”
inputs:
ELStartDate( 1110501 ), { Bar Date for start bar in EasyLanguage
format }
ELStartTime( 1200 ), { Bar Time for start bar }
FibBarColor( Red ),
LucasBarColor( Cyan ),
PlotAsPaintBar_0_or_ShowMe_1( 0 ), { to plot as a PaintBar, enter 0
or to plot
as a ShowMe, enter 1 }
ShowMeDotOffsetTicks( 10 ) ; { enter offset for dot if plotting as
ShowMe }
variables:
MyTick( MinMove/PriceScale ),
OkToCount( false ),
OkToPlot( false ),
PlotColor( 0 ),
BarCounter( 0 ) ;
if OkToCount then
BarCounter = BarCounter + 1 ;
switch ( BarCounter )
begin
{ Fib Series }
Case 5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6785 :
OkToPlot = true ;
PlotColor = FibBarColor ;
{ Lucas Series }
Case 3,4,7,11,18,29,47,76,123,199,322,521,843,1364,2207,3571 :
OkToPlot = true ;
PlotColor = LucasBarColor ;
end ;
if OkToPlot then
begin
if PlotAsPaintBar_0_or_ShowMe_1 = 0 then
begin
Plot1( H ) ;
Plot2( L ) ;
Plot3( O ) ;
Plot4( C ) ;
end
else
Plot5( L - MyTick * ShowMeDotOffsetTicks ) ;
SetPlotColor( 1, PlotColor ) ;
SetPlotColor( 2, PlotColor ) ;
SetPlotColor( 3, PlotColor ) ;
SetPlotColor( 4, PlotColor ) ;
SetPlotColor( 5, PlotColor ) ;
end ;