FREE, FREE, FREE #includes training manual! Available here for a limited time only.
I have been jumping up and down in this forum lately to attract the attention of newer users to the value of this list. While at times it is not easy to use it is a great add on to the Ami help manual. In recent posts there was discussion about using PerlScript, PG Offline, Outlook or searching this page as a means of using this resource. In the files section of this group I have posted two Word docs showing what can be done by copying and pasting from this list. Refer AFL Reference/include.doc and userdefinedfunction.doc They both go hand in glove to extend the ability of Ami and so are best read together. There are many other good posts on the subjects that I did not #include. I copied anything that contained any unique tip on how to use these features and avoided duplicates. In most cases I left out the questions as the answers are self explanatory. Lech, this is why I told you to search first because you will often get a better answer or save the old hands a reprise^1000000....etc BrianB2. --- In [email protected], "credos_77" <[EMAIL PROTECTED]> wrote: > > I'm asking again about help in a very simple case. As I see, many > people in the group have the same or a similar problem. The problem > is about transferring or using the same constants or values from one > program to another program (.afl) in AmiBroker. I got information > from AB support that I should use function " #include". I did > everything what says the instruction for function "#include" and > still the error occurs. > I would like to somebody from group or AB support to write how it > can be done using very simple example, which can be really helpful > for others AB's users and me. > > For example: > · I create a program with name "PR1", path > C:\ProgramFiles\AmiBroker\Formulas\MyPr\PR1.afl > > · I write code in this program: > Function ind() > { r1 = RSI(10); r2 = RSI(20); return r1/r2; } > > · In Tools -> Preferences -> AFL -> Standard include path - I > pick my path: > C:\ProgramFiles\AmiBroker\Formulas\MyPr > > · Now I create the second program "PR2", path > C:\ProgramFiles\AmiBroker\Formulas\MyPr\PR2.afl > > · I want to use, earlier written in program "PR1" function ind > (), in program "PR2" > > · For example: > I want to multiply "ind()" by "Close" [A = ind()*Close] and after > that draw a plot in "PR2" > > #include <PR1> and what next? > How can I invoke (initialize) "ind()" in order to multiply it and > draw a plot in "PR2"? > > > Thanks for any help > Lech > 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 For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/amibroker/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
