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 : Metastock 6.0 for Window -- Ignore unavailable to you. Want to Upgrade?


To: Craig DeHaan who wrote (2146)6/26/1998 4:55:00 PM
From: bdog  Respond to of 4056
 
Craig, you guys are awesome! Dude! Thanks. I try to work with that.

I'm trying to write an indicator for David J's Magnets. But alas, I have such a simple mind. Sigh.

I would like to test for a condition from the beginning of a chart to the end. As each condition tests, a horizontal line is drawn, kept and not tested for again. I was going to start with a finite # of lines, let's say 7.

Mtest1 - mtest7 variables would start with the value of 0 and would get a magnet assignment and the indicator would continue until mtest7 had a value >0 and stop.

Something like do indicator routine while sum(mtest7) = 0 Only a total of 7 lines would be drawn or better yet, only the amount of lines for which the condition exists.

I'm sure i'm approaching this wrong as I have no formal training in computer coding and logic. But it's fun!

It is still in it's infancy and I might start on it again as I gave up when I couldn't modify a variable in if statement.

Thank you kindly for the answer.
bdog