Help please with AFL.

#1
Help please. How in AFL to define percent of change of the price of last transaction for definition of the price of following purchases or sales?
Thanks!
 
#3
It is an example:

price = (C+O)/2;
ind = BarsSince( Buy ); //Attempt to define a bar of last purchase
Buy = Cross(avr_f,avr_s);
Sell = price < Ref(price, -ind) OR price > Ref(price, -ind) + 2.5;

It does not work, but shows idea of use of the price of last transaction.
Excuse for my bad English.
Thanks.
 

hitesh

Active Member
#4
Help please. How in AFL to define percent of change of the price of last transaction for definition of the price of following purchases or sales?
Thanks!
I think the attached AFL has that calculation what you are asking for.
Please go thorugh...
 
Last edited: