Communicating with the Incommunicable

Post Reply
User avatar
rfking2
Posts: 4
Joined: Tue Jan 31, 2012 8:12 am

Communicating with the Incommunicable

Post by rfking2 »

A trick that I have used for a while to manage my trades on this go is to email a text to myself. I do this by telling a bot to send an email instead of opening a trade automatically. Then I just make that email address "my-phone-number@tmomail.net" (for Tmobile) and BAM!!! My bot is texting me when to open a trade.

Then comes the issue of oversight and execution. The text just says "Hey dude sell right now!!" But I cant reply "Yeah your right, sell!" or "Stupid bot, you need to buy!", nor can I even see why it wants me to sell.

So how do I verify its a good idea to sell? One way is to open up the android app from my criminal. But of course you cant see a bloody thing with that forex on the go Empty4 bullsh*t. I don't even know why they call it Empty4. You cant even get a moving average. So I had to set up remote desktop protocol from my phone to the server I use to manage my trading software. That way I am able to look right at the chart with the bot that sent me the text. Of course by this time I have most likely missed the move. But in the off chance I haven't, it is a pain in the a** to open a trade in a desktop view from that tiny little screen.

Its functional but I want to make it easier.

Although the text is actually sent in a multimedia message, I haven't figured out how send a screen shot to make sure its a good move. I am thinking this could be done by executing a batch file maybe?

Then comes the question of replying. It is possible to reply to the text and have it arrive at the email address. But how do you automatically monitor that address and send commands to the bot? Maybe with the use of an exchange server? That seems like trying to kill a fly with a missile.

I am really just thinking out loud to get the creative juices flowing :lol:
A truly successful trader is not in search of the holy grail, just a way to automate it without the computer F***ing it up.
Bruce Flea
Trader
Posts: 18
Joined: Mon Feb 13, 2012 4:43 am

Re: Communicating with the Incommunicable

Post by Bruce Flea »

The answer would likely lie in why your bot sent you an email in the first place.
User avatar
rfking2
Posts: 4
Joined: Tue Jan 31, 2012 8:12 am

Re: Communicating with the Incommunicable

Post by rfking2 »

Okay, I am a step closer thanks to a fellow NN coder.

This script allows you to send execute, modify, and close orders threw a CSV file.

So where you would write the following in an EA ....
OrderSend(symbol, cmd, volume, price, slippage, stoploss, takeprofit, comment, magic, expiration, arrow_color);

.... the CSV file looks like this
OrderSend, symbol, cmd, volume, price, slippage, stoploss, takeprofit, comment, magic, expiration, arrow_color

A price of Bid or Ask is interpreted correctly.

An important difference is that open orders are located using their Comment, meaning that comments should have a numerical sequence.

So OrderClose(ticket); becomes OrderClose,Comment

Now all I need to do is create or find a script that will monitor the SMTP and post the text into the file.
You do not have the required permissions to view the files attached to this post.
A truly successful trader is not in search of the holy grail, just a way to automate it without the computer F***ing it up.
sonik
Posts: 3
Joined: Tue Jan 24, 2012 1:15 am

Re: Communicating with the Incommunicable

Post by sonik »

It might be easier (and more reliable) if you were to listen for a change in a file on a web server. There is an open-source MQL function I use (I have rewritten it because I'm picky) to parse data from http://www.dailyfx.com.

http://codebase.mql4.com/source/25738

Thinking aloud here, you could write a quick mobile webpage with a simple form (input for ordertype, price, sl, tp, etc) and have it post to a file that the EA monitors.

Depending on your level of coding experience and amount of time available, you could take it several steps further. If I were doing this, I'd do the following (if EA makes recommendation):

1. EA takes a screenshot, saves as JPG.
2. EA CREATES a frontend page with screen shot, information about the trade, etc, and a confirmation with inputs that can be changed.
3. EA logs into FTP server for web host, uploads file.
4. EA emails you with link to the file.
5. You confirm or change parameters, POST, and the EA listens, parses, and acts accordingly.

This is like dropping a nuke on the fly, but that's how I would do it.
Post Reply

Return to “Coders Hangout”