• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 1:21am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 1:21am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Please add sound alert on this 123 pattern indicator 17 replies

Need a kind soul to add sound/email alert to indicator 4 replies

Add sound alert to 4 Time Frame Heiken Ashi indicator 1 reply

MT4 Sound Alert add to Indicator 0 replies

Add (sound) alert to Snake Force Indicator 0 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: Add sound to this indicator
Exit Attachments
Tags: Add sound to this indicator
Cancel

Add sound to this indicator

  • Post #1
  • Quote
  • First Post: Jun 9, 2022 7:10am Jun 9, 2022 7:10am
  •  pgtips
  • | Joined Nov 2007 | Status: Member | 162 Posts
Hi,
I have attached indicator Outside bar indicator. I have tried to add sound alert to it but no success.

Where should I be adding sound alert? If someone could help would be much appreciated,

PG
Attached File(s)
File Type: mq4 OB ident.mq4   6 KB | 107 downloads
  • Post #2
  • Quote
  • Jun 9, 2022 2:15pm Jun 9, 2022 2:15pm
  •  capsmart
  • | Joined Aug 2005 | Status: Member | 100 Posts
Hi
This indicator draws the arrows in two different places.
First between lines 96 and 111
and then between 113 and 128
You could add your Alert(); line above the valid=0;
 
 
  • Post #3
  • Quote
  • Last Post: Edited 10:20am Jun 10, 2022 9:40am | Edited 10:20am
  •  pgtips
  • | Joined Nov 2007 | Status: Member | 162 Posts
thank you

It does now alert but it is caught in an endless loop, is there a way to limit alert to just once.

this is what I added (above both valid=0)

Alert("New OB ");// Alert
valid = 0;

so now I am testing this

//============================================================
// Comparing LastActionTime with the current starting time for the candle.
if (LastActionTime != Time[0])
{
// Code to execute once per bar.
Print("This code is executed only once in the bar started ", Time[0]);

LastActionTime = Time[0];
}

//===========================================================
valid = 0;


thank you
 
 
  • Platform Tech
  • /
  • Add sound to this indicator
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023