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

Re: [amibroker] Bar concepts and formula execution help



PureBytes Links

Trading Reference Links

Hello,

First please read "Understanding AFL":
http://www.amibroker.com/guide/h_understandafl.html

Shortly in Tradestation your code is executed NumberOfBars times.
In AFL your code is executed ONCE only (hence it is a LOT faster)
immediatelly for all bars (via array processing).

You can however calculate on bar-by-bar basis if you want in 
AFL using 'for' loop

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "clarusinnovation" <mfishburn@xxxxxxxxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, January 24, 2006 4:59 AM
Subject: [amibroker] Bar concepts and formula execution help


> Hi,
> 
> I am struggling with the concepts of bars. I am a Tradestation convert 
> to Ami. In Tradestation when I applied a new indicator, or system, the 
> code would execute from Bar 0 to the latest bar (say 1500). Each bar 
> would be like a new bar until bar 1500 is reached. How does this work 
> in Ami.
> 
> When I apply an indicator in Ami, things get plotted, but I don't get 
> how the bar index is being used. I have put up DebugView and have 
> tried to _TRACE with print outs, but it doesn't start from bar 0 to 
> the latest bar.... 
> 
> I need to understand that concept.
> 
> I need to have a buy come on once in a bar. sometimes my conditions go 
> on or off in the bar and the arrow shows up and then disappears. I 
> can't have that if I have transmitted the order and it got filled. So, 
> if buy comes on, I want to leave it on until I get a new bar and then 
> it is a new ball game.
> 
> I know you can help me with the indicator, but please help me think 
> and figure out how this thing works.
> 
> Thanks a lot.
> 
> Mark
> 
> 
> 
> 
> 
> 
> 
> 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
> 
> 
> 
> 
> 
> 
> 
>


------------------------ 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/