NexusFi: Find Your Edge


Home Menu

 





Trade Alert - Send Text Message


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Cachevary with 7 posts (0 thanks)
    2. looks_two ratfink with 6 posts (1 thanks)
    3. looks_3 MrYou with 2 posts (1 thanks)
    4. looks_4 ceramictilepro with 2 posts (0 thanks)
    1. trending_up 8,906 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 19 posts
    2. attach_file 0 attachments




 
Search this Thread

Trade Alert - Send Text Message

  #11 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,633 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,425


Cachevary View Post
XML or HTML is too much a concept for.But how can i set this up via gmail account?Any type of highliting would suffice.

In the body of the text you can you use the <b></b> tags, that's all you need. In the header you're probably best just using CAPITALS as most email readers use bold to indicate unread messages anyway.


e.g.

<b>This text will be in bold in your received gmail body.</b>

Travel Well
Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Increase in trading performance by 75%
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
15 thanks
GFIs1 1 DAX trade per day journal
15 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
  #12 (permalink)
 
Cachevary's Avatar
 Cachevary 
Russia,Khabarovsk
 
Experience: Beginner
Platform: NT
Trading: Gold
Posts: 407 since Feb 2014


ratfink View Post
In the body of the text you can you use the <b></b> tags, that's all you need. In the header you're probably best just using CAPITALS as most email readers use bold to indicate unread messages anyway.


e.g.

<b>This text will be in bold in your received gmail body.</b>



Maybe i wasn`t clear enough,sorry.The body of the text is inside the code scritp,which transmits from one gmail account to another.I tried the HTML code within the srcipt,but it probably fly that way.

Reply With Quote
  #13 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,633 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,425



Cachevary View Post
Maybe i wasn`t clear enough,sorry.The body of the text is inside the code scritp,which transmits from one gmail account to another.I tried the HTML code within the srcipt,but it probably fly that way.

Sounds like you might need to find the escape mechanism in the script language to stop special characters being processed locally - in Ninja that's the '@' character before a string (e.g. testString = @"<b>my bold text</b>"; )) - but maybe you are using something else - and I'm not sure that's needed in this case anyway (usually more for slash chars). Maybe I'll have a play next week in live market when alerts will get processed again and we can test, unless somebody else submits a good solution first.

Travel Well
Visit my NexusFi Trade Journal Reply With Quote
  #14 (permalink)
 
Cachevary's Avatar
 Cachevary 
Russia,Khabarovsk
 
Experience: Beginner
Platform: NT
Trading: Gold
Posts: 407 since Feb 2014


ratfink View Post
Sounds like you might need to find the escape mechanism in the script language to stop special characters being processed locally - in Ninja that's the '@' character before a string (e.g. testString = @"<b>my bold text</b>"; )) - but maybe you are using something else - and I'm not sure that's needed in this case anyway (usually more for slash chars). Maybe I'll have a play next week in live market when alerts will get processed again and we can test, unless somebody else submits a good solution first.


So you suggest that i`d need surround the message test with the @ symbol,to get text boldness?

Reply With Quote
  #15 (permalink)
 
MrYou's Avatar
 MrYou 
NC, USA
 
Experience: None
Platform: None Yet
Trading: Guitar
Posts: 403 since Jun 2011
Thanks Given: 618
Thanks Received: 196

Just to be clear. You can not use bold or custom fonts with standard SMS text messages. You'll only receive HTML code.

And it depends on your [EDIT: cell phone] provider whether they will translate an HTML coded email into a properly formatted MMS text message. Many do not, their email to text message gateway will only send via SMS.

Reply With Quote
  #16 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,633 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,425


Cachevary View Post
So you suggest that i`d need surround the message test with the @ symbol,to get text boldness?

Not on its own, as I suggested the '@' symbol is used to prevent any special processing of characters in any string (e.g. '/'), but I'm not even sure it is needed to stop any processing of the <b>....</b> which is what signifies the bold state in the html text, maybe someone else does.

Just try @"<b>My test string</b>"

As @MrYou says, I assume you are receiving the message in an email reader of some form, and not just SMS?

Travel Well
Visit my NexusFi Trade Journal Reply With Quote
  #17 (permalink)
 
Cachevary's Avatar
 Cachevary 
Russia,Khabarovsk
 
Experience: Beginner
Platform: NT
Trading: Gold
Posts: 407 since Feb 2014


ratfink View Post
Not on its own, as I suggested the '@' symbol is used to prevent any special processing of characters in any string (e.g. '/'), but I'm not even sure it is needed to stop any processing of the <b>....</b> which is what signifies the bold state in the html text, maybe someone else does.

Just try @"<b>My test string</b>"

As @MrYou says, I assume you are receiving the message in an email reader of some form, and not just SMS?

I do not send or recieve any SMS.I want to sent the text from one ninja code via e-mail alert to anothe different mail box,so the recipient recieves it in bold,different color,different fonts,etc.Hope that`s clear.

Reply With Quote
  #18 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,633 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,425


Cachevary View Post
I do not send or recieve any SMS.I want to sent the text from one ninja code via e-mail alert to anothe different mail box,so the recipient recieves it in bold,different color,different fonts,etc.Hope that`s clear.

Yes, that's what I assumed, sorry I can't be of more help.

Travel Well
Visit my NexusFi Trade Journal Reply With Quote
  #19 (permalink)
 
Cachevary's Avatar
 Cachevary 
Russia,Khabarovsk
 
Experience: Beginner
Platform: NT
Trading: Gold
Posts: 407 since Feb 2014

Maybe someone more XP would chime in.

Example:

the text in the script message(original):

Trade Alert BUY Signal

i`d like the recipient get the message like this(example):

Trade Alert BUY Signal

Reply With Quote
  #20 (permalink)
 
Cachevary's Avatar
 Cachevary 
Russia,Khabarovsk
 
Experience: Beginner
Platform: NT
Trading: Gold
Posts: 407 since Feb 2014


Or,alternatively,maybe someone could suggest how to make it the original in the first place,whithin the sending script.

Thank you.

Reply With Quote




Last Updated on March 25, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts