Thanks. I do not believe that this code will work.
Check the follwing lines :
// Only
interested in the visible bars lastbar = Status("lastvisible barindex" ) -
3; startBar =
Status("firstvisibl
ebarindex"
);
This should be :
// Only interested in
the visible bars lastbar = Status("lastvisiblebarindex" ) - 3; startBar = Status("firstvisiblebarindex"
);
Also see help file :
"firstvisiblebar", "lastvisiblebar", "firstvisiblebarindex",
"lastvisiblebarindex" - return bar number or bar index of first/last visible
bar. Available in indicator mode only.
In your version of the code, the AFL will never run
the loop because both lastbare and startbar variables are empty. That's the
reason why nothing happens. You're only getting the price. But when running the AFL with the above mentioned modification
you're getting following error message :
hello booker_1324 , The code you given is working fine but I can't
understand how does it find the wolf wave? as there is no filter line in
the code. please elaborate on this matter. waiting for ur
reply Regards Debdulal
Bhattacharyya
__._,_.___
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com