Bruce,
You Should NOT cut-n-paste code between the includes, or
any other programs.
You are making it too complicated, Just copy the files intact, you can have
many different include files in your include folder. Include programs are
labeled as such and should be copied into your default include folder. Each
demo program should be copied into an indicator Formula window.
The posts are "as developed" hence the last
Include and demo code would provide the best solutions. for this reason code
from different posts CANNOT be mixed. Always use the last one.
I included one of each type of button and required functions in the last
post (Button
Rotate), they are:
ButtonColumnBegin
ButtonHeader
ButtonText
ButtonRotate
ButtonTrigger
ButtonColumnEnd
Each of the indented button functions can be repeated between the Begin and
End of the column to give you additional buttons.
The entire button column, including Begin and End functions, can be repeated
to create button panels with as many button columns as you need.
best regards,
herman
For tips on developing Real-Time Auto-Trading systems visit:
http://www.amibroker.org/userkb/
Wednesday, March 12, 2008, 6:29:33 AM, you wrote:
> Hi Herman,
>
> I don’t know what I am doing wrong, I have been
messing with this
> for 4 .5 hours straight and I still can’t get it to
work.
>
> Bear with me, this is the only way I can think of
explaining what I am doing.
>
> Starting with the code in the UKB “A Basic Messaging
Panel” there
> is an include file MessagePanelInclude.afl
which I copied to my
> include folder in Amibroker . Then there are 2 files,
the first one
> has only 25 columns and produces the 2 column message
panel, the
> long one has 84 columns and creates the multi-panel
layouts.
>
> So I open up the formula editor and copy and paste
the 84 column
> file and hit “apply” in the editor and I see the text
cells in chart
> pane.. I see the picture as shown in the UKB so far
so good. I also
> read that the cells are not mouse-click sensitive so
I don’t expect
> anything to happen when I click on them. Everything
fine so far.
>
> Next I copy the code in the UKB “Command Buttons
(Trigger type)
> ControlPanelInclude-001.afl that also goes in my
include file. Then
> I copy and paste the 50 column (whose first line is
#include
> <ControlPanelInclude-001.afl>) and add it to
the bottom of the 84
> column AFL file in the chart pane. That where I get
errors.
>
> Oh I get a headache just trying to explain it. So to
make this
> simple, forgetting the fact that I shouldn’t be
allowed within a 10
> feet of a computer, what files go where.
>
> Do all the include files go only to the include
folder in
> Amibroker? Or do they also go somewhere else?
>
> Do all of the files that reference the include files
get added from
> oldest to newest in one long file that then gets
applied from the
> formula editor into a chart pane. Speaking of pain, I
am at my wits
> end with this. My kingdom for a “AFL for Dummies
book.” Come on
> Howard, hurry, the fate of the free world rests in
your hands.
>
> I have printed out all of the files onto paper and
will take a look
> to see if I can see if anything jumps out at
me.
>
> I am a carpenter by trade and until I get a button to
do something
> , anything, I am totally lost. Once I get a response
from a button
> then I can hammer, pry, saw, shave, grind, putty and
glue it back
> together and start figuring it out.
>
> Sorry for all of the extra yakking, just getting a
little giddy with all the fun I am having.
>
> Thanks,
>
> Bruce
>
>
>
>
>
> Is this what I am supposed to do?
>
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Herman
> Sent: Tuesday, March 11, 2008 10:59 PM
> To: KBH
> Subject: Re: [amibroker] AFL editor
>
> In what way? Works fine for me.
>
> Highlight the code, copy and past into the formula
editor.
>
> best regards,
> herman
>
> For tips on developing Real-Time Auto-Trading systems
visit:
> http://www.amibroker.org/userkb/
>
> Wednesday, March 12, 2008, 4:53:34 AM, you wrote:
>
> Seem to be having trouble when I copy code from UKB
to editor window, is there a better way?
>
> thanks
>
>
>
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.518 / Virus Database: 269.21.7/1325 -
Release Date: 3/11/2008 1:41 PM
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.518 / Virus Database: 269.21.7/1325 -
Release Date: 3/11/2008 1:41 PM
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.518 / Virus Database: 269.21.7/1325 -
Release Date: 3/11/2008 1:41 PM