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

Notification

Icon
Error

Options
Go to last post Go to first unread
sydman  
#1 Posted : Monday, September 4, 2006 6:43:12 PM(UTC)
sydman

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/12/2005(UTC)
Posts: 15
Location: Auckland New Zealand

I would appreciate it if someone could answer me this.

I wish to place an alert in a stock to tell when it has hit a certain price (stoploss/sell/buy etc) and I can do so in the Expert I am using but it also applies it to all the other stocks that use the same Expert and their trigger requirements will obviously be different.

How can I maintain the use of that Expert throughout the range of stocks yet have different triggers/alerts for the individual stocks?

Thanks in advance.

Bulli  
#2 Posted : Thursday, September 7, 2006 8:39:46 AM(UTC)
Bulli

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 9/26/2005(UTC)
Posts: 185
Location: Brazil

See the Security Function in the help file to reference each stock separately inclusive online.

Bulli

sydman  
#3 Posted : Thursday, September 7, 2006 6:20:00 PM(UTC)
sydman

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/12/2005(UTC)
Posts: 15
Location: Auckland New Zealand

Thank you Bulli
sydman  
#4 Posted : Thursday, September 7, 2006 6:57:50 PM(UTC)
sydman

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/12/2005(UTC)
Posts: 15
Location: Auckland New Zealand

Bulli wrote:

See the Security Function in the help file to reference each stock separately inclusive online.

Bulli




Hi Bulli,

I went and looked for the Security Function, but it does not exist in my help file, nor in any of the Functions available in the Functions menu. Can you give me any more information?
Bulli  
#5 Posted : Thursday, September 7, 2006 7:10:22 PM(UTC)
Bulli

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 9/26/2005(UTC)
Posts: 185
Location: Brazil

Not in your help file!

Here it is from the HELP file:

The Security Data function allows a formula to access price data for any online or local security. This function can be used in any of MetaStock's formula tools.
Online securities are referenced by including "ONLINE:" before the symbol. Local securities are referenced by including the full path to the security file. If the security exists in the same folder as the base security, the path does not need to be included. The symbol, including the path or online reference, is enclosed in quotation marks.

To reference Microsoft's close as an online security:
Security("ONLINE:MSFT",C)
To reference Microsoft's close as a local security using the full path:
Security("C:\Metastock Data\Sample\MSFT",C)
To reference Microsoft's close as a local security in the same folder as the base security:
Security("MSFT",C)
The last type of reference is particularly useful if you use local data exclusively, and store all of your securities in the same local data folder.

For example, the following indicator displays a 30-day moving average of Microsoft's close on any chart, if your online data vendor is active.
Mov(Security("ONLINE:MSFT",C),30,S)
The same formula could be written as:
Security("ONLINE:MSFT",Mov(C,30,S))

========================

By using this function reference you can set a different alert for each stock separately in the same Expert Advisor.

As a matter of fact you do not even need to open the other charts; they will be referenced even if the charts are closed.

Just opening any chart with the Expert Advisor attached it will fire any alert for all the charts according to your formulas.

Bulli

wabbit  
#6 Posted : Thursday, September 7, 2006 7:35:55 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)
I could be wrong, I have been before and probably will be again..

I think the Security() function was not introduced until MS 7.x PRO and MS 8.0 EOD? Can someone confirm this?


wabbit [:D]
sydman  
#7 Posted : Thursday, September 7, 2006 8:07:27 PM(UTC)
sydman

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/12/2005(UTC)
Posts: 15
Location: Auckland New Zealand

wabbit wrote:
I could be wrong, I have been before and probably will be again..

I think the Security() function was not introduced until MS 7.x PRO and MS 8.0 EOD? Can someone confirm this?

wabbit [:D]


Hi Wabbit, I think you have hit the nail on the head because I have just tried to do it again and got an message from Metastock saying that the "Security" function was not available to me but WAS in the MS PRO version. I do not have the PRO version.

So, thank you, both of you. At least I know I do not need to waste any more time trying to achieve the impossible.
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.