PureBytes Links
Trading Reference Links
|
Bruce,
I'm happy to use IsNull() and "move on" <g>. Thanks for reminding me of that one.
Very nice article! Thanks kindly for wrapping it up yesterday and posting the link in response to my question. (The parts about GetChartID() and SetBarsRequired() were as timely as the rest!)
Cheers!
--- In amibroker@xxxxxxxxxxxxxxx, "Bruce" <brucer@xxx> wrote:
>
> Progster -
>
> I've seen this before, and it is best left to TJ to explain why. I've
> just used the IsNull() function and moved on.
>
> if ( IsNull( StaticVarGet( "passcount" ) ) )
> StaticVarSet( "passcount", 1 );
>
> BTW, I went ahead and finished the article off. I know you get the
> idea, but it may be of help to others who run into similar problems.
> Sorry for the long URL - gotta fix that soon -
>
>
> <Progster%20-%20%20I%27ve%20seen%20this%20before,%20and%20it%20is%20best\
> %20left%20to%20TJ%20to%20explain%20why.%20%20I%27ve%20just%20used%20the%\
> 20IsNull%28%29%20function%20and%20moved%20on.%20%20if%20%28%20IsNull%28%\
> 20StaticVarGet%28%20>
> http://www.amibrokeru.com/FreeLibrary/FreeArticles/tabid/63/articleType/\
> ArticleView/articleId/115/Indicator-Cache-ndash-Dealing-with-Lengthy-Ind\
> icator-Re-Calculations.aspx
>
> -- Bruce
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "progster01" <progster@> wrote:
> >
> >
> >
> >
> > Jules and Bruce,
> >
> > Thank you both for your comments and suggestions. I'm sure I'll be
> able to achieve improvement by working in the indicated directions.
> >
> > I'll definitely look forward to your article, Bruce, whenever it is
> ready.
> >
> > Thinking of what's been said, I'd like to detect the first pass thru
> the code (vs. subsequent passes).
> >
> > This compiles, but doesn't work:
> >
> > if( StaticVarGet("PassCount") == Null ){ StaticVarSet( "PassCount", 1
> ); }
> > else StaticVarSet( "PassCount", StaticVarGet("PassCount") + 1 ) ;
> > _TRACE( "PassCount: " + NumToStr( StaticVarGet("PassCount"), 1.0) ) ;
> >
> > ( _TRACE() reports: PassCount: {EMPTY} on every pass. )
> >
> > I feel sure there must be some simple idiom for doing this. (Perhaps
> I'm having a block-head day!) Suggestions?
> >
> > - Progster
> >
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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:
amibroker-digest@xxxxxxxxxxxxxxx
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/
|