FXCM Forex Trading

Line Cross Alert

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Line Cross Alert

Postby Apprentice » Sat Apr 07, 2012 3:56 pm

SLope.png

The indicator provides audio and Email Alerts.
When Source Data (close) crosses the trend line defined by the user.
To define a trend line use the First and Second Paremetre from the menu.
(Left mouse click)
Current version supports only one trend line per currency pair.

Line Cross Alert.lua
(11.12 KiB) Downloaded 1796 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 16114
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Line Cross Alert

Postby Apprentice » Mon Apr 09, 2012 8:56 am

Moved from Beta Sub Forum.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 16114
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Line Cross Alert

Postby LuckyPanda » Fri Apr 13, 2012 10:17 pm

Hi Apprentice thanks for the indicator. Just what I was looking for.

Could you add an optional alert for when it bounces off the line too?

And please allow two lines.

Also does it work on an indicator data source?

Thanks.
LuckyPanda
 
Posts: 9
Joined: Wed Sep 21, 2011 10:13 pm

Re: Line Cross Alert

Postby Apprentice » Mon Apr 16, 2012 3:48 am

When I find time, I had planned to offer you advanced version.
The current version works on Indicator data.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 16114
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Line Cross Alert

Postby Apprentice » Tue Apr 17, 2012 9:01 am

MLCA.png

This version allows you to add unlimited number of lines.
Before defining new line use New parameter to define it.
MLCA.lua
(10.25 KiB) Downloaded 1054 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 16114
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Line Cross Alert

Postby LuckyPanda » Tue Apr 17, 2012 5:58 pm

Great work! Although it took forever to figure out how to add lines.

Bug: When MLCA is on indicator window and you choose Extend Start or Extend End, the lines will show incorrectly, changing to horizontal lines sometimes.

Also right clicking to set start or end is difficult because usually the start or end points are where other indicator lines are. Right clicking on them will show a different menu. Can we open the menu and then left click to set the points? Or allow choosing existing lines drawn on chart? Thanks.

Hope to see rebounding alert when you have time. Thanks.
LuckyPanda
 
Posts: 9
Joined: Wed Sep 21, 2011 10:13 pm

Re: Line Cross Alert

Postby Apprentice » Wed Apr 18, 2012 2:06 am

Bug - Make sure that the line start / end is not, prior to the first, after the last, candles.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 16114
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Line Cross Alert

Postby LuckyPanda » Wed Apr 18, 2012 4:44 am

Ya that's what happened with the lines.

After more testing, I did not get an audio alert when lines crossed. Could you add a pop up dialog option? Thanks.
LuckyPanda
 
Posts: 9
Joined: Wed Sep 21, 2011 10:13 pm

Re: Line Cross Alert

Postby Apprentice » Thu Apr 19, 2012 1:36 am

Do yuo have _Alert Signal/Strategy installed, loaded and Activ.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 16114
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Line Cross Alert

Postby LuckyPanda » Mon Apr 23, 2012 4:52 pm

OK I loaded _Alert and it did make alert sound but no popup. Also does it need to be loaded for every pair that the MLCA is loaded? Thanks.
LuckyPanda
 
Posts: 9
Joined: Wed Sep 21, 2011 10:13 pm

Next

Return to Custom Indicators

Who is online

Users browsing this forum: Yahoo [Bot] and 52 guests