Forex Forum - EarnForex - View Single Post - Alert question
Thread: Alert question
View Single Post
  #12 (permalink)  
Old 12th April 2010, 09:24
Default Avatar
intraforex intraforex is offline
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