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

Re: Line Cross Alert

Postby Steve0001 » Sun Jan 22, 2017 9:57 am

Thanks! You were correct. TS was not configured to send e-mail. Explanation for anyone else reading this: you enter the recipient e-mail address into the indicator for the alert, but TS also needs sender information in order to send an e-mail alert. The e-mail alerts tell you what pair it is alerting on (very helpful). If you are using it with another indicator (e.g. RSI), it does not tell you "RSI" in the e-mail alert, but it does tell you what value the line was crossed at (so you can deduce what it is alerting on if you also happen to have a line crossing alert set up on piece on the same pair).

The only problem now is this: I did a few limited tests with the indicator and found that it seems to alert for crossing under, but not for crossing over.

Thanks!
Steve0001
 
Posts: 28
Joined: Sun Feb 26, 2012 7:52 pm

Re: Line Cross Alert

Postby Steve0001 » Tue Jan 24, 2017 3:33 pm

There is still a problem. I have tested the indicator (MLCA) more extensively now and I find that it alerts for "Cross Under" only, and never for "Cross Over." I looked at the program, but could not find what could be wrong (the logic appears to be correct, but I don't know lua very well).

It would also be helpful if the instrument name could be included in the subject line of the e-mail alert (to be able to see at a glance which pairs have alerted without having to open the messages).

It might also be useful if there was an option to alert only if the line crossing persists on the candle close (ignore temporary crossing by candle wicks).

Thanks.
Steve0001
 
Posts: 28
Joined: Sun Feb 26, 2012 7:52 pm

Re: Line Cross Alert

Postby 7000306337 » Sun Jul 16, 2017 11:09 pm

Hi:
Thanks in advance for your precious time.

This is EXACTLY what I need .... IF (in addition to activating the ALERT) .... it can ALSO execute enter() and exit() trades upon crossing that amazing trend line.

Could this be done????????
Or impossible .. too good to be true !!!!
7000306337
 
Posts: 12
Joined: Sat Jul 15, 2017 9:48 am

Re: Line Cross Alert

Postby anashassan76 » Mon Jul 17, 2017 2:01 am

hi . very good work . but i faced a problem . i normally take trading signal at candle close . not at touch .

can you add selection of time frame to make the alert go . bib or 1m or 5m or 15 or 1h or 2h .... etc
anashassan76
 
Posts: 3
Joined: Sun Apr 16, 2017 6:57 am

Re: Line Cross Alert

Postby Apprentice » Mon Jul 17, 2017 4:01 am

7000306337
Two ways exist.
Execute the first trade from the indicator.
Send a trade signal from indicator to strategy
Steve0001
Your request is added to the development list, Under Id Number 3824
If someone is interested to do this task, please contact me.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 16966
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Line Cross Alert

Postby 7000306337 » Mon Jul 17, 2017 8:00 am

Thank you Apprentice for wonderful news.

Please, please, please give me a link to an existing example of each of the 2 ways.

You`re amazing.
7000306337
 
Posts: 12
Joined: Sat Jul 15, 2017 9:48 am

Re: Line Cross Alert

Postby Apprentice » Mon Jul 17, 2017 4:06 pm

Trade from Indicator
viewtopic.php?f=17&t=64251&p=112616&hilit=trading#p112616
As for second part.
U can use

Code: Select all
   function Prepare()
       ...
       require("storagedb");
       local db = storagedb.get_db("MYINDI");
       ...
   end
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 16966
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Line Cross Alert

Postby Apprentice » Tue Sep 05, 2017 4:24 am

One for anashassan76
Line Cross Alert.lua
(12.67 KiB) Downloaded 23 times


I've tested it on AUD/JPY.
1.csv
(1.96 KiB) Downloaded 10 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 16966
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Previous

Return to Custom Indicators

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 9 guests