Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 11/14/2006(UTC) Posts: 2 Location: Georgia
|
Does anyone know how to get the value of the Exit Swing Signal in an exploration? If I create and exploration with the following function, all I get is 75 for any and all stocks explored.
column A Fml("Exit Swing Signal")
No filter. All results show "75" as a return which is obviously the upper fixed line of the indicator rather than the value of the indicator. Maybe there is something I don't understand to getting the indicator value back rather than one of the horizontal lines.
I asked tech support in an email but the lady that responded didn't seem to even know the indicator was part of Metastock 10 :-(
Joe
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Joe
This is a password protected formula so it’s difficult to provide a solution. If you could edit it, placing 25 and 75 (the outputs producing the horizontal lines) before the signal formula rather than after it (as is probably the case at present) you would almost certainly have what you want.
When a formula is called with Fml() it’s always the LAST output that’s returned to the calling function or formula, an output of 75 in this case.
Maybe someone from Equis could help with this, but as the formula is proprietary that probably won’t happen.
Roy
MetaStock Tips & Tools
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 11/14/2006(UTC) Posts: 2 Location: Georgia
|
Thanks for the response Roy. I agree that is how the formula must be written but didn't know if there was a way to use the FmlVar function to extract the information. Of course I would need to know the name of the variable (assuming one was used) to do this. Perhaps Equis support knows the name and will respond. I would really like to be able to use this indicator in my explorations.
Joe
|
|
|
|
Rank: Advanced Member
Groups ready for retrieval: Registered, Registered Users, Unverified Users Joined: 9/13/2004(UTC) Posts: 673 Location: Salt Lake City, UT
|
I responded to an email about this not too long ago. As Roy mentioned, I believe the last line of code for this indicator is to plot a horizontal line at 75. Since the FML function reads the last line of code to get its value, it is simply taking the horizontal line of 75 as the FML value.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 5/13/2005(UTC) Posts: 715 Location: Midwest, USA
Was thanked: 1 time(s) in 1 post(s)
|
Joe,
You may be able to use "FmlVar". In the Exploration Editor, once the cursor is active, click on the FUNCTIONS... button. Select "Custom Indicators" in the left box, then scroll down on the right until you find the multiple entries for "Exit Swing Signal." The "FmlVar" function will be inserted when you click OK.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Johnathan
You've just taught me something new about MetaStock. I often use the Functions button in the Indicator Builder but have never realized or noticed (or remembered) that named variables could also be accessed.
Sadly this method won't work for Joe as it appears that, not only has the active variable has been placed before the line outputs of 25 and 75, but also that it hasn't been given a name. Such carelessness would be OK if the author had intended it just for personal use, but it's hardly OK for inclusion with every copy of MetaStock being sold, IMO.
Roy
MetaStock Tips & Tools
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 5/13/2005(UTC) Posts: 715 Location: Midwest, USA
Was thanked: 1 time(s) in 1 post(s)
|
That's too bad -- though it DOES demonstrate why one should stay away from "black boxes".
|
|
|
|
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.