Please help in converting the meta code in afl

KelvinHand

Well-Known Member
#11
hello Kelvinhand,

u have posted the address of Niftyspecialist.. its paid one.

Can anyone paste the TDF metastock formula with moving averages??


thanx you..

waiting for reply.
Try this.

1. Find out the symbol & timeframe. Counted 7 tick between date, likely hourly chart
2. First adjust the bollinger band from MA20, Std 0.5/1.0 to 1.5, to match it.
3. For the first MA below the BBMid, likely SimpleMA, adjust from 13 to 5, see match
4. For the longer term MA, adjust from 30 to 60, see match


I tested on the Forex on USDJPY and USDCHF as stated in the http://niftyspecialist.com
Here the closer match:
- BBand is 20 1.0
- The TDI Osc resemble with BW Awesome Oscillator

So TDI Osc. could actually AO Osc.

The Buy/Sell Signal, look like:
Buy when cross upper band
Sell when cross below lowerband
 
Last edited:
#12
Try this.

1. Find out the symbol & timeframe. Counted 7 tick between date, likely hourly chart
2. First adjust the bollinger band from MA20, Std 0.5/1.0 to 1.5, to match it.
3. For the first MA below the BBMid, likely SimpleMA, adjust from 13 to 5, see match
4. For the longer term MA, adjust from 30 to 60, see match


I tested on the Forex on USDJPY and USDCHF as stated in the http://niftyspecialist.com
Here the closer match:
- BBand is 20 1.0
- The TDI Osc resemble with BW Awesome Oscillator

So TDI Osc. could actually AO Osc.

The Buy/Sell Signal, look like:
Buy when cross upper band
Sell when cross below lowerband


Hello Kelvinhand,

Thanx you for ur efforts...

Not able to understand your formula Language.

I would be really thanxful if u could Paste the above language in AFL Form.

i m waiting for ur AFL.

thanx you
 
Last edited:

KelvinHand

Well-Known Member
#15
Kelvin hi
can we use STARC Band (20,14) in place of BBand along with the AO Osc?
is it (Starc Band) a good alternative of the BBand in this case?

if so the trading system can be replicated like the TDSF system.

rgds
subroto
Whatever Band include live band also can. No bend then curve - use moving average also can. No indicators, naked yourself also can. as long as suit you style and need.

Whichever method, if you don't have Trend, Price Action, Support & Resistance as your key concept, then you will feel any thing will not work well.
 
Last edited:

KelvinHand

Well-Known Member
#17
Hi,

Did any one got the afl for this chart?

Please i need it.

Thanks,
Sangeetha

Here the comparison:
from http://niftyspecialist.com/T-D-F--Manual.php with
Chartnexus charting.






Here i let you see clearly what the setting of the bollinger band




Post #2, Give you the TDF Index
PHP:
// Trend Direction & Force Index (TDF Index) 
//{TDF Index by Piotr Wojdylo}
// code translated from Metastock to Amibroker and presented as histogram as mentioned in the interpretation
//translated by subroto ~ (sr114), 16.03.2013

SetChartBkGradientFill( ParamColor("BgTop", colorBlack),
ParamColor("BgBottom", colorDarkGrey),ParamColor("TitleBack",colorGrey40) ); 
SetChartBkColor(ParamColor("Outer Panel",colorPaleBlue));
SetChartOptions(0,chartShowArrows|chartShowDates);


per=Param("Major MA",5,5,200,10);

mma=EMA(C,per);
smma=EMA(mma,per);

impetmma= mma-Ref(mma,-1);
impetsmma= smma-Ref(smma,-1);

divma=abs(mma-smma);

averimpet=(impetmma+impetsmma)/2;

tdf=(divma^1)*(averimpet^3);
ntdf=tdf/(HHV(abs(tdf),per*3));

Plot(ntdf,"TDF Index ",IIf(tdf>0,colorGreen,colorRed),styleThick);

PlotGrid(0,colorWhite);
Trend Direction and Force Index Ribbon from http://www.wisestocktrader.com/indicators/390-special-kadx-oscillator
PHP:
_SECTION_BEGIN("Trend Direction and Force Index Ribbon");
MMA=EMA(C,15);
SMMA=EMA(MMA,15);
IMPETMMA=MMA - Ref(MMA,-1);
IMPETSMMA=SMMA - Ref(SMMA,-1);
DIVMA= abs(MMA - SMMA);
AVERIMPET= (IMPETMMA+IMPETSMMA)/2;
K1=DIVMA;
K2=AVERIMPET*AVERIMPET*AVERIMPET;
TDF= K1*K2;
NTDF1=EMA(TDF/HHV(abs(TDF),15*3),3)*100;
NTDF=EMA(NTDF1,3);
Bull_Trend=NTDF>4;
Bear_Trend=NTDF<=-4;
Ribbon_kol=IIf(Bull_Trend,colorGreen, IIf(Bear_Trend,colorRed, colorOrange));
Plot(2, "", Ribbon_kol, styleOwnScale|styleArea|styleNoLabel, -0.5,100);
 
_SECTION_END();
So Post #1 was talking this system


Post #18, I stated TDF Oscillator resemble BW Awesome Oscillator, so you can use that.

So you can assemble all these yourself.
 
Last edited:

pala

New Member
#18
Dear Kelvin,

Thanks for your kind reply. I am very happy by seeing the screenshot with brief description the bollinger band works awesome. In that screenshot

Please let me know the MACD(34,5) is like you setup for

Fast EMA = 5
Slow EMA = 34
Signal EMA= 5

please let me know whether these values are correct? otherwise please advice

And simultaneously RSI also we need to refer for the perfect signal?

Does that can be seen for intraday or only perfect for Daily chart?

Hope you help me to be clear... Thanks in advance.

Regards,
Sangeetha
 

pala

New Member
#19
Here the comparison:
from http://niftyspecialist.com/T-D-F--Manual.php with
Chartnexus charting.






Here i let you see clearly what the setting of the bollinger band




Post #2, Give you the TDF Index
PHP:
// Trend Direction & Force Index (TDF Index) 
//{TDF Index by Piotr Wojdylo}
// code translated from Metastock to Amibroker and presented as histogram as mentioned in the interpretation
//translated by subroto ~ (sr114), 16.03.2013

SetChartBkGradientFill( ParamColor("BgTop", colorBlack),
ParamColor("BgBottom", colorDarkGrey),ParamColor("TitleBack",colorGrey40) ); 
SetChartBkColor(ParamColor("Outer Panel",colorPaleBlue));
SetChartOptions(0,chartShowArrows|chartShowDates);


per=Param("Major MA",5,5,200,10);

mma=EMA(C,per);
smma=EMA(mma,per);

impetmma= mma-Ref(mma,-1);
impetsmma= smma-Ref(smma,-1);

divma=abs(mma-smma);

averimpet=(impetmma+impetsmma)/2;

tdf=(divma^1)*(averimpet^3);
ntdf=tdf/(HHV(abs(tdf),per*3));

Plot(ntdf,"TDF Index ",IIf(tdf>0,colorGreen,colorRed),styleThick);

PlotGrid(0,colorWhite);
Trend Direction and Force Index Ribbon from http://www.wisestocktrader.com/indicators/390-special-kadx-oscillator
PHP:
_SECTION_BEGIN("Trend Direction and Force Index Ribbon");
MMA=EMA(C,15);
SMMA=EMA(MMA,15);
IMPETMMA=MMA - Ref(MMA,-1);
IMPETSMMA=SMMA - Ref(SMMA,-1);
DIVMA= abs(MMA - SMMA);
AVERIMPET= (IMPETMMA+IMPETSMMA)/2;
K1=DIVMA;
K2=AVERIMPET*AVERIMPET*AVERIMPET;
TDF= K1*K2;
NTDF1=EMA(TDF/HHV(abs(TDF),15*3),3)*100;
NTDF=EMA(NTDF1,3);
Bull_Trend=NTDF>4;
Bear_Trend=NTDF<=-4;
Ribbon_kol=IIf(Bull_Trend,colorGreen, IIf(Bear_Trend,colorRed, colorOrange));
Plot(2, "", Ribbon_kol, styleOwnScale|styleArea|styleNoLabel, -0.5,100);
 
_SECTION_END();
So Post #1 was talking this system


Post #18, I stated TDF Oscillator resemble BW Awesome Oscillator, so you can use that.

So you can assemble all these yourself.


Hi Sir,

Can I get the afl for the MACD(5,34) and Signal(5)

It would be greatfull if you do so. Thanks in advance

Regards,
Sangeetha
 

Similar threads