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

[amibroker] Re: AB Performance question



PureBytes Links

Trading Reference Links

Sorry - part of the question is obviously- if the if() is false, does 
AB do anything/spend any time on the statements within the true 
clause.  I would think it wouldn't; correct?

--- In amibroker@xxxxxxxxxxxxxxx, "monitorit" <monitorit@xxx> wrote:
>
> Is there any significant performance penalty for using the same 
> insert linked afl into a 2 and 5 min window vs running the desired 
> code insert linked 2 different files giveing the same results? 
> By pseuodcode Im asking:
> *******************************
> //file for 2&5 min windows
> _section_begin("aflBoth")
> 
> common calculationsToBoth
> 
> if (Interval(0)<121)
> {  ...large number of calculations2min  }
> 
> if (Interval(0)>299)
> {  ...large number of calculations5min  }
> _section_end();
> 
> *************VERSUS**************
> 
> //file for 2min window
> _section_begin("afl2") 
> calculationsCommonToBoth
> ...large number of calculations2min
> _section_end();
> 
> 
> //file for 5min window
> _section_begin("afl5") 
> calculationsCommonToBoth
> ...large number of calculations5min
> _section_end();
>



------------------------------------

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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