Thread: Alpari
View Single Post
  #15 (permalink)  
Old 12-08-2005, 09:39 PM
nina's Avatar
nina nina is offline
Senior Member
 
Join Date: Nov 2005
Location: Barcelona
Posts: 2,376
nina is on a distinguished road
Quote:
Originally Posted by bill3002
Nina,
Not 100% sure but try changing code to this:

Add: extern int maxbars=500;
( may have to lower maxbars depending on puter`s processor)
--------------------------------------------------------
Change the following:

for(shift=bars-1;shift>=0;shift--)
to:
for(shift=maxbars-1;shift>=0;shift--)
--------------------------------------------------------
if (shift==bars-1-PeriodWATR) WATRmin=WATR0;
to:
if (shift==maxbars-1-PeriodWATR) WATRmin=WATR0;
Thanks.

I do not how to do it.

Nina
Reply With Quote