----- Original Message -----
Sent: Tuesday, February 28, 2006 5:47
PM
Subject: RE: [amibroker] Programming
advice requested
If
you haven't done so, have a look at the PlotText(), this allows you to
place text anywhere on the chart. It gives an example of how to display the
words "Buy" and "Sell" and price next to the bar. Also look at the
VarSetText() and VarGetText().
To
add text to the selected or lastbar you would use the SelectedValue(
barIndex()) or LastValue(BarIndex()) as the name for your StaticVar in
which you store the info you want to show. When looping you read the
barindex() for each bar, set BI = barIndex() and in your loop use BI[i] to
look for a non-empty static variable.
At
the start the system can read a simple text file and transfer them to
StaticVar. At the closing of the system you can use a ParamTrigger to
load and save the parameters to a simple text file.
Hope
this sketchy info helps...
herman
I would like to add something to my trading
that I have not yet found to be available. Basically, I'd like to be able to write my own
information onto a bar in real time (for instance a manually-entered trade
entry or exit), and to do this from the chart
window (parameters menu). This information should remain
available in a hard disk file when AB closes.
I'm
thinking I need to create a dynamic array table of some sort that also gets
written to disk and which contains both the date/time code and the new
information. I know that there is the OSAKA plugin which seems to
do something like this, and perhaps that is my best
option? Alternatively, I could write to a foreign ticker, but I'm
not sure that's possible from the chart menu.
Any advice appreciated....
thanks
chuck