Monday – Friday : 9:00 AM – 6:30 PM

Debu Ratio

Improve your risk management with the Debu Ratio AFL code for Amibroker. This code, complemented by the Amibroker data feed, allows traders to assess risk-reward ratios more effectively. Whether you’re a conservative investor or an active trader, the Debu Ratio AFL code enhances your ability to make informed decisions based on risk assessment. Download and integrate this code into your Amibroker platform to refine your risk management strategy.


//Title="this is for automatic wrapping of title text 
_N(Title = StrFormat("{{NAME}} - {{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 )) ));

// This part will plot the EMA value of 5days close and 6 days open price

EMAstyle=ParamStyle("MAType",styleLine,maskAll ); 
Plot(EMA(Close,5), "EMA(CLOSE_5)", colorGreen, EMAstyle, Null, Null ); 
Plot(EMA(O,6), "EMA(OPEN_6)", colorRed, EMAstyle, Null, Null ); 

// This part will plot Closing price with barstyle choosen by user

ChartStyl=ParamStyle("Chart Type", styleBar,maskAll );
Chartcolor=ParamColor("Chart Colour",maskAll); 
//Plot(Close,"Closing price with5,6 EMA",Chartcolor,ChartStyl);

// This part will find the buy and sell point in the chart
Buy= MACD(12,26)>=Signal(12,26,9);
//Buy=Cross(EMA(open,6),EMA(close,5)); AND MACD(12,26)>=Signal(12,26,9);
Sell=//Cross(EMA(Open,6),EMA(Close,5))AND //

Open chat
Hi, how can I help you?