Help needed in AFL functionality

bvpraveen

Active Member
#1
Hi,

How to use one AFL inside another AFL?

I need to include the trailing SL afl into another AFL, so that i needn't drag and drop the TrailingSL.afl each and every time I use the second AFL.

Thanks,
Praveen.
 

bvpraveen

Active Member
#2
Hi,

Got the answer. Its using #include.

Sorry..I'm not able to delete this thread started by me. Is it we cant delete the thread?

Praveen.
 
#3
Hello,

Can anyone please tell me how to get the exact price at the MA crossover point in AFL? I need this info in one of my AFL.

Please see the attached chart for better understanding.

Thanks,
Praveen.
 

Attachments

tanewbie

Well-Known Member
#4
HI Praveen

You need statistical formula to calculate the price at which the crossovers will happen.
I use 3ema and 5ema. So I give you the formula for the crossover.

r=EMA(C,3);
a=EMA(C,5);
g=(Ref(a,-1)*(1-.3333)-Ref(r,-1)*(1-.5))/(.5-.3333);


here g is the crossvover point.

if u replace for eg 5 ema with 13 ema then 5 should be repalced with 13 and .3333 shd be replced with 2/14.

Hope the above is clear.
cheers
 

SGM

Active Member
#9
Hello Vish

Thanks for explaining how to find the next trigger (price target) for the crossover. Now I can calculate crossover for EMA(C,5) and EMA(C,13).

Can you help me in finding how to get crossover point for this

EMA(C,13) and EMA(EMA(C,13), 13);


Warm Regards
Sanjay
 

Similar threads