trading

How to keep a 10 pip profit gap between stop loss and current price as profits increase

巧了我就是萌 提交于 2019-12-04 21:35:32
问题 I am trying to add another condition to the solution in this post. I want the stop loss to move by 10 pips when a trade is in 10 pips profit. To be more specific, say I've set a pending buy order and the stop loss is 10 pips below the open price and the take profit is 50 pips. If the trade is 10 pips in profit, then the stop loss would move 10 pips upwards, if the trade moves to 20 pips in profit then the stop loss would move another 10 pips upwards, and the same would occur for 30 and 40

Is there any elegant way to define a dataframe with column of dtype array?

点点圈 提交于 2019-12-04 17:10:35
问题 I want to process stock level-2 data in pandas. Suppose there are four kinds data in each row for simplicity: millis: timestamp, int64 last_price: the last trade price, float64, ask_queue: the volume of ask side, a fixed size (200) array of int32 bid_queue: the volume of bid side, a fixed size (200) array of int32 Which can be easily defined as a structured dtype in numpy: dtype = np.dtype([ ('millis', 'int64'), ('last_price', 'float64'), ('ask_queue', ('int32', 200)), ('bid_queue', ('int32',

Developing a Java Trading Application: do patterns/frameworks exist for defining trading rules?

隐身守侯 提交于 2019-12-04 08:42:35
问题 I am in the process of designing a trading application which will use a Market's API to place orders on the Market. This isn't a complex high performance algorithmic trading application of the kind found in investment banks. This is just a small personal application which will trade maybe two or three times a day depending on market conditions/trends The application will consist (roughly) of the following modules/packages: Strategies - The actual trading algorithms Analytics - The classes for

What data source could I use for my stock market program? [closed]

两盒软妹~` 提交于 2019-12-04 07:44:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I would like to make a free open-source C++ application for both Linux and Windows which will create live stock market charts (i.e. they're refreshed frequently). Please could you give me some pointers on these issues: What should I use as the data source? Are there free services I can implement? I would like to

Building a trading platform with charts - suggestions for a Python GUI Library

雨燕双飞 提交于 2019-12-04 06:18:30
I am building a small program to retrieve data from the market and chart it in real time. While the trading decisions will be largely automated, the charts are updated continuously so that someone can keep track of how the decisions are being taken and manually intervene when necessary. What would be a good GUI Library for the task (for Python). Here are the considerations - Programming Language : Python (Do you think I should use something else? May be even do the GUI and backend in different languages?!!). Operating System : Preferably cross-platform, but if it has to be platform specific,

Is there any elegant way to define a dataframe with column of dtype array?

穿精又带淫゛_ 提交于 2019-12-03 10:48:26
I want to process stock level-2 data in pandas. Suppose there are four kinds data in each row for simplicity: millis: timestamp, int64 last_price: the last trade price, float64, ask_queue: the volume of ask side, a fixed size (200) array of int32 bid_queue: the volume of bid side, a fixed size (200) array of int32 Which can be easily defined as a structured dtype in numpy: dtype = np.dtype([ ('millis', 'int64'), ('last_price', 'float64'), ('ask_queue', ('int32', 200)), ('bid_queue', ('int32', 200)) ]) And in that way, I can access the ask_queue and bid_queue like: In [17]: data = np.random

Developing a Java Trading Application: do patterns/frameworks exist for defining trading rules?

孤者浪人 提交于 2019-12-03 00:40:28
I am in the process of designing a trading application which will use a Market's API to place orders on the Market. This isn't a complex high performance algorithmic trading application of the kind found in investment banks. This is just a small personal application which will trade maybe two or three times a day depending on market conditions/trends The application will consist (roughly) of the following modules/packages: Strategies - The actual trading algorithms Analytics - The classes for analysing the live prices & orders on the market to produce buy/sell signals Services - The classes

Low latency programming

依然范特西╮ 提交于 2019-12-03 00:02:49
问题 I've been reading a lot about low latency financial systems (especially since the famous case of corporate espionage) and the idea of low latency systems has been in my mind ever since. There are a million applications that can use what these guys are doing, so I would like to learn more about the topic. The thing is I cannot find anything valuable about the topic. Can anybody recommend books, sites, examples on low latency systems? 回答1: I work for a financial company that produces low

What data source could I use for my stock market program? [closed]

夙愿已清 提交于 2019-12-02 15:56:27
I would like to make a free open-source C++ application for both Linux and Windows which will create live stock market charts (i.e. they're refreshed frequently). Please could you give me some pointers on these issues: What should I use as the data source? Are there free services I can implement? I would like to use the same or similar information as companies like Google . I'm not sure what GUI toolkit would be best to use, is there one which has charting built in, or would I need to use a specialized library for this? Some things to note: This is my first attempt at both cross-platform C++

How to export specific price and volume data from the LMAX level 2 widget to excel

社会主义新天地 提交于 2019-12-02 14:24:55
问题 Background - I am not a programmer. I do trade spot forex on an intraday basis. I am willing to learn programming Specific Query - I would like to know how to export into Excel in real time 'top of book' price and volume data as displayed on the LMAX level 2 widget/frame on - https://s3-eu-west-1.amazonaws.com/lmax-widget/website-widget-quote-prof-flex.html?a=rTWcS34L5WRQkHtC In essence I am looking to export price and volume data where the coloured flashes occur. price and volume data for