[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Programming advice requested



PureBytes Links

Trading Reference Links

That's not quite what I need.
 
Say my guru tells me to buy at 11:12 tomorrow AM.  I'd like to mark that bar with a buy, and remember that it is a buy.  So i'd like to be able, on the fly, to mark a bar with a signal and perhaps a price, and to save it for later use.
 
Thanks
 
chuck
 
 
 
----- 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 
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On Behalf Of cstrader
Sent: Tuesday, February 28, 2006 4:34 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Programming advice requested

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
 
 
 


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