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
|
|
|
|
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]
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 7/6/2008(UTC) Posts: 6
|
Thx for welcoming first of all.
.
|
|
|
|
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]
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 7/6/2008(UTC) Posts: 6
|
Oh.Thx a lot.It worked.
Thx again
|
|
|
|
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
|
|
|
|
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]
|
|
|
|
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)
|
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.