NexusFi: Find Your Edge


Home Menu

 





What ports to monitor on VPS


Discussion in TradeStation

Updated
    1. trending_up 4,751 views
    2. thumb_up 8 thanks given
    3. group 3 followers
    1. forum 14 posts
    2. attach_file 1 attachments




 
Search this Thread

What ports to monitor on VPS

  #1 (permalink)
Prophet85
Gothenburg Sweden
 
Posts: 75 since Jul 2019
Thanks Given: 53
Thanks Received: 24

Hi,

So I have an issue that I would like some input on.

I just signed up for VPS with a "full monitoring service" that is supposed to tell me when the VPS is down. An example of how this looks like can be seen at .

Now basically I can add ports to monitor and if a port is down it would send me an email. I tried adding the ports that I know that TS uses (11000, 11001 etc) but those ones randomly can show as being down and sends out a warning even though TS is working fine.

Does anybody have any advice on a good method to check if TS is up and working properly and then get a warning if something is not right.

I was thinking that maybe adding the Remote Desktop Protocol port (3389). Is this a reasonable thing to do? This is a commonly used port and if it is not working it might at least indicate that the internet on the VPS is not working or that the VPS for any other reason is down. I know it wouldn't be optimal but at least it would be something right...?

Regards

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
About a successful futures trader who didnt know anythin …
Psychology and Money Management
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
MC PL editor upgrade
MultiCharts
 
  #2 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853


Prophet85 View Post
Hi,

So I have an issue that I would like some input on.

I just signed up for VPS with a "full monitoring service" that is supposed to tell me when the VPS is down. An example of how this looks like can be seen at .

Now basically I can add ports to monitor and if a port is down it would send me an email. I tried adding the ports that I know that TS uses (11000, 11001 etc) but those ones randomly can show as being down and sends out a warning even though TS is working fine.

Does anybody have any advice on a good method to check if TS is up and working properly and then get a warning if something is not right.

I was thinking that maybe adding the Remote Desktop Protocol port (3389). Is this a reasonable thing to do? This is a commonly used port and if it is not working it might at least indicate that the internet on the VPS is not working or that the VPS for any other reason is down. I know it wouldn't be optimal but at least it would be something right...?

Regards

I know this sounds rudimentary, but here is what I did about 10 years ago with TradeStation. My wife wanted an email notification every time an Alert condition was met in one of her indicators. It was not on VPS, but I think it might work for you anyhow. Let me rephrase what you are trying to do:
  1. You want to know if TS is working
  2. You want to know if your VPS is running
Your VPS provider should, in theory, let you know immediately of an outage. I am about to start using a VPS on Azure (Microsoft) running TradeStation and MultiCharts, so I expect 99.95% uptime, or a maximum 4.38 hours per year of downtime or 21 minutes per month. I expect them to notify me of any problems.

With all that in mind, here is how I would do it:
  1. Write an indicator with an Alert that triggers every n-minutes. The purpose of this indicator is merely to send you an Alert via email
  2. Go to Message Center and setup Email notification
  3. Enable the indicator on one of your charts
  4. Check your email
  5. You should receive an email every n-minutes, all things being equal.
Notification Preferences in TS


If you don't receive emails, then one of the following has happened:
  • The indicator isn't enabled
  • Your Alert condition isn't working
  • TS crashed
  • VPS is offline/crashed
  • Your email server is down
If you have it set to send an email every 5 minutes, you will get lots of emails. If you aren't receiving emails, then something is not working and you should check TS and your VPS.

Another alternative:
Install a program on your VPS that monitors TS to see if it crashes (Here is one example.... I cannot vouch for this program, so you're on your own: Application Monitor
Once you set it up, you can have it email you. I'm not sure the alternative will work, as TS appears to me to still be working even when it is obviously crashing (it just locks up). Also, you will need to monitor multiple programs, as TS has multiple processes running in the background (warehouse server, etc.).

I hope this helps.

~vmodus

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 planetkill 
New York City + NY/United States
 
Posts: 356 since Sep 2018
Thanks Given: 108
Thanks Received: 311


Instead of monitoring problems with TS on the vps level, have an indicator on TS the sends an email alert if your account has a disconnected status

Sent using the NexusFi mobile app

Reply With Quote
Thanked by:
  #4 (permalink)
Prophet85
Gothenburg Sweden
 
Posts: 75 since Jul 2019
Thanks Given: 53
Thanks Received: 24

Wow thank you for that very quick and thorough answer. Much appreciated!

Reply With Quote
  #5 (permalink)
Prophet85
Gothenburg Sweden
 
Posts: 75 since Jul 2019
Thanks Given: 53
Thanks Received: 24


planetkill View Post
Instead of monitoring problems with TS on the vps level, have an indicator on TS the sends an email alert if your account has a disconnected status

Sent using the NexusFi mobile app

Hmm. This is slightly different from what the advice of the poster above right? This seems like a better alternative than sending an email every few minutes as that would be quite a lot of emails...

However how would I make such an indicator that sends an alert if the account has a disconnected status?

Reply With Quote
  #6 (permalink)
 planetkill 
New York City + NY/United States
 
Posts: 356 since Sep 2018
Thanks Given: 108
Thanks Received: 311

I'm sorry I have no idea about the specifics of how to do it in tradestation. I know in Ninjatrader it is easy to do with a custom indicator.
I recommend posting the same question to the tradestation support forums. Especially since tradestation is a paid platform like Ninjatrader, hopefully their technical support team can advise.


Prophet85 View Post
Hmm. This is slightly different from what the advice of the poster above right? This seems like a better alternative than sending an email every few minutes as that would be quite a lot of emails...

However how would I make such an indicator that sends an alert if the account has a disconnected status?


Reply With Quote
Thanked by:
  #7 (permalink)
Prophet85
Gothenburg Sweden
 
Posts: 75 since Jul 2019
Thanks Given: 53
Thanks Received: 24


planetkill View Post
I'm sorry I have no idea about the specifics of how to do it in tradestation. I know in Ninjatrader it is easy to do with a custom indicator.
I recommend posting the same question to the tradestation support forums. Especially since tradestation is a paid platform like Ninjatrader, hopefully their technical support team can advise.

Yeah I will give that a try. However lately it feels like they don't really care answering the questions posted in the forums. If you are lucky the support might answer a mail within 1 week. I will give it a try though, thank you!

Reply With Quote
  #8 (permalink)
 planetkill 
New York City + NY/United States
 
Posts: 356 since Sep 2018
Thanks Given: 108
Thanks Received: 311

I suppose one of the advantages of ninjatrader is that virtually any problem I have has already been asked and indexed by google.


Prophet85 View Post
Yeah I will give that a try. However lately it feels like they don't really care answering the questions posted in the forums. If you are lucky the support might answer a mail within 1 week. I will give it a try though, thank you!


Reply With Quote
  #9 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853


planetkill View Post
Instead of monitoring problems with TS on the vps level, have an indicator on TS the sends an email alert if your account has a disconnected status

Sent using the NexusFi mobile app

Thanks, that's another good solution. What happens if TS just locks up? I have that happen sometimes (haven't deployed our VPS, but in process.... maybe by next week). I'm guessing it won't be able to send an alert.

~vmodus

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #10 (permalink)
 planetkill 
New York City + NY/United States
 
Posts: 356 since Sep 2018
Thanks Given: 108
Thanks Received: 311


What do you mean by locks up? Like the process (.exe) stops responding? I'd dig deeper into the source of the lock up.

From my own experience, I run NT8 on an azure VM, and have used aws too. The only time I've had a problem was when the program crashed, but the root cause was that I was running on an instance will too little RAM.

If tradestation randomly crashes and there is no solution such as increase memory, then perhaps tradestation is not the right platform to choose.


vmodus View Post
Thanks, that's another good solution. What happens if TS just locks up? I have that happen sometimes (haven't deployed our VPS, but in process.... maybe by next week). I'm guessing it won't be able to send an alert.

~vmodus


Reply With Quote
Thanked by:




Last Updated on July 11, 2020


© 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