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

[amibroker] Newbie question



PureBytes Links

Trading Reference Links

Hi there,

I am a newbie with a system, so I have a couple of questions about 
coding up price formation based trading system. I need to set up global 
variables that are global not for a current bar, but for a whole system 
and/or for a certain time period: I would like to calculate buy stop 
price at 10AM everyday once and use that number for the rest of the 
day. I was not able to find any meaningful way to do so - the UserGuide 
refers to global variables vs local variables within functions - still 
for 1 bar, regardless of the timeframe. I, however, need global 
variables defined within the entire execution cycle. How do I do that?

More detailed example: I prefilter stocks based on previous day's ATR 
action. If it satisfies my condition then I sit tight the next day till 
10AM when I determine today's price target based on H/L values. Then I 
combine the two conditions/prices to determine the entry buy stop. This 
is done just once for a day - not on every bar. Profit target is also 
just an entry price + certain range = fixed target during the day. I am 
having difficulty convincing Amibroker to store those values and not 
recalculate them on every bar. I trade on a 1 min bar time range.

Steve









------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/