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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

MACD Crosses Zero Line, Arrow + Alert 16 replies

need price alert on horizontal price line 3 replies

trend line alert only if price pulls back 2 replies

Need help creating a trend alert indicator 0 replies

Need Help To Make The "SMA Crosses" With Alert !? 3 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 4
Attachments: Need help- alert when trend line crosses price line
Exit Attachments

Need help- alert when trend line crosses price line

  • Post #1
  • Quote
  • First Post: Sep 1, 2013 8:05am Sep 1, 2013 8:05am
  •  james27
  • | Joined Jun 2013 | Status: Member | 108 Posts
Hello!
these day im struggling with some trend line across source .
and actually im new to programming it really tired to modify source.
what i want to do is..as you see in this image when price line totally crossed trend line i want to receive alert.
so if Close[1] value is crossed i want to receive alert.
so if close[1] is go above i want to receive alert and also when close[1] is go below also want to receive alert and only one time receive alert.
sorry my bad english.
if anyone guide me or some help...it really appreciate!
thanks you !
Attached Image (click to enlarge)
Click to Enlarge

Name: cross.gif
Size: 12 KB
Attached File
File Type: mq4 Trend Line Alert.mq4   2 KB | 717 downloads
  • Post #2
  • Quote
  • Sep 1, 2013 8:32am Sep 1, 2013 8:32am
  •  RaptorUK
  • Joined Jan 2008 | Status: Member | 870 Posts
Quoting james27
Disliked
Hello! these day im struggling with some trend line across source . and actually im new to programming it really tired to modify source. what i want to do is..as you see in this image when price line totally crossed trend line i want to receive alert. so if Close[1] value is crossed i want to receive alert. so if close[1] is go above i want to receive alert and also when close[1] is go below also want to receive alert and only one time receive alert. sorry my bad english. if anyone guide me or some help...it really appreciate! thanks you ! {file}...
Ignored
http://forum.mql4.com/57600

If you really want to understand how to use this function ( ObjectGetValueByShift() ) then write some test code first, a little script ot Indicator to practice with, once you have figured out how to use this function correctly then you can add it where you really need it.


Write your test code and if you are having problems with it ask again . . . if all you want is someone to write your code for you then the solution is very, very simple: write my mql4 code for me
20 pips a day isn't too much to ask . . .
  • Post #3
  • Quote
  • Sep 1, 2013 8:37am Sep 1, 2013 8:37am
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
Quoting james27
Disliked
....... so if Close[1] value is crossed i want to receive alert. .......
Ignored
I don't think that is what you want from your image. I think that you want an alert when Open, High, Low and Close are all above/below the trendline.
Please Do Not PM Me With Coding Enquiries
  • Post #4
  • Quote
  • Sep 1, 2013 9:45am Sep 1, 2013 9:45am
  •  FerruFx
  • Joined May 2007 | Status: MT4/MT5 EAs/Indicators/Alerts coder | 6,756 Posts
Inserted Code
td2 = ObjectGetValueByShift(td_name,2);
td1 = ObjectGetValueByShift(td_name,1);

if(timeprev != Time[0] && High[2] > td2 && High[1] < td1) { Alert("DOWN alert"); timeprev = Time[0]; }

Just an quick example to handle the alert at the very 1st candle to close completely below the TD (including wick).
MT4/MT5 EAs/Indicators/Alerts coder
  • Post #5
  • Quote
  • Sep 1, 2013 8:44pm Sep 1, 2013 8:44pm
  •  james27
  • | Joined Jun 2013 | Status: Member | 108 Posts
Thanks! FerruFX!
i think i almost resolve problem now!
today i will update again
thanks again!
  • Post #6
  • Quote
  • Sep 1, 2013 8:52pm Sep 1, 2013 8:52pm
  •  FerruFx
  • Joined May 2007 | Status: MT4/MT5 EAs/Indicators/Alerts coder | 6,756 Posts
Quoting james27
Disliked
Thanks! FerruFX!
Ignored
You're welcome!
MT4/MT5 EAs/Indicators/Alerts coder
  • Post #7
  • Quote
  • Sep 2, 2013 12:55pm Sep 2, 2013 12:55pm
  •  funny_bhd
  • | Joined Sep 2013 | Status: Junior Member | 3 Posts
Hi everybody, I often use 2 indivator to trade: QQE and Trendstrength.
I don't know how to make arlert for QQE when it crosses 50 and Trendstrength when it crosses 0
I can't watch Screen usuallly because I have to work with Accounting Software or Excel. However, i can hear the voice from my speakers.
Please help me make sound alerts and their notice when QQE crosses 50, Trendstreng crosses 0.
Thanks and look forward to your help!
Attached File
File Type: ex4 QQE_Alert_MTF_v5.ex4   19 KB | 451 downloads

Attached File
File Type: mq4 TrendStrength.mq4   3 KB | 521 downloads
  • Post #8
  • Quote
  • Sep 3, 2013 9:18am Sep 3, 2013 9:18am
  •  funny_bhd
  • | Joined Sep 2013 | Status: Junior Member | 3 Posts
Pls help me, I really need the alert of two indicator..
  • Post #9
  • Quote
  • Last Post: Jun 26, 2015 10:19pm Jun 26, 2015 10:19pm
  •  belief
  • | Joined Jun 2006 | Status: Member | 409 Posts
Quoting james27
Disliked
Hello! these day im struggling with some trend line across source . and actually im new to programming it really tired to modify source. what i want to do is..as you see in this image when price line totally crossed trend line i want to receive alert. so if Close[1] value is crossed i want to receive alert. so if close[1] is go above i want to receive alert and also when close[1] is go below also want to receive alert and only one time receive alert. sorry my bad english. if anyone guide me or some help...it really appreciate! thanks you ! {file}...
Ignored
Bump it in the hope someone has the solution.
  • Platform Tech
  • /
  • Need help- alert when trend line crosses price line
  • 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 / ©2021