logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Icko  
#1 Posted : Friday, February 13, 2009 3:48:31 AM(UTC)
Icko

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 7/30/2008(UTC)
Posts: 9

Would like to make indicator that gives 1 when close is higher then close 1 and three bars ago. Bar number 2 is ignored Same short should be when close is lower then close 1 and 3 bars ago. Bar number 2 is ignored again I tried this C > Ref(C,-1) AND C > Ref(C,-3) but does not lookcorrect. Please help
wabbit  
#2 Posted : Friday, February 13, 2009 4:47:38 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Your code meets the definition, so if the chart doesn't look "correct" then I would suggest that something else is wrong? Perhaps your definition of "correct" is not what you thought it was?

If you post an annotated chart, then perhaps we could be of more help?



wabbit [:D]

Icko  
#3 Posted : Friday, February 13, 2009 4:55:14 AM(UTC)
Icko

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 7/30/2008(UTC)
Posts: 9

Thanks a lot will try to double check it and if I need more help will contact you again
Bulletjie  
#4 Posted : Friday, February 13, 2009 7:28:02 AM(UTC)
Bulletjie

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 2/13/2009(UTC)
Posts: 2

Hallo Icko

Try modifying your code as such:
{test -> check out chart in link the difference between the two is shown}
C > Ref(C,-1) AND C> Ref(C,-2) AND C > Ref(C,-3)
http://www.sharechat.co.za/index.php/fa/885/
Users browsing this topic
Guest (Hidden)
Similar Topics
Formula help for Exploration (Formula Assistance)
by SAINI9466637986 12/24/2023 5:53:23 AM(UTC)
Indicator and System Formula Help! (Formula Assistance)
by emmarsef$ 8/14/2019 7:10:35 AM(UTC)
Simple Formula help (Formula Assistance)
by mymetaforum 2/4/2016 2:44:07 PM(UTC)
Custom MACD Indicator Formula Help (Formula Assistance)
by mosman 1/30/2016 6:42:53 PM(UTC)
MACD formula help (Formula Assistance)
by jit005 9/7/2015 11:30:53 PM(UTC)
explorer formula help (Formula Assistance)
by dimpledbrain 3/30/2015 2:58:06 PM(UTC)
Metastock Commentary Writeif Formula Help (Formula Assistance)
by essemkay 11/23/2014 3:34:34 PM(UTC)
renko formula help (Formula Assistance)
by indexarb 7/29/2012 9:33:15 AM(UTC)
Formula Help (Formula Assistance)
by Golf4 4/23/2012 9:43:33 AM(UTC)
Formula Help please for specific ROC to Highest high (Formula Assistance)
by rjr27 3/21/2012 7:30:45 AM(UTC)
FDI (Fractal Demension Index) or Hurst Exponent formula help (Formula Assistance)
by TomHam 11/12/2010 12:15:43 PM(UTC)
Formula help! Previous day close (Formula Assistance)
by ericlawok 5/6/2010 12:10:49 PM(UTC)
Formula Help:EMA10 with MACD (Formula Assistance)
by asiatrader98 2/19/2009 4:22:21 AM(UTC)
Formula help: Ref() function (Formula Assistance)
by hatem 2/17/2009 4:19:35 AM(UTC)
Formula help (MetaStock)
by PeterR 12/28/2008 11:45:20 AM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.