Hi
Since I also wanted for a sooo long time to draw horizontal lines at the levels where there was Internet gossip that orders were clustered (read: where ForexLive says there are
, I inspired myself from this website - much respect and hat off to all developers here ! - and I created my version for this indicator. The main differences from versions 1,2 and 3 already published in this topic are:
a) the input data for the orders is in a file named "fxorders.txt" stored in a subfolder under Candleworks installation directory tree (e.g., "C:\Program Files (x86)\Candleworks\FXTS2\persistent\fxorders.txt"). Feel free to modify this indicator to have the input file provided via a File parameter.
b) the format of the input file is csv and the structure is:
instrument, order type, start date, price
where:
instrument = name of the instrument as returned by source:name() (e.g., EUR/USD)
order type = SELL or BUY
start date = format MM/DD/YYYY HH:MM, in GMT timezone
price = the price of that order
c) the indicator draws horizontal lines from the starting point=the moment when the orders were published on the Internet, to the ending point=either the moment when the price hit that order, or up to the current moment if the price didn't hit the order yet. This is the main reason I developed this version, I am too lazy to manually draw and delete lines in Marketscope. Of course, the next challenge would be to update that fxorders.txt file live from Internet.
d) the orders older than X days are not drawn any more (see the input parameters of the indicator)
e) To use this version of the horizontal lines indicator with the latest official release of Trading Station (i.e., 01.14.112415), you must hack the Indicore I/O libraries which have to do with the "io" object, that is, apply the indicore-hotfix-TS01.14.112415-020916.zip file mentioned by Mr. Alexey Pechurin on Tue Jan 26, 2016 3:13 pm at the following forum post:
http://fxcodebase.com/code/viewtopic.ph ... l&start=70That workaround was awesome, by the way.
f) You can put in the fxorders.txt file market orders or option expiries. The thing with these option expiries is that they usually expire (hence their name) at some regular hours daily (e.g., 10am EST), but you could bet that even after that hour there may be some orders clustered at the levels where the options were.
Attached: a sample fxorders.txt file which I've successfully tested, and the screenshot of the results.
- fxorders.txt
- a sample fxorders.txt file which I've successfully tested
- (675 Bytes) Downloaded 729 times
- the screenshot of the results
Feel free to modify this version at your will. Enjoy !