IKYP - How I solved email troubles on VPS - futures io
futures io

IKYP - How I solved email troubles on VPS

Discussion in NinjaTrader

    1. trending_up 402 views
    2. thumb_up 2 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 3 attachments

Welcome to futures io: the largest futures trading community on the planet, with well over 150,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

Search this Thread

IKYP - How I solved email troubles on VPS

(login for full post details)
  #1 (permalink)
BERN Algos
bologna italy
Posts: 15 since Jun 2022
Thanks: 3 given, 7 received

Having a bunch of strategies in a VPS running while you are busy with something different is not the most relaxing thing ever. You know, if something could go wrong, it will.

Now, Ninjatrader comes with the possibility to configure so-called share services, email in particular, that can be used as a "whatchdog" service to improve user feeling even when a connection to the VPS is not possible. This process is not complex by itself but it becomes more and more messy when you start sending mail. I'm not the only one experiencing up and down days, some smoothly working, some other absolutely not, with no apparent reason.

I spent a lot of time searching solutions in forum and other stuff, this is my conclusion and how I addressed it.

a) more or less all public mail servers have this two-step verification process. It's not trivial but feasible, follow instructions, it will work.

b) public mail servers like gmail, yahoo, etc. have anti-spam filters AI-based. This is something barely not documented, for obvious reasons, but this is the point in my opinion. My "account equity" emails are simply too similar to each other, with no natural language in them, the same title, only numbers. They are seen as spam by the AI filter. In some kind of erratic way, after a dozen of email, the AI puts this kind of message in black list and starts rejecting any of them. At least for some days.

Once I came to the conclusion above, that's how I configured my system to solve this issue:

c) I created a strategy that generates smart, anti-spam email by randomly changing title and filling text body with different information each time. The strategy is called IKYP and it's attached. A couple of examples of email generated by IKYP are attached as well.

d) I added a MX record to DNS in my window server. You can find details by typing "add mx record windows server" in google. I'm totally numb at IT, so if I was able to do it, everybody can.

Strategy instructions are included into the code. Btw:

// IKYP - I'll Keep You Posted - strategy by BERN ALGOS - November 2022 - Rev01
// This strategy is intended to keep VPS user informed on a regular basis on his
// algos trading progress. IKYP sends an email every time a change in account balance
// is detected with a sampling time of 5 minutes. A mail is anyway sent every
// 2 hours even if the account balance is unchanged, to keep user informed that
// both NT & VPS are running.
// The account balance is resumed in the mail title, open and closed trades are listed
// inside the mail body. Title text is randomly changed to reduce the spam ranking
// assigned by most of mail servers filters to chain of quite similar emails.
// How to use it:
// - Edit email and account name in strategy parameters
// - Select a running instrument (MES in example)
// - Recommended timeframe is 5 minutes
// - Enable the strategy in the strategy tab
// Requires a sharing service properly configured in NT8

Attached Thumbnails
Click image for larger version

Name:	mail.jpg
Views:	17
Size:	65.7 KB
ID:	328143   Click image for larger version

Name:	mail2.jpg
Views:	18
Size:	75.8 KB
ID:	328144  
Attached Files
Register to download File Type: zip BERN ALGOS IKYP rev1.zip (2.5 KB, 16 views)
Reply With Quote
The following 2 users say Thank You to BERN Algos for this post:

futures io Trading Community Platforms and Indicators NinjaTrader > IKYP - How I solved email troubles on VPS

Last Updated on November 14, 2022

Upcoming Webinars and Events

NinjaTrader Indicator Challenge!


Copyright © 2022 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
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.
no new posts