SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : TA-Quotes Plus -- Ignore unavailable to you. Want to Upgrade?


To: Craig DeHaan who wrote (8752)2/24/1999 12:59:00 AM
From: Bob Jagow  Read Replies (1) | Respond to of 11149
 
Craig,
If by "I need their current price status to measure results", you
just want close(0) added, sounds fair to me.
The BT part is pasted below. -Bob
-----
if tbar < 0 then
maxpostCl := max(0, tbar + 1, cl); // from next to bar 0
maxGain:= (maxpostCl - close(maxCCIbar))/close(maxCCIbar);
for i = tbar + 1 to 0 do //find max and exit the loop
if close(i) >= maxpostCl then
maxpostClbar := i;
i := 0;
endif;
next i;
println",",maxpostCl:6:2,",",100*maxGain:5:1,",",date(maxClbar);
else
println;
endif;