Simple Coding Help - No Promise.

Dear Amibroker Friends,

I need to have AFL coding for different timeframes shown on 5 minutes chart..

In 5 minutes chart i want to see horizontal lines showing the levels of ;

Weekly time Frame's SMA20 and Wilders200;

Monthly Time Frame's SMA20 and Wilders200;

I want to see 4 horizontal(left and right extended) lines indicating the levels of weekly and monthly timeframes moving average levels shown above..But i want to see these as horizontal lines (NOT as moving average curve) on 5 minutes chart.

When 5 minutes chart is updated these horizontal lines must be automatically updated accordingly..

Can you please help me to find this AFL?
 

devadas

Well-Known Member
Hi,
Does anyone have a

1) Demark's Sequential countdown AFL with exploration / scan.Also it should show 1-13 markings

2) Demark's TD Combo AFL with scan and 1-13 markings

Regards
 

Nehal_s143

Well-Known Member
Hi,
Does anyone have a

1) Demark's Sequential countdown AFL with exploration / scan.Also it should show 1-13 markings

2) Demark's TD Combo AFL with scan and 1-13 markings

Regards
I have Demark's this afl, check if this is what you are looking

_SECTION_BEGIN("demark from ami library");


// The DeMarker indicator is an attempt to overcome the shortcomings of classical overbought / oversold indicators.
//The DeMarker Indicator identifies potential price bottoms and tops.
//It accomplishes this by making price comparisons from one bar to the next and measuring the level of price demand.
//For more information please check AmiBroker Tips newsletter <a href="http://www.amibroker.com/newsletter/02-2000.html">Issue 2/2000</a>


/*
** Tom Demark's DeMarker Indicator
** AFL Implementation by Tomasz Janeczko
*/


MaxGraph=3;

highm = IIf( H > Ref( H, -1 ), H - Ref( H, - 1), 0 );
lowm = IIf( L < Ref( L, -1 ), Ref( L, - 1 ) - L, 0 );

DeMarker = 100 * Sum( highm, 13 )/( Sum( lowm, 13 ) + Sum( highm, 13 ) );

Graph0 = DeMarker;

Plot(80,"",colorRed,styleLine+styleDots,maskAll);
Plot(20,"",colorGreen,styleLine+styleDots,maskAll);


Buy = DeMarker<20; Sell = DeMarker>80;

buyshape = Buy * shapeUpArrow; SellShape = Sell * shapeDownArrow;
PlotShapes(BuyShape, colorGreen, 0); PlotShapes(SellShape, colorRed, 0);


Filter=Buy OR Sell;
AddColumn( Buy, "Buy", 1);
AddColumn(Sell, "Sell", 1);
AddColumn(Close,"Close",1.2);
AddColumn(Volume,"Volume",1.0);

Title=EncodeColor( colorDarkTeal ) + " - {{INTERVAL}} {{DATE}}: "+">>>>"+Name() +">>>>"+ " DeMark from thomasz =="+ EncodeColor( colorGreen )+WriteVal(( Graph0 ));

ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
SetChartBkColor(ParamColor("Outer panel color ",colorWhite)); // color of outer border
SetChartBkGradientFill( ParamColor("Inner panel color upper half",colorPink),ParamColor("Inner panel color lower half",colorCustom1)); // color of inner panel

// The DeMarker indicator is an attempt to overcome the shortcomings of classical overbought / oversold indicators.
// The DeMarker Indicator identifies potential price bottoms and tops.
//It accomplishes this by making price comparisons from one bar to the next and measuring the level of price demand.
//DeMarker should be interpreted as other overbought / oversold indicators such as RSI with the levels of 30 and 70.
//Compared to RSI it is smoother but still able to detect tops and bottoms a little bit better.
_SECTION_END();
 

devadas

Well-Known Member
I have Demark's this afl, check if this is what you are looking

_SECTION_BEGIN("demark from ami library");


// The DeMarker indicator is an attempt to overcome the shortcomings of classical overbought / oversold indicators.
//The DeMarker Indicator identifies potential price bottoms and tops.
//It accomplishes this by making price comparisons from one bar to the next and measuring the level of price demand.
//For more information please check AmiBroker Tips newsletter <a href="http://www.amibroker.com/newsletter/02-2000.html">Issue 2/2000</a>


/*
** Tom Demark's DeMarker Indicator
** AFL Implementation by Tomasz Janeczko
*/


MaxGraph=3;

highm = IIf( H > Ref( H, -1 ), H - Ref( H, - 1), 0 );
lowm = IIf( L < Ref( L, -1 ), Ref( L, - 1 ) - L, 0 );

DeMarker = 100 * Sum( highm, 13 )/( Sum( lowm, 13 ) + Sum( highm, 13 ) );

Graph0 = DeMarker;

Plot(80,"",colorRed,styleLine+styleDots,maskAll);
Plot(20,"",colorGreen,styleLine+styleDots,maskAll);


Buy = DeMarker<20; Sell = DeMarker>80;

buyshape = Buy * shapeUpArrow; SellShape = Sell * shapeDownArrow;
PlotShapes(BuyShape, colorGreen, 0); PlotShapes(SellShape, colorRed, 0);


Filter=Buy OR Sell;
AddColumn( Buy, "Buy", 1);
AddColumn(Sell, "Sell", 1);
AddColumn(Close,"Close",1.2);
AddColumn(Volume,"Volume",1.0);

Title=EncodeColor( colorDarkTeal ) + " - {{INTERVAL}} {{DATE}}: "+">>>>"+Name() +">>>>"+ " DeMark from thomasz =="+ EncodeColor( colorGreen )+WriteVal(( Graph0 ));

ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
SetChartBkColor(ParamColor("Outer panel color ",colorWhite)); // color of outer border
SetChartBkGradientFill( ParamColor("Inner panel color upper half",colorPink),ParamColor("Inner panel color lower half",colorCustom1)); // color of inner panel

// The DeMarker indicator is an attempt to overcome the shortcomings of classical overbought / oversold indicators.
// The DeMarker Indicator identifies potential price bottoms and tops.
//It accomplishes this by making price comparisons from one bar to the next and measuring the level of price demand.
//DeMarker should be interpreted as other overbought / oversold indicators such as RSI with the levels of 30 and 70.
//Compared to RSI it is smoother but still able to detect tops and bottoms a little bit better.
_SECTION_END();

Nehal_s143 Thankyou very much for your quick response.I am looking for sequentials and combo.What you have given is an indicator.

By the way thanks once again

Regards
 
Hi all,

I need a little help.
I have written some rules(buy sell logic) and i want that after 3:00 if there is any signal according to the rules that should not be traded.
Is this possible?

Thanks in advance
 

xsis

Active Member
if amibroker were to support bid/ask, what could be the code of cumulative delta volume in amibroker?

pls help as its just for academic purposes!
 

Nehal_s143

Well-Known Member
Hi all,

I need a little help.
I have written some rules(buy sell logic) and i want that after 3:00 if there is any signal according to the rules that should not be traded.
Is this possible?

Thanks in advance
Yes you need to use time value, and set trading time say from 9.30 to 3.00 signal will generate in this time frame only
 

Similar threads