Awarded

Amibroker AFL Basedon Historical S And R

I want to create a afl for Historical major turning points on daily chart (eod chart) which can also if used on hourly chart if required.

AFL should mark all historical major turning points and draw line at historical point

Below code marks historical major turning points as well as small/minor turning points, marking is represented as text in below afl which should be plotted as line or dotted line

_SECTION_BEGIN(\"HH\");

Q = Param( \"% Change\", 2, 0.1, 10, 0.1 );

Z = Zig( C , q ) ;

HH = ( ( Z < Ref( Z, -1 ) AND Ref( Z, -1 ) > Ref( Z, -2 ) ) AND (Peak( z, q, 1 ) > Peak( Z, q, 2 ) ) );

LH = ( ( Z < Ref( Z, -1 ) AND Ref( Z, -1 ) > Ref( Z, -2 ) ) AND (Peak( Z, q, 1 ) < Peak( Z, q, 2 ) ) );

HL = ( ( Z > Ref( Z, -1 ) AND Ref( Z, -1 ) < Ref( Z, -2 ) ) AND (Trough( Z, q, 1 ) > Trough( Z, q, 2 ) ) );

LL = ( ( Z > Ref( Z, -1 ) AND Ref( Z, -1 ) < Ref( Z, -2 ) ) AND (Trough( Z, q, 1 ) < Trough( Z, q, 2 ) ) );

GraphXSpace = 5;

dist = 0.5 * ATR( 20 );

for ( i = 0; i < BarCount; i++ )

{

if ( HH[i] )

PlotText( \"HH\", i, H[ i ] + dist[i], colorRed );

if ( LH[i] )

PlotText( \"LH\", i, H[ i ] + dist[i], colorRed );

if ( HL[i] )

PlotText( \"HL\", i, L[ i ] - dist[i], colorBrightGreen );

if ( LL[i] )

PlotText( \"LL\", i, L[ i ] - dist[i], colorBrightGreen );

}

Filter=HH OR HL OR LH OR LL;

AddColumn(RSI(2),\"RSI\",1.2);

AddColumn(Close,\"PRICE\",1.2);

AddColumn(HH,\"SHORT\");

AddColumn(LH,\"LH\");

AddColumn(HL,\"HL\");

AddColumn(LL,\"COVER\");

AddColumn(V,\"volume\",1.0);

_SECTION_END();

_SECTION_BEGIN( \"Price\" );

SetChartOptions( 0, chartShowDates | chartShowArrows | chartLogarithmic | chartWrapTitle );

_N( Title = StrFormat( \"{{NAME}} - \" + SectorID( 1 ) + \" - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol \" + WriteVal( V, 1.0 ) + \" {{VALUES}}\", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ) );

Plot( C, \"Close\", colorRose, styleCandle | styleNoTitle | ParamStyle( \"Style\" ) | GetPriceStyle() );

_SECTION_END();

Coding is simple, please quote best possible price and approx time required

[URL=[url removed, login to view]][IMG=[url removed, login to view]][/IMG][/URL]

Skills: C Programming, C# Programming, C++ Programming, Financial Research

See more: want to create a chart, programming in r, peak 10, f sharp programming, create a line plot, zig, vol, short r programming, ROC, R and R , q-v, programming R, h and h, amibroker afl, afl, afl coding, draw line amibroker afl, line chart png, chart line png, filter https, open close url, amibroker afl code programming, volume points, plot values time, eod amibroker

About the Employer:
( 6 reviews ) Ichalkaranji, India

Project ID: #5352215

2 freelancers are bidding on average ₹1500 for this job

Galaxy1988

I saw your spec.I figure I have full ability to complete this [url removed, login to view] talk more now.Reguards.

₹1500 INR in 3 days
(1 Review)
0.0
metacoders

Hello, consider it done. how far the lines should appear? 5 bars or 10 bars to the right? can deliver you the afl instantly if you give this project to me.

₹1500 INR in 0 days
(0 Reviews)
0.0