[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*****SPAM***** [EquisMetaStock Group] Re: translation help?



PureBytes Links

Trading Reference Links

SPAM: -------------------- Start SpamAssassin results ----------------------
SPAM: This mail is probably spam.  The original message has been altered
SPAM: so you can recognise or block similar unwanted mail in future.
SPAM: See http://spamassassin.org/tag/ for more details.
SPAM: 
SPAM: Content analysis details:   (5.20 hits, 5 required)
SPAM: REFERENCES         (-0.5 points) Has a valid-looking References header
SPAM: FROM_ENDS_IN_NUMS  (0.9 points)  From: ends in numbers
SPAM: COMMENT            (0.8 points)  Found a Comment header
SPAM: USER_AGENT_OE      (0.2 points)  X-Mailer header indicates a non-spam MUA (Outlook Express)
SPAM: TO_BE_REMOVED_REPLY (0.4 points)  BODY: Says: "to be removed, reply via email" or similar
SPAM: SPAM_PHRASE_03_05  (1.1 points)  BODY: Spam phrases score is 03 to 05 (medium)
SPAM:                    [score: 3]
SPAM: MAILTO_TO_SPAM_ADDR (0.7 points)  URI: Includes a link to a likely spammer email address
SPAM: FORGED_HOTMAIL_RCVD (1.5 points)  Forged hotmail.com 'Received:' header found
SPAM: MSG_ID_ADDED_BY_MTA_2 (0.1 points)  'Message-Id' was added by a relay (2)
SPAM: 
SPAM: -------------------- End of SpamAssassin results ---------------------

Hello all,

I'm new to Metastock but would like to convert this indicator into
Tradestation Easy Language.  Any help is appreciated.  Here's the metastock
indicator:

strata:=0.01;
      If(
         O=PREV,
         PREV,
         If(
            ((Ref(O,-1)<PREV)AND (O<PREV)),
            Min(PREV,O*(1+strata/100)),
            If(
               (Ref(O,-1)>PREV) AND (O>PREV),
               Max(PREV,O*(1-strata/100)),
               If(
                  O>PREV,
                  O*(1-strata/100),
                  O*(1+strata/100)
               )
            )
         )
      )

Here's what I think is the close to the Tradestation Easy Language code.
I'm not sure what is getting assigned to Prev though.  Even if you don't
know Easy Language but can put this into English I would appreciate it.

vars: intrabarpersist Strata(.01),  Prev(0), Indicatorvalue(0);

if Open = Indicatorvalue then Indicatorvalue = Open else begin
  if Open < Prev and Open[1] < prev then Indicatorvalue = Minlist(Prev,Open
* (1 + strata/100) else begin
    if Open > prev and Open[1] > Prev then Indicatorvalue =
Maxlist(prev,Open * (1 + strata/100) else begin
      if Open > Prev then Indicatorvalue = Open * (1 - strata/100) else
Indicatorvalue = Open * (1 + strata/100);
  end;
 end;
end;


Thanks again for any help!
bigboy
eyeonyou85@xxxxxxxxxxx




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/