Automated Trading from PIB.

#1
Automated Trading in PIB......from AB/TS/MS

Hi All !

The idea is,
There is a Buy signal in Amibroker / MS / TS & any of these analysis softwares, itself place the order to PIB automatically & trade is done, even if you are not in front of your computer.

This is for FUN only.atleast now I do not have a plan to create any software.
I just want to explore & taste new possibilities.

I created a sample exe. But for day to day working solution, you have store these type of exes, for each of your stocks, in a folder & code the path in AFL of Amibroker OR Metastock / TS codes.

Quantity can be defined in separate text file.
Buy/Sell signal from any indicator crossover, Stop loss order & square up orders can also be included.

Instructions for trying this particular EXE. follows

1) Do not try this in market hours. (it will actually buy a stock with market price)
2) Login to PIB.
3) Open any Marketwatch.
4) Place any fake order so that, "Transaction password" will be placed.
5) Delete this fake order OR you can even say no at order confirmation window.
6) Minimize PIB (not mandatory) & run this exe.
7) It will automatically buy 1 quantity of a stock which is at number 3 in your marketwatch. It will be intraday, Market order.

There must be cash stock at number 3 in marketwatch. I did not post exe for "future contract" because the lot order will be in, lacs of rupees & if somebody mistakenly try it in market hours, it can cause big loss to him.


DO NOT FORGET to DELETE this OFFLINE INTRADAY ORDER. It will be in Intraday option of Modify/Delete Order menu.

DO NOT TRY THIS IN MARKET HOURS. It will actually buy one share at market price.


If you like the idea, don't forget to reply.

Link is discontinued now.
http://www.4shared.com/file/29065394/ea300440/Fun.html


Regards
Omkar.
 
Last edited:
#2
Example

Example for Amibroker

When there is certain MACD crossover, in Amibroker, 1 Share will be baught automatically in PIB. Without any manual intervention.
(assuming Fun.exe located in c:\omkar directory)
modify the formula as your need.

Buy = Cross( MACD(), Signal() );
Sell = Cross( Signal(), MACD() );
Short = Sell;
Cover = Buy;
AlertIf( Buy, "EXEC C:\\Omkar\\Fun.exe", "", 2 );


For TS

There is Run command for external exes. You can use Command Line MACROS, from Analysis Techniques or Strategies.


For Metastock

I don't know much about MS codes but there must be something similar in it.
 
Last edited:
#5
For fun it is good!!!

Automated trading is banned in india as per some info posted here in the thread!

Many of the traders have been doing it using a software called Autoit and brokers software!

Thanks for the soft/fun omkar!
 
#6
kgsirasangi, hari09omkar & kuriako
Thank you very much for the reply.:)

******

Hello kgsirasangi,
Practically this is the setup, one have to create very carefully, as there is real money involved. eg. you create a data fetching / accounting soft with a bug, it wont wreak havoc (very little chance of direct fin loss). but error in auto trading setup can cause some serious losses easily.

Though it is possible to place, safeguards with minimum human intervention.
It can not be done 'make & post' way. So till then, let it remain fun.

******

Dear kuriako,

It can not be banned / illegal if you do it this way.
Legally, broker can't provide it to you, integrated in his soft.

I noticed, if you take enough care, the executable can be made such a way that, they can work better than professional Mechanical trading softs.
But again, somebody have to spend time for such sophistication.

Regards
Omkar
 

Similar threads