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

Re: [EquisMetaStock Group] Please, advice me to get start my own coding expert



PureBytes Links

Trading Reference Links

Hi Focorba,

Your Question was:

I would like to know why AND is used incorrectly in the following code>

cond1:= Sum((C> Mov(C,5,S)) AND (C> Mov(O,6,S)),3)=3;
Cond2:= Alert(Cross(Mov(C,5,S), Mov(O,6,S)),3);
Entry:= cond1 AND cond2;
AND
Cross(Stoch(5,3),20),H

Ans: Here you used AND after ';'...
Second, it is not clear if you wanted When Value of Stoch(5,3) =20 crosses with H, or when Stoch(5,3) crosses above 20 then use H.

for correct syntax use:

Entry:= cond1 AND cond2 AND Cross(Stoch(5,3),20);





Thanks and Regards,
Amit Trivedi
President & CEO
Athenasolutionz.com - "We sell hope, in the stock market."

  ----- Original Message ----- 
  From: focorba 
  To: equismetastock@xxxxxxxxxxxxxxx 
  Sent: Monday, September 18, 2006 9:07 AM
  Subject: [EquisMetaStock Group] Please, advice me to get start my own coding expert


  I am very new metastock user and it seems hardly any of my question
  receive any suggestions. Does any know better userforum for metastock
  programming where people really participate ?

  1. I would like to get a formula with buying/selling
  indicators produced when certain fibonacci retracements
  has come true. Letīs assume ie. that in 162 days period
  certain stock has declined 0.236, 0.618, 0.5, 0.382, .764,
  1.382, 1.618, 2.618, 3.618 from high (given period) it would
  generate buy-signal.

  2. The same setup for short signal as opposite

  3. The chart should inform someway which retracement
  gave a signal to buy/sell/short/cover

  Also another issue, I would like to know why AND is used incorrectly
  in the following code>

  cond1:= Sum((C> Mov(C,5,S)) AND (C> Mov(O,6,S)),3)=3;
  Cond2:= Alert(Cross(Mov(C,5,S), Mov(O,6,S)),3);
  Entry:= cond1 AND cond2;
  AND
  Cross(Stoch(5,3),20),H

  Best Regards,

  -F
  (focorba@xxxxxxxxx)



   

[Non-text portions of this message have been removed]



 
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/