PureBytes Links
Trading Reference Links
|
Thanks for jumping in to help.
I can write very simple formulas in metastock, but This
is something I was looking for help on.
THe sentence is part of a formula I copied from some website
a few years ago. It uses the prev function. Because the formula
function "prev" references itself, it "cheats".
It is part of a binary formula. When the market switches above a
certain percent gain, or loss, the binary switches. But due to
the "prev" function it shows it switched a couple of days before it
actually did. I hope I am not making this more confusing to you.
I would like to use the close, like ref(c,-1), but when I tried
it, I knew I screwed up something, as it doesn't work. I tried this ,
below:
If((c*.97)>ref(c,-1)*.97,if((c*1.03)<ref(c,-1)*1.03,ref(c,-1));
The above doesn't work. Can you fix it?
Thanks,
Fred
--- In equismetastock@xxxxxxxxxxxxxxx, "bellamy_29m"
<bellamy_29m@xxx> wrote:
>
> The subject has been corrected. What next?
>
>
> > Could anyone please help me with this?
> OK.. I'll give it a go, if I can understand the problem...
>
> > The formula below uses the prev function.
> Yes. Yes it does.
>
> > Can you rewrite the exact sentence below.
> Yes I can...
>
> If((C*.97)>PREV,C*.97,If((C*1.03)<PREV,C*1.03,PREV))
>
> > I would like to use another function, like the close.
> Got me stumped. It already uses the close and three PREVs (just to
> keep the CPU warm!)
>
> > The solution should give the exact same results.
> If((C*.97)>PREV,C*.97,If((C*1.03)<PREV,C*1.03,PREV))
>
> gives exactly the same results!
>
>
> Fred,
> What EXACTLY are you asking for? Programmers, like computers,
respond
> to explicit sets of instructions, they interpret these instructions
> into specific code which can be executed. If you are not explicit
> with your requests, the results may not be as you expect. Although
> your request might make sense to you, it must make sense to the
people
> from whom you are asking help. Examples are often helpful.
>
> I might be tired (too much Fourier analysis and too much wine, but
its
> hot here!) and misunderstood your request, but then again, is that
my
> fault or yours!
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/BefplB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|