sending email problem

Section for all discussions related to development using Indicore API/SDK.

Moderator: admin

sending email problem

Postby iospetrosky » Tue Sep 17, 2013 7:10 am

Hi everybody

I have a problem sending emails.
It seems trivial because

terminal:alertEmail("myemail@myserver.com","Test message","Test body")

generates an error "Attempt to index global 'terminal' a nil value

The call is made in the Update function of an indicator

Any hint?

Thank you

L.
iospetrosky
 
Posts: 3
Joined: Tue Sep 10, 2013 7:39 am

Re: sending email problem

Postby Apprentice » Tue Sep 17, 2013 8:20 am

U can only use terminal from within Strategy or Signal,
not from Indicator.

This is an example of Indicator implementation
viewtopic.php?f=17&t=19034
I use _alert helper for Sounds & Emails.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 19823
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Discussions

Who is online

Users browsing this forum: No registered users and 1 guest