Skip to main content

Buy & TD Clone & TGL for Amibroker (AFL)

morgen over 15 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 18)
  • Tags:
    trading system, amibroker

A clone version of the Demark Trendlines produced from connecting two deman or two supply points. Indicator includes parametrization that allows selection of the level, choice of the trendline having extensions and ability to request display of the Demand/Supply points used to create the trendline. Indicator also includes ability to display the breakout qualifiers. Code based on description provided in the Demark book “New Science of Technical Analysis”.

Includes buy and sell points.

Screenshots

You cannot view the code for the following reasons:
  • You must be a member and have contributed at least 1 indicator

40 comments

over 15 years ago

sir, am face the below problem,
pls clarify..
SetBarFillColor (IIf(downbar,colorRed, IIf(upbar,colorBrightGreen,colorTan ) ));
..
thx

3. morgen
over 15 years ago

It’s about trend.
When upbar = C >= Ref( H, -1 ), the candle is filled with brightgreen, respectively tan color.
When downbar = C < Ref( L, -1 ), the candle is filled with red color.

about 15 years ago

Very Good Work. But formula is different from its Screen Shot. Buying & sell arrow (Up/Down) are missing. Please insert Buy/Sell arrow/triangle if possible.

8. morgen
about 15 years ago

Buying & sell arrow (Up/Down) are in the formula! at

PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorBlue,0,L,Offset=-10);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,H,Offset=-10);

If you want “Triangle”, write it instead “Arrow”.

10. halfman
about 15 years ago

@tigernifty

Change this line :
SetBarFillColor (IIf(downbar,colorRed,IIf(upbar,colorBrightGreen,colorTan ) )

with :

SetBarFillColor =IIf(downbar,colorRed,IIf(upbar,colorBrightGreen,colorTan ) )

I hope it’s gonna work now.

almost 8 years ago

Buying & sell arrow (Up/Down) are in the formula! at

PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorBlue,0,L,Offset=-10);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,H,Offset=-10);

If you want “Triangle”, write it instead “Arrow”.

Comment hidden — Show
Comment hidden — Show
Comment hidden — Show
45. Mr Tran
about 3 years ago

I don’t see this code. Can someone copy and resend it here, please. Thank many!

Comment hidden — Show

Leave Comment

Please login here to leave a comment.