Anyone here familiar with MT4?
-
- Roundtable Knight
- Posts: 1436
- Joined: Mon Dec 22, 2003 12:24 pm
- Location: Des Moines, IA
- Contact:
Anyone here familiar with MT4?
Does it have any portfolio management capabilities, like can I run a simple script to close x% of all open positions?
-
- Roundtable Knight
- Posts: 138
- Joined: Wed Nov 10, 2004 4:36 pm
I have seen scripts/EAs available online (Google gets many hits) to close all open positions/cancel pending orders etc. so I'm sure it would be trivial to change these to close X% of open positions.can I run a simple script to close x% of all open positions?
I too have recently looked at Metatrader 4 and I soon came up against a few programming obstacles (at least obstacles for me and what I would like to do).
- There is a limit to the number of indicators [buffers] that can be attached to a single chart window
Having the output of one indicator [buffer] as input to another indicator [buffer] in a different window involves some major hacking or repetition of the first indicator code in the second indicator
If you want to write your own DLLs for speed purposes there is very little support (forums etc.) available compared to MQL support
-
- Roundtable Knight
- Posts: 138
- Joined: Wed Nov 10, 2004 4:36 pm
I'm not a user of CSI or Blox, but I would say the answer is almost definitely yes. I have read online about Metatrader scripts to automate history export to ASCII files, which could then be imported to Blox. For end of day trading (I believe CSI data is end of day only) this would just mean changing your routine fromCan this conveniently be used as a substitute for CSI for order generation in Blox?
- use Unfair Advantage to download price - import to Blox
- Run Metatrader script while connected to broker - import to Blox
-
- Roundtable Knight
- Posts: 138
- Joined: Wed Nov 10, 2004 4:36 pm
I found the Metatrader to R interface I mentioned above here. You might be able to cannibalise some of the code for your purposes; it's all open source.
For those of you that trade with Interactive Brokers, there is the really good C# wrapper for IB API at http://www.dinosaurtech.com/utilities/
It can help you make an automated trade entry program
Also, for some system you can also look at Tradebullet http://www.tradebullet.com/
This one can work with many broker and it can read ascii file that you create on your Order Generation script
It can help you make an automated trade entry program
Also, for some system you can also look at Tradebullet http://www.tradebullet.com/
This one can work with many broker and it can read ascii file that you create on your Order Generation script
How did u go with the mt4 data?LeviF wrote:I was up till 230AM last night working on an MT4 script that will automatically place orders with my broker based on Blox output. I am coming along slowly but steadily; it sure is satisfying as your code comes together and you get your desired output piece by piece...
I was playing with this idea for sometime, u can download and save each file in csv, however im in talks with a mt4 broker to simply things, pm me if your interested in code exchange and solutions.
looks like you have sorted then: ) i was trying to access and and go through there .dat and .hst files but encryption is always a pain, lol ..LeviF wrote:I wrote a script that downloads the daily OHLC data for the instruments in my portfolio, a script that processes entry/exit orders spit out from TB, and a script that enters all positions to synch with TB.
Mt4/5 sales have quoted me 100k to have there software, i have suggested to them to set up a api as i want to run orders, charts etc via a .asp website i have, would be nice, but i doubt they will do it.
I will most likely end up having a crack at something similar to what you have done for now but i doubt i will be able to set it up to send orders for my intraday system fast enough.
I day trade from a certain time, but my orders may be generated in seconds on that time or they may not be generate for hrs, i normally get 1-2 trades per day per each currency and i use 5,15 and hr bars but i could live on 5 or just 15.
Long story short ive stuck with building my intraday strategies in MT4 and used Tb what its best for EOD.
I have MT4 intraday system/s that always bring in the daily bread every day without fail, happy to exchange code to save time (discretion condition's applies), : )
(enters all positions to synch with TB) is this for portfolio update only?