SMS messages

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
HarryHindsight
Posts: 14
Joined: 04 Sep 2010
Has thanked: 1 time
Been thanked: 4 times

SMS messages

Postby HarryHindsight » 08 Sep 2011

Hi
Thought it was a good idea if I could send sms messages from my pc informing me of connection , power , strategy status etc. Anyone have any experience in this or advice on phones and language?
I have some experience in vb. Easylanguage can write a file from a strategy so I can get that data.
I guess I can also msg the pc to check if it is still alive and there is enough in my account for a bag of fries :)

http://www.andreavb.com/forum/viewtopic_5824.html

Thanks

HarryHindsight
Posts: 14
Joined: 04 Sep 2010
Has thanked: 1 time
Been thanked: 4 times

Re: SMS msg

Postby HarryHindsight » 08 Sep 2011

Learn how to send Short Message Service (SMS) messages from your .NET Compact Framework-based application.
http://www.microsoft.com/download/en/de ... =en&id=486

HarryHindsight
Posts: 14
Joined: 04 Sep 2010
Has thanked: 1 time
Been thanked: 4 times

Re: SMS msg

Postby HarryHindsight » 08 Sep 2011

I managed to get the software below to work on my usb stick , sending and receiving msg's
http://www.smsco.it/tomcat/en/home/show.do
SMSList software-only (unlimited license) € 179.00
The software is a little more than I need but it can send and receive.

The vb code below works to send from my usb stick.
http://www.planetsourcecode.com/vb/scri ... 9&lngWId=1

Will come back to this when I get a little more time.

User avatar
TIKITRADER
Posts: 84
Joined: 17 Jun 2009
Location: USA
Has thanked: 55 times
Been thanked: 13 times

Re: SMS msg

Postby TIKITRADER » 08 Sep 2011

Possibly this can be useful ? ... Python

http://www.ehow.com/how_7509166_send-te ... cript.html

HarryHindsight
Posts: 14
Joined: 04 Sep 2010
Has thanked: 1 time
Been thanked: 4 times

Re: SMS msg

Postby HarryHindsight » 09 Sep 2011

Hi TT
Thanks for the imput. I want to stick to VB as I know enough to save me some time. im not great at coding but Im hoping some resident coding gurus jump in and help, please.
Plan A
create the txt files from functions in easylanguage

VB loops the folders and if a newly created file exists either sends it as sms or takes another action.
I'm going to create the functions first while I decide on phone. Are functions the right thing to do ? Im guessing a 2nd hand Nokia with usb cord if not my USB stick. Probably an older one as there may be more code available for it. i just want a simple txt. Total budget NZD$ 39.95 :)
i haven't checked this as its after hours but it does compile ...

Code: Select all

vars:ChartTime(0),NextTimwCheck(0),msg(" "),AutoStatus(""),FileName(" "),mp(0),
strTime(""),strCurrentTime(""),strdate(""),strClose("");
// convert to string
strTime = numtostr(Time,0);
strCurrentTime = numtostr(CurrentTime,0);
strdate = (numtostr(date,0) );
strclose = (numtostr(close,5) );

mp = MarketPosition_at_Broker_for_The_Strategy; // wont work if auto is off ??
if getappinfo(aistrategyauto) = 0 then AutoStatus = "Off";
if getappinfo(aistrategyauto) = 1 then AutoStatus = "On";

If Autostatus <> Autostatus[1] then begin;
filename = "C:\MC_Msg\" & "Auto_" & getsymbolname & ".txt";
msg =(GetStrategyName & " " & GetSymbolName & " " & strDate & " " & strTime & " " & strCurrentTime & " AutoTrading has been turned " & Autostatus & " Close " & strClose);
FileDelete(filename);
FileAppend(filename ,msg );
end;

//NextTimwCheck = MinutesToTime(TimeToMinutes(Time)+ barinterval);
//ChartTime = Time;
//Print(chartTime," ",currenttime)

HarryHindsight
Posts: 14
Joined: 04 Sep 2010
Has thanked: 1 time
Been thanked: 4 times

Re: SMS msg

Postby HarryHindsight » 09 Sep 2011

You need to create a folder C:\MC_Msg or change the code to whatever folder you like. Also it needs

Code: Select all

if barnumber > 1 and Autostatus <> Autostatus[1] then begin;
.
Take the barnumber > 1 away and it will create a file.
Any ideas on what info to extract and how please post here. Feel free to put some strategy data extraction code up.
Any improvements, modifications to the code as well.

Thanks

HarryHindsight
Posts: 14
Joined: 04 Sep 2010
Has thanked: 1 time
Been thanked: 4 times

Re: SMS msg

Postby HarryHindsight » 14 Sep 2011

I managed to glue it all together and it has been working brilliantly for 36 hours now. I get a txt
within a minute of a trade being closed. A big thanks to oliveagle for posting the Reserved Words & Functions Help .
http://help.TS.com/08_08/elword/whnjs.htm

I used the code from planetsource as above. I couldn't decipher much of their code but just added mine in and used click event to send the txt. You need Mscomm on your machine for this to work. In excel vba bring up the tool box and right click, select additional controls. Check Microsoft communications control ver 6. From what i have read there is a issue with Mscomm on vista but not 100% sure.
I will add a request in project management as this is a good tool to have and it would be good if it was integrated in MC.

bomberone1
Posts: 310
Joined: 02 Nov 2010
Has thanked: 26 times
Been thanked: 23 times

Re: SMS msg

Postby bomberone1 » 02 Oct 2011

Please add this feauters to be included by default in mc
Post and vote
https://www.multicharts.com/pm
My best.

bomberone1
Posts: 310
Joined: 02 Nov 2010
Has thanked: 26 times
Been thanked: 23 times

Re: SMS msg

Postby bomberone1 » 18 Jun 2016

Any news about it?


Return to “User Contributed Studies and Indicator Library”