Alert question - Page 2 - Forex Forum - EarnForex
Forex Forum - EarnForex
Serving Traders Since 2005
 

Go Back   Forex Forum - EarnForex > MetaTrader > MetaTrader Indicators

MetaTrader Indicators Post and discuss the MetaTrader indicators here.

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 12th April 2010, 07:09
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 2,077
Thanks: 71
Thanked 109 Times in 66 Posts
Default

Because it's still bool. Make it int or long:
MQL5 Code:
int TriggerOnlyThisBar;
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #12 (permalink)  
Old 12th April 2010, 09:24
Default Avatar
Junior Member
 
Join Date: Jan 2010
Location: italy
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Enivid View Post
Because it's still bool. Make it int or long:
MQL5 Code:
int TriggerOnlyThisBar;
Good.... with "int" seems to work.
But he appeared another problem.
Example: sounds the alarm on EURUSD 5 Minutes, I go to see, then I moving on 10 minutes (always EURUSD) and the alarm still plays. Why?
I have replaced:
MQL5 Code:
(TriggerOnlyThisBar != Bars(Symbol(),PERIOD_M5)))
with
MQL5 Code:
(TriggerOnlyThisBar != Bars(Symbol(),PERIOD_CURRENT)))
but the problem remains
Thanks Enivid
Reply With Quote
  #13 (permalink)  
Old 13th April 2010, 06:47
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 2,077
Thanks: 71
Thanked 109 Times in 66 Posts
Default

When you switch timeframes you reset the indicator. There is no easy way to stop it from sounding the alert after that. You can just prohibit to sound the alert in PERIOD_M10.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #14 (permalink)  
Old 13th April 2010, 08:10
Default Avatar
Junior Member
 
Join Date: Jan 2010
Location: italy
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Enivid View Post
When you switch timeframes you reset the indicator. There is no easy way to stop it from sounding the alert after that. You can just prohibit to sound the alert in PERIOD_M10.
ok Enivid...thanks for all
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Price Alert Enivid MetaTrader Indicators 16 20th May 2013 20:06
Question on MT5 alessio09 MetaTrader 5 2 6th January 2010 01:10
Reserve Currency Status In Question mercaforex Fundamental Analysis 0 13th October 2009 18:56
Parabolic Indicator Question JXBlack MetaTrader Indicators 2 9th October 2009 09:04
Please Help - Indicator Alarm/Alert Needed doggie01 MetaTrader Indicators 0 4th February 2009 10:31


All times are GMT. The time now is 10:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Inactive Reminders By Icora Web Design

SEO by vBSEO 3.3.2