Jump to content
Medved Trader Forums

In paintbar/scan editor alerts are not triggering


TheRefik

Recommended Posts

Hello,

I do not know if I fully understand alerts in paintbar, but as I looked into the documentation, everything should be working, but it isn't.

 

My goals is to set an alert, that would be triggered if the closing price of 1min candle crosses a VWAP.

For that my code looks like this.

if (Close.CrossesUp(VWAP_Line, 0))  {   SetColorAndShape("vwap cross up", PBShape.ArrowUp_Hollow, 0xFF93FF99);   TriggerAlert("VWAP crossed up", @"Price crossed up the VWAP");  }
if (Close.CrossesDown(VWAP_Line, 0))  {   SetColorAndShape("vwap crosses down", PBShape.ArrowDn_Hollow, 0xFFFF4E4E);   TriggerAlert("VWAP crossed down", @"Price crossed down the VWAP");  }

 

Although, even when the closing price crosses the vwap, no alerts are triggred.

So I tried simple scan/alert, that should alert if the price is above 100$ or below.

 

 

scan_settings.thumb.PNG.e1ee04850088affcecefd8309166a026.PNG

 

The scanning worked.

scan_result.PNG.e5f8456bd135e0add30bd7e0f0c18298.PNG

 

But no alerts were triggered.

 

I tried to set up the same alert in alert editor and it worked, but in alert editor, there's not enough customization. I need alerts for my portfolio that trigger when prices cross something. Scanning result is simply not enough, since it can be easily overlooked.

 

I hope I am not missing something.

 

Thank you so much.

Link to comment
Share on other sites

there are 2 steps. 

1) Define the alert - that is the part that you did

2) Turn on the alert and specify alert parameters (how notifications are done). That is done on the SCANNER tab of the portfolio. Click the PARAMS button. If the scan has alerts defined, they will be shown there and you can click on them to enable and to view alert info.

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.

×
×
  • Create New...