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

Notification

Icon
Error

Options
Go to last post Go to first unread
mpamias  
#1 Posted : Sunday, July 6, 2008 1:53:10 PM(UTC)
mpamias

Rank: Newbie

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

Am new to this forum and i will like to ask the experts about a problem that i have on creating a formula.When i am done the message "this is not a recognised name,constant or operator" appears.

does anyone of you have a clue on what am i doing wrong?

Thx and conqrts for your wonderfull work

wabbit  
#2 Posted : Sunday, July 6, 2008 8:11:28 PM(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)
Hi mpamias

Welcome to the Forum.

Please post the code so we can identify the error.


wabbit [:D]

mpamias  
#3 Posted : Monday, July 7, 2008 12:51:06 AM(UTC)
mpamias

Rank: Newbie

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

Thx for welcoming first of all.

.

wabbit  
#4 Posted : Monday, July 7, 2008 1:12:25 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)
Hi again,

There is a big difference between the equality operator ( = ) and the assignment operator ( := )

When you assign a value to a variable you must use colon-equals ( := ), when you want to compare values you just use the equals sign ( = ).

Code:

A := RSI(14)-Ref(RSI(14),-9)+Mov(RSI(3),3,S);
Plot1 := Mov(A,13,S);
Plot2 := Mov(A,33,S);

{plot}
A;
Plot1;
Plot2;


Hope this helps.

wabbit [:D]

mpamias  
#5 Posted : Monday, July 7, 2008 2:13:15 AM(UTC)
mpamias

Rank: Newbie

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

Oh.Thx a lot.It worked.

Thx again

mpamias  
#6 Posted : Monday, July 7, 2008 5:49:01 AM(UTC)
mpamias

Rank: Newbie

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

Wabbit sorry to bother u again.I can see the index daily but it doesnt appear on weekly.

It says Period value out of valid range in Mov( ) function

wabbit  
#7 Posted : Monday, July 7, 2008 6:57:32 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)
I am going to guess this error message is the result of an exploration?

Uncheck the "load minimum records" in the Explorer > Options and load more data into the exploration. You need to have at least 33 weekly bars of data for the Mov() function, but to return "accurate" results from the RSI(14) use at least 5 times this amount of data, i.e. load at least 70 bars of data.

Your equity needs to have this amount of historical data available or else the same error will be generated.


wabbit [:D]

mpamias  
#8 Posted : Sunday, July 13, 2008 7:11:53 AM(UTC)
mpamias

Rank: Newbie

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

Hi wabbit.Ok its working.thx a lot.

Users browsing this topic
Guest (Hidden)
Similar Topics
Divergence--no hits (Formula Assistance)
by gorachand 4/24/2024 4:28:56 PM(UTC)
4 WHITE BODY (Higher closes) in last 7 candle and ignore black body (Formula Assistance)
by kkrishna79 2/7/2024 8:34:56 AM(UTC)
Add a new graphic symbol on the graphic list on v17 (MetaStock)
by ilikedaniel 1/1/2024 4:42:26 PM(UTC)
Highest Value of the formula (Formula Assistance)
by PROFIT306 7/11/2023 12:23:54 PM(UTC)
Ichimoku Master - Product Update - April 4th, 2023 (MetaStock Product Updates)
by MS Support 4/4/2023 3:09:07 PM(UTC)
How to Make This Formula Work? (Formula Assistance)
by markpc17 7/10/2022 5:23:14 PM(UTC)
April 2021: Detecting High-Volume Breakouts (2021)
by MS Support 6/15/2022 5:12:41 PM(UTC)
Highest High value & Lowest Low Value (Formula Assistance)
by kaushik1 3/11/2022 6:28:18 AM(UTC)
Highest high & lowest low value (Formula Assistance)
by kaushik1 3/10/2022 4:29:18 PM(UTC)
Multi Time Frame HiLo Activator (Formula Assistance)
by kaushik1 2/26/2022 3:21:55 PM(UTC)
Extreme Channel Shifted Version (Formula Assistance)
by Derek Worswick 2/12/2022 2:05:24 PM(UTC)
DLL Search for High of Months (or Weeks) into a Daily Exploration (MetaStock Developer's Kit (MDK) Assistance)
by Pablito189 12/11/2021 4:22:54 PM(UTC)
Month and Week High (Low) values in Daily Exploration (Formula Assistance)
by Pablito189 12/11/2021 12:26:31 PM(UTC)
how to write formula to see the difference between high low in each bar (Formula Assistance)
by mymetaforum 10/21/2021 6:53:16 AM(UTC)
Calculating Future Price At which RSI & Moving Average Will Cross Over (Formula Assistance)
by SAK_Trader 7/29/2021 5:20:14 PM(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.