Page 6 of 6

Re: Line Cross Alert

PostPosted: Sun Jan 22, 2017 9:57 am
by Steve0001
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!

Re: Line Cross Alert

PostPosted: Tue Jan 24, 2017 3:33 pm
by Steve0001
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.

Re: Line Cross Alert

PostPosted: Sun Jul 16, 2017 11:09 pm
by 7000306337
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 !!!!

Re: Line Cross Alert

PostPosted: Mon Jul 17, 2017 2:01 am
by anashassan76
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

Re: Line Cross Alert

PostPosted: Mon Jul 17, 2017 4:01 am
by Apprentice
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.

Re: Line Cross Alert

PostPosted: Mon Jul 17, 2017 8:00 am
by 7000306337
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.

Re: Line Cross Alert

PostPosted: Mon Jul 17, 2017 4:06 pm
by Apprentice
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

Re: Line Cross Alert

PostPosted: Tue Sep 05, 2017 4:24 am
by Apprentice
One for anashassan76
Line Cross Alert.lua
(12.67 KiB) Downloaded 741 times


I've tested it on AUD/JPY.
1.csv
(1.96 KiB) Downloaded 578 times

Re: Line Cross Alert

PostPosted: Mon Feb 05, 2018 8:12 am
by Apprentice
The Indicator was revised and updated.