Jump to content
Medved Trader Forums

Include price on alert


Recommended Posts

1) what type of alert are you doing?

2) what "following alert msg"?

3) what error? (gotta give details)

where exactly are you trying to do this? In alerts you can specify the alert NOTE which is basically a custom description that can either add to or replace the default one. That is where the [Last] would be entered.  

Link to comment
Share on other sites

Strangely, the attached code was truncated.

I enter this on the paintbar editor.

 

1) what type of alert are you doing? Scan

2) what "following alert msg"? TriggerAlert("SELL", @"Strong sell");



	

3) what error? (gotta give details) " Invalid Expression  Term" on the paintbar checker.

where exactly are you trying to do this? In alerts you can specify the alert NOTE which is basically a custom description that can either add to or replace the default one. That is where the [Last] would be entered.   

 

Link to comment
Share on other sites

ok I see. You would normally not enter alert details like that at the paintbar level. Instead, when actually turning on the alert, you would do it there. .  you could however add the price to the message of the alert if you wanted. 

TriggerAlert("SELL""Strong sell @ " + Close.ToString());

would result in:

Strong sell @ 123.45

Link to comment
Share on other sites

I don't know what I am doing wrong but I am not getting the syntax I am looking for. 

I entered the following on the alert editor and select REPLACE :

[DESC] [SYMBOL] @[LAST] [ALERTTYPE]

I am still getting the same syntax as before.

I did enable and also disable the "Global, None" alert but it didn't make any difference.

After I delete  "Global, None" now it always force me to select an Alert Type when I create a new "Global" alert.

Link to comment
Share on other sites

the [DESC] tag is the default alert description, so your result will start with whatever the description was there before. that may be what you are seeing. After that however, you will see the symbol, etc.  For example, I ran a test that had a default triggered alert description show as:

Alert "52wLow!" on DLHC Scan "*** New Paintbar"

I changed it to be yours. now it shows as:

Alert "52wLow!" on DLHC Scan "*** New Paintbar" DLHC @6.02 Scan

if you don't want the default alert description, don't include [DESC]

As for Global, None - not really sure what you are talking about. that would show on the Alert Editor if you selected to create a Global Alert but didn't yet specify the type (thus the "none").  That has nothing to do with scan alerts. You would turn on the scan alert on the portfolio's Scan tab. Click on the PARAMS button on lower left of that tab, then check the alert box.
 

Link to comment
Share on other sites

I am a little confused now. I simply wanted this syntax from the scan to appear on both the alert pop window and the alert log:

<BUY> SMTC @51.39 on "SCAN02"

instead of the current output:

Alert "<BUY>" on SMTC Scan "SCAN02" @51.39

which was created by the following code on the scan :



 

This is what I did per your suggestion:

First, I entered the following syntax on the Alert Editor

[DESC] [SYMBOL] @[LAST] [ALERTTYPE]  

On the Alert Editor there was a default "Global, none".

 

Second, I enabled and disabled  "Global, None" but it make no differences.

When I deleted it, it can't be recreated again and was forced to select a pre-defined alert type.

 

Third, the Alert is enabled on the scan.

 

 

Link to comment
Share on other sites

Thanks for the clarification.

However, it still won't give me the syntax I am looking for.

<BUY> SMTC @51.39 on "SCAN02"

The best I can get is the same as the original.

Alert "<BUY>" on SMTC Scan "SCAN02" @51.39 

 

No place holder for the following:

[NAME] Scan name

[DESCRIPTION] just the message and not including the other words. For example, <BUY> instead of "Alert "<BUY>" on SMTC Scan "SCAN02""

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...