Email from an indicator

Moderator: admin

Email from an indicator

Postby MrRiversideDude » Tue May 12, 2015 5:33 am

Is it possoble to send emails from an indicator? If so, how?

Thanks in advance.
MrRiversideDude
 
Posts: 87
Joined: Fri Feb 21, 2014 7:50 am

Re: Email from an indicator

Postby Apprentice » Fri May 15, 2015 3:17 am

There are a number of methods.
Unfortunately, the current version of the TS do not have native support for this functionality.
Will be added in the next update.
One method is via _Alert helper.
You can find a number of examples on this forum.
Here is one Set_Of_Averages with Alert.lua
viewtopic.php?f=17&t=9568&p=100286&hilit=_alert#p100286
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Email from an indicator

Postby MrRiversideDude » Mon May 18, 2015 9:24 am

Thanks, I got it to work. A few other simple questions:

1. Do I have to have _Alert running for each pair that's using the indicator?
2. Do you know when the next update for TS will be available and what the improvements will be?
3. How do we make suggestions for TS improvements?

Thanks in advance!!
MrRiversideDude
 
Posts: 87
Joined: Fri Feb 21, 2014 7:50 am

Re: Email from an indicator

Postby MrRiversideDude » Mon May 18, 2015 11:56 pm

Can you give me the link to another method to email from an indicator?

Thanks in advance.
MrRiversideDude
 
Posts: 87
Joined: Fri Feb 21, 2014 7:50 am

Re: Email from an indicator

Postby Apprentice » Tue May 19, 2015 3:06 am

1. Do I have to have _Alert running for each pair that's using the indicator?
Yes.
2. Do you know when the next update for TS will be available and what the improvements will be?
According to my information in July (much depends on FXCM).
Among other things TS will now have Native Alert Support ability to Trade from within indicator.
3. How do we make suggestions for TS improvements?
U can use this topic
viewforum.php?f=44
4.Can you give me the link to another method to email from an indicator?
I think it's best to wait TS update.
Among other things new version of TS will have native support for Alert.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Email from an indicator

Postby MrRiversideDude » Wed May 20, 2015 11:31 pm

Apprentice,

I would like hire you to make my indicator send out email using _Alert. It is a MCP MTF indicator so I'm hoping to be able to run just one _Alert strategy. Please provide me a quote and an ETA. I stripped out some of the code to protect my trading strategy.

Thanks!!
Attachments
MA Dashboard Ver 5 BETA.lua
(14.18 KiB) Downloaded 820 times
MrRiversideDude
 
Posts: 87
Joined: Fri Feb 21, 2014 7:50 am

Re: Email from an indicator

Postby Apprentice » Thu May 21, 2015 7:39 am

If I understood your request.
You want Alert if indications are changed.
I can do this for you for 30 dollars.
Please contact me at mario(.)jemic(@)gmail(.)com
MA Dashboard Ver 5 BETA.lua
(14.19 KiB) Downloaded 893 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Email from an indicator

Postby MrRiversideDude » Sun Jan 17, 2016 10:55 pm

Apprentice,

After the trading station upgrade last week I can no longer send emails from my indicator. It was working perfectly since May of last year. Any idea why? I can still send emails from strategies.

Thanks in advance!
MrRiversideDude
 
Posts: 87
Joined: Fri Feb 21, 2014 7:50 am

Re: Email from an indicator

Postby MrRiversideDude » Mon Jan 18, 2016 8:07 am

I did some testing and it's failing in the FindAlert function:

function FindAlert()
local i, ii;
Alert=nil;
for i = 0, interop:size() - 1, 1 do
ii = interop:instance(i);
if ii:name() == "_Alert" then
Alert=ii;
end
end
end

Error: The enumeration value is out of range.

Again, this was caused by the TS upgrade, which they force you to do.
MrRiversideDude
 
Posts: 87
Joined: Fri Feb 21, 2014 7:50 am

Re: Email from an indicator

Postby Apprentice » Wed Jan 20, 2016 6:12 am

Check Set_Of_Averages with Alert.lua
viewtopic.php?f=17&t=9568&p=100286&hilit=_alert#p100286
Alert helper is no longer supported.
Will cause this sort of behavior after the recent TS update.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 18 guests