Automated Mechanical Trading

#13
Well, if your programming language is java i can help you a bit. I am having account with www.icicidirect.com and i am using java program to interact with this site, hence getting market data as well as sending orders (using httpclient from apache and parsing html page).

But before that :
I am struggling to get right algorithm. Can some one chip some idea around this, "how does a day trader take decision" at any instance of time. I have created a small "test bed" that can test any strategy on past six month of data (1 min tick data for nifty stocks from bse).

Here is simple java program

HttpClient httpClient = new HttpClient();
HostConfiguration hostConfiguration = httpClient.getHostConfiguration();
hostConfiguration.setHost("secure.icicidirect.com", 443, "https");
String DATA_URL = "/trading/equity/trading_stock_quote.asp?Symbol=";
String url = DATA_URL + symbol.getSymbol();
PostMethod getMethod = new PostMethod(url);
int statusCode = httpClient.executeMethod(getMethod);
byte[] bytes = getMethod.getResponseBody();
String response = new String(bytes);

now you can parse the html and get data. Similarly you can simulate any post request. e.g. for log in to icici site

String url = "/customer/validlogon.asp?nFile=tradehome";
PostMethod method = new PostMethod(url);
method.addParameter("FML_USR_ID", user);//view source of html page
method.addParameter("FML_USR_USR_PSSWRD", password);
method.addParameter("startin", "1");
byte[] bytes = method.getResponseBody();
 
#14
Hi Guys,

Thanks for your replies. Software development is not an issue for me.I have already programmed to get streaming quotes. Any way PIB from indiabulls gives every tick info that is enough for any type of calculations we made. I have developed a tool using Win32 API. So As long as the Trading software(broker's terminal) is going to run in Windows operating system i will not not face any problem. But the trading system to buy/sell scrips must be profit making one.Writing programs for complex indicators,oscillators etc is waste of time(up to my knowledge).I believe in the KISS ( keep it simple, stupid) system.

Now i am following channel break out system for intra day trading. i would not say that n-channel break out system is holy grail. But it suites for intra day trading to some extent. Then you may ask why me here, i am here because most of the day ended in loss. I am testing this automation s/w with less quantity(i did some paper trading also) and not placing bulk orders. Thats why i am still in the market.

If i trade in 10 scrips, it makes 6 profit 4 loss But the loss is always high. I could not ride the wave and also i could not cut the losses. Where to put SL or where to reverse my position still a million dollar question in my mind?.
I know that no can give me the 100% perfect system but at least some ideas i expect from you all to cut losses.


I am new member to this forum. I have posted only one message after i joined. I again thank you all for your reply.

Looking for your reply..
Bye.
 
#15
Hi, ubab,

Try Open Range Breakout. It works better on index scrips than index itself. Higher volatility is the reason. You can find more about ORB from here

Make it a starting point for ur TS and add filters etc. to further improve it.

Regards
 
#16
Hi ubab

My case is just the opposite. I have a simple and high probability system to follow but do not have skills to develop software to identify scrips before the entry price. I am doing all by manual and missingout many opportunies because of lack of time and also hesitation to pull the trigger. I strongly believe if the system is automated everyday is a net plus. Need someone like you to work on this.

Regards
Richo
 
#17
Well, if your programming language is java i can help you a bit. I am having account with www.icicidirect.com and i am using java program to interact with this site, hence getting market data as well as sending orders (using httpclient from apache and parsing html page).

But before that :
I am struggling to get right algorithm. Can some one chip some idea around this, "how does a day trader take decision" at any instance of time. I have created a small "test bed" that can test any strategy on past six month of data (1 min tick data for nifty stocks from bse).

Here is simple java program

HttpClient httpClient = new HttpClient();
HostConfiguration hostConfiguration = httpClient.getHostConfiguration();
hostConfiguration.setHost("secure.icicidirect.com", 443, "https");
String DATA_URL = "/trading/equity/trading_stock_quote.asp?Symbol=";
String url = DATA_URL + symbol.getSymbol();
PostMethod getMethod = new PostMethod(url);
int statusCode = httpClient.executeMethod(getMethod);
byte[] bytes = getMethod.getResponseBody();
String response = new String(bytes);

now you can parse the html and get data. Similarly you can simulate any post request. e.g. for log in to icici site

String url = "/customer/validlogon.asp?nFile=tradehome";
PostMethod method = new PostMethod(url);
method.addParameter("FML_USR_ID", user);//view source of html page
method.addParameter("FML_USR_USR_PSSWRD", password);
method.addParameter("startin", "1");
byte[] bytes = method.getResponseBody();
well good option. though it's indirect way to achieve it but as of now this is the only way seems to me
 

Similar threads