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

Re: [amibroker] Newbie question



PureBytes Links

Trading Reference Links

Steve
For a starter at AFL seems like you want to jump in te deep end. I
would suggest you start with one item at a time rather than try to
code everything at first attempt

to define the value of a variable just use
VariableName = 10;
The value will not change throughout the entire AFL, unless you give
it a different value later on within the AFL
You may only need to use the function function if you really need to
define a new custom function for multiple uses with different inputs

To use an array value at a certain time (or when any other specific
occurence is true) use the function Valuewhen

Other than that am confused on what your problems are.

--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


On 9/24/05, sibir61 <sibir61@xxxxxxxxx> wrote:
> 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 --------------------~--> 
Put more honey in your pocket. (money matters made easy).
http://us.click.yahoo.com/r7D80C/dlQLAA/cosFAA/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/