Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I am trying to code signals based on my own indicator, but the indicators are overlapping throughout on the chart. The formula for them is totally different but the values are coming same. Also there is no problem in compiling the afl. Can somebody point out the error in my code?
i dont have a clue what afl is but i can tell you what is happening with your logic....
the then part of your if statement is never executed.
Only the else branch is executed.
Hence Value 1 always equals the close.
Therefore vClose - value1 equals zero in the last line.....
Therefore smooth * ( vClose - value1)); goes to zero and you are left with.....
Vopen = ((value1)
and since value 1 equals the close....denoted as vClose....
Vopen equals vClose
so what the heck is afl?
Look at your raw data going into this logic and walk thru your code with the raw data.
afl is amibroker formula language, used for coding algorithm which can run in amibroker trading platform.
thanks for your input. i will trying doing what you suggested.
Are you trying to translate from a different language?
Are you trying to create Heikin Ashi?
You should provide more info on what you are trying to achieve because right now your code doesn't make much sense.
Yes I am trying to create Heikin Ashi. for that i need to get the modified prices for which I am writing the mentioned afl. I coded it in easy language for multicharts but not able to go on with afl because of this glitch.
You have 300 posts and are member since 2011 and you are still unable to look at the link at the top which is clearly showing to you that you are in AmiBroker discussion area?