<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Currency Secrets &#187; Auto Execution</title>
	<atom:link href="http://www.currencysecrets.com/category/forex-trading/auto-execution/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.currencysecrets.com</link>
	<description></description>
	<lastBuildDate>Sat, 31 Jul 2010 04:01:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>HiveTrader</title>
		<link>http://www.currencysecrets.com/2007/08/13/hivetrader/</link>
		<comments>http://www.currencysecrets.com/2007/08/13/hivetrader/#comments</comments>
		<pubDate>Mon, 13 Aug 2007 04:40:57 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Auto Execution]]></category>
		<category><![CDATA[FXEngines]]></category>
		<category><![CDATA[Forex Systems]]></category>
		<category><![CDATA[Forex Tester]]></category>
		<category><![CDATA[HiveTrader]]></category>

		<guid isPermaLink="false">http://www.currencysecrets.com/2007/08/13/hivetrader/</guid>
		<description><![CDATA[There&#8217;s a website that I&#8217;ve just recently come across which offers an excellent way for forex traders to automate their strategies. In a similar style to Mark&#8217;s Thinking Stuff Forex trading software where the user is given a NON-programming approach to automating their strategy this web site similarly provides the ability for the user to [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a website that I&#8217;ve just recently come across which offers an excellent way for forex traders to automate their strategies.</p>
<p>In a similar style to Mark&#8217;s <a href="http://www.thinkingstuff.com" target="_blank">Thinking Stuff</a> Forex trading software where the user is given a NON-programming approach to automating their strategy this web site similarly provides the ability for the user to test a myriad of trading strategies and to then trade those strategies LIVE via your FXCM account.</p>
<p>What made this web site even more compelling was the fact that all this (so far) is offered FREELY!! </p>
<p>Basically here&#8217;s how it works:<br />
1. First you start at the SIGNAL end by compiling your entry and exit signals on selected time frames (you&#8217;re unfortunately only limited to the signals offered). If you&#8217;ve created some exit signals be sure to create a &#8220;Contextual Exit&#8221; otherwise your exit signals will not be used when you formulate your system.<br />
2. When you&#8217;re happy that you&#8217;ve got your signals listed, jump over to SYSTEMS and select which currency pair you&#8217;d like to test your singals on, which direction (either Long or Short), what the order type should be once your entry signals are satisfied, and at what times you would want your system to run on (i.e. ALL, or just during the London session, or NY session&#8230; etc). Lastly, select your exit strategy.<br />
3. Then move over to TESTS and create a new test. Select the strategy you want to test and the date range of your backtest and hit start.<br />
4. Wait a few minutes and you&#8217;ll soon have your results sent to your email address. </p>
<p>Easy, huh?</p>
<p>Okay, so what are the downsides of this service?</p>
<p>Well, I think one issue that some people might have is that your systems are public. I suppose this is a negative and a positive, because on the one hand you can look at other people&#8217;s systems and tweak them to suit your own trading personality, yet on the other hand YOUR edge may begin to lose its profitability if others start using it. </p>
<p>Another problem is that you&#8217;re only limited to 100 signals, systems and tests per account. This may not sound like much, but considering that you can only test one currency in one direction at a time 8 tests can be chewed up quite easily on one system if the user tests both LONG and SHORT on each of the four majors.</p>
<p>Lastly, I&#8217;d prefer if I could access the test results better &#8211; maybe an export to CSV file or something of that nature. Ideally I&#8217;d like to see something whereby we have a table that has at least the following: ENTRY DATE &#038; TIME, ENTRY PRICE, INITIAL STOP LOSS (IF ANY), EXIT DATE &#038; TIME, EXIT PRICE, MAE, MFE, P/L (IN PIPS). </p>
<p>Anyway, <a href="http://www.hivetrader.com" target="_blank">HiveTrader</a> is definitely worth a look and I would encourage you to go over and have a little play. </p>
<p>(If you like you can include my username <strong>currsec</strong> in the referrer ID when you register your account &#8211; I don&#8217;t make anything by you doing so.)</p>
<p>Tags: 
<a href="http://www.currencysecrets.com/category/forex-trading/auto-execution" rel="tag directory">Auto Execution</a>, 
<a href="http://www.currencysecrets.com/category/forex-signal/fxengines" rel="tag directory">FXEngines</a>, 
<a href="http://www.currencysecrets.com/category/forex-systems" rel="tag directory">Forex Systems</a>, 
<a href="http://www.currencysecrets.com/category/forex-trading/forex-tester" rel="tag directory">Forex Tester</a>, 
<a href="http://www.currencysecrets.com/category/forex-trading/hivetrader" rel="tag directory">HiveTrader</a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.currencysecrets.com/2007/08/13/hivetrader/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>CMS API Part 4: Wealth-Lab Dilemma &#8211; Is This The End?</title>
		<link>http://www.currencysecrets.com/2006/04/12/cms-api-part-4-wealth-lab-dilemma-is-this-the-end/</link>
		<comments>http://www.currencysecrets.com/2006/04/12/cms-api-part-4-wealth-lab-dilemma-is-this-the-end/#comments</comments>
		<pubDate>Thu, 13 Apr 2006 02:15:40 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Auto Execution]]></category>
		<category><![CDATA[Forex Trading]]></category>

		<guid isPermaLink="false">http://www.currencysecrets.com/2006/04/12/cms-api-part-4-wealth-lab-dilemma-is-this-the-end/</guid>
		<description><![CDATA[Well it seems I&#8217;ve hit my first brick wall with automating a system on Wealth-Lab. Just as I had finished coding up the CancelOrder procedure had I soon discovered that Wealth-Lab does not offer the functionality of flushing its alerts window. What&#8217;s so important about that? I hear you ask. You know how we created [...]]]></description>
			<content:encoded><![CDATA[<p>Well it seems I&#8217;ve hit my first brick wall with automating a system on Wealth-Lab.</p>
<p>Just as I had finished coding up the CancelOrder procedure had I soon discovered that Wealth-Lab does not offer the functionality of flushing its alerts window. </p>
<p>What&#8217;s so important about that? I hear you ask.</p>
<p>You know how we created the alerts so that it would accurately showed us how much of a particular order was attributed to closing an already existing position and how much of the other portion was to initiate a new position&#8230; well, it seems that if we ever wanted to cancel an order that was split like this the side that was not cancelled would still be shown as active. Allow me to illustrate this by way of an example:</p>
<p>Let&#8217;s say we have already bought 5 GBPUSD contracts (therefore we are LONG 5 GBPUSD) and these 5 contracts do not have an attached stop loss order. Now let&#8217;s assume that we place an order to SELL 9 GBPUSD contracts. If we open Wealth-Lab and login to our CMS demo brokerage account our alerts screen will show something like this:</p>
<p>Sell 5 GBPUSD<br />
Short 4 GBPUSD</p>
<p>Which is correct.</p>
<p>However, it we click on the cancel button for any one of these two orders the ENTIRE order will be cancelled, even though the alerts window will show one as being active! </p>
<p>eg. If we were to cancel the first order&#8230;</p>
<p>Cancelled 5 GBPUSD<br />
Short 4 GBPUSD</p>
<p>Are there any workarounds?</p>
<p>At the moment this is what I&#8217;m trying to figure out, BUT if we think about this carefully do we really want &#8220;workarouds&#8221;? I mean, I don&#8217;t know about you, but I&#8217;d prefer to have NO workarounds at all if I want to eventually put real money on the line.</p>
<p>However, if we are to integrate this into Wealth-Lab we would need to change the alerts window so that each line reflects one order, continuing with our example above our order to sell 9 GBPUSD&#8217;s would look like this in the alert window:</p>
<p>Short 9 GBPUSD</p>
<p>Again though I think this is where things will begin to get messy as we simply cannot refesh the alerts window in Wealth-Lab and as Wealth-Lab needs to be linked to a portfolio if we start amassing too many entry orders (even though they may not be entry orders at all in CMS) it will begin to bog down the entire process.</p>
<p>Could this be the end of the road?</p>
<p>Possibly, and if it is it was still a worthwhile experience.</p>
<p>Tags: 
<a href="http://www.currencysecrets.com/category/forex-trading/auto-execution" rel="tag directory">Auto Execution</a>, 
<a href="http://www.currencysecrets.com/category/forex-trading" rel="tag directory">Forex Trading</a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.currencysecrets.com/2006/04/12/cms-api-part-4-wealth-lab-dilemma-is-this-the-end/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Amendments to Previous VC# Code in Part 3</title>
		<link>http://www.currencysecrets.com/2006/04/10/amendments-to-previous-vc-code-in-part-3/</link>
		<comments>http://www.currencysecrets.com/2006/04/10/amendments-to-previous-vc-code-in-part-3/#comments</comments>
		<pubDate>Mon, 10 Apr 2006 11:27:41 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Auto Execution]]></category>
		<category><![CDATA[Forex Trading]]></category>

		<guid isPermaLink="false">http://www.currencysecrets.com/2006/04/10/amendments-to-previous-vc-code-in-part-3/</guid>
		<description><![CDATA[If you&#8217;ve been following the CMS API auto-trading articles the VC# code in the previous article was incorrect. If you conducted some testing you would have noticed that if you placed multiple orders that tallied greater than its open position quantity you would have seen an output that would have been wrong. As an example, [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve been following the CMS API auto-trading articles the VC# code in the previous article was incorrect.</p>
<p>If you conducted some testing you would have noticed that if you placed multiple orders that tallied greater than its open position quantity you would have seen an output that would have been wrong.</p>
<p>As an example, if you were long 1 mini USDJPY position (with NO attached stop loss orders) and placed 3 individual 1 mini stop sell orders on the USDJPY you would have seen on the alerts something to the effect of:</p>
<p>Sell 1 USDJPY<br />
Short 2 USDJPY </p>
<p>This is incorrect as we need to return each individual order, such as:</p>
<p>Sell 1 USDJPY<br />
Short 1 USDJPY<br />
Short 1 USDJPY</p>
<p>With this new code it seems to have solved this problem.</p>
<p>If you&#8217;ve been following and have used the previous code download the latest one <a href="http://www.currencysecrets.com/archives/vc04.txt" target="_blank">here</a>. If you&#8217;ve used the code in the part 3 article after this date then you don&#8217;t need to worry you would have downloaded the correct version.</p>
<p>Tags: 
<a href="http://www.currencysecrets.com/category/forex-trading/auto-execution" rel="tag directory">Auto Execution</a>, 
<a href="http://www.currencysecrets.com/category/forex-trading" rel="tag directory">Forex Trading</a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.currencysecrets.com/2006/04/10/amendments-to-previous-vc-code-in-part-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Our First Alerts To Wealth-Lab (Part 3)</title>
		<link>http://www.currencysecrets.com/2006/04/05/adding-our-first-alerts-to-wealth-lab-part-3/</link>
		<comments>http://www.currencysecrets.com/2006/04/05/adding-our-first-alerts-to-wealth-lab-part-3/#comments</comments>
		<pubDate>Wed, 05 Apr 2006 15:51:00 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Auto Execution]]></category>
		<category><![CDATA[Forex Trading]]></category>

		<guid isPermaLink="false">http://www.currencysecrets.com/2006/04/05/adding-our-first-alerts-to-wealth-lab-part-3/</guid>
		<description><![CDATA[This article is Part 3 of a forex auto-trading series I am currently undertaking. If you haven&#8217;t already done so you want to read through the other two parts before continuing on. Over the last couple of days I&#8217;ve been racking my brain over how best to have WLD read open orders. Think about this [...]]]></description>
			<content:encoded><![CDATA[<p>This article is Part 3 of a forex auto-trading series I am currently undertaking. If you haven&#8217;t already done so you want to read through the <a href="http://www.currencysecrets.com/category/forex-trading/auto-execution/" target="_blank">other two parts before continuing on</a>.</p>
<p>Over the last couple of days I&#8217;ve been racking my brain over how best to have WLD read open orders.</p>
<p>Think about this for a second:</p>
<p>If I am long 3 mini lots on the EURUSD, and I place a stop and reverse order to sell 6 minis on the EURUSD how should this order register on WLD?</p>
<p>Now before you contemplate an answer remember than CMS and WLD have two different order types. CMS has only buy and sell, Wealth-Lab on the other hand has Buy, Sell, Cover and Short &#8211; therefore our alerts are going to need to be a little more precise.</p>
<p>In answer to my question above though, in Wealth-Lab we will need to show 3 lots as being of the order type &#8220;Sell&#8221; and 3 lots as being of the type &#8220;Short&#8221; &#8211; as the first lot will see the closing out of an already existing position, whereas the next lot will be the opening of a new short position.</p>
<p>Okay, several other things I noticed about CMS&#8217;s order types is that they signal whether a position is attached to an already open position. In other words, if you attach a stop or limit order to a trade these stop and limit orders will be different to a limit or stop order that isn&#8217;t attached to another order.</p>
<p>CMS do this by simply denoting attached orders as &#8220;L&#8221; (limit) or &#8220;S&#8221; (stop) and unattached orders as &#8220;EL&#8221; (entry limit) or &#8220;ES&#8221; (entry stop).</p>
<p>This does help as we now know that every order that is denoted by an L or an S is one that is attached to an already existing position, therefore, it can only be a &#8220;Sell&#8221; order type or a &#8220;Cover&#8221; order type.</p>
<p>While this seems so much easier in print it ended up being quite a pain trying to get it down into code for orders that are unattached as we still needed to find out whether there were any orders that were open and didn&#8217;t have attached orders.</p>
<p>Anyway, <a href="http://www.currencysecrets.com/archives/vc04.txt" target="_blank">here is the new code</a> that you should paste over your existing VC# CMSAPI project. </p>
<p><b>Don&#8217;t forget to change the username and password fields in the script to your demo account&#8217;s username and password.</b></p>
<p>Hit F6 (or Build > Build Solution) and before you open up Wealth-Lab open up your VT platform and login to your demo account and place a few trades (otherwise nothing will register in your alerts screen in WLD).</p>
<p>Enter into a currency at market and then place a stop order for a lesser, or more quantity than the amount you just went at market with.</p>
<p>Try this for other currencies before opening up Wealth-Lab, maybe even place a few stop and limit entry orders with attached stops/limits.</p>
<p>Write down what Wealth-Lab will need to show &#8211; don&#8217;t forget that WLD uses Buy, Sell, Short and Cover so you may really need to nut out what will happen if you&#8217;ve put some complex orders on.</p>
<p>You should notice that when you open WLD and login to your broker that the orders display as your answers should.</p>
<p>You may also notice that attached stop and limit orders to entry stop and limit orders aren&#8217;t shown. There&#8217;s a good reason for this: these orders aren&#8217;t active &#8211; they&#8217;re an If-Done type of order, meaning that they will only become active if the entry stop or limit order turns into an open position.</p>
<p>Tags: 
<a href="http://www.currencysecrets.com/category/forex-trading/auto-execution" rel="tag directory">Auto Execution</a>, 
<a href="http://www.currencysecrets.com/category/forex-trading" rel="tag directory">Forex Trading</a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.currencysecrets.com/2006/04/05/adding-our-first-alerts-to-wealth-lab-part-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why Are You Doing This Autotrade Thing?</title>
		<link>http://www.currencysecrets.com/2006/04/02/why-are-you-doing-this-autotrade-thing/</link>
		<comments>http://www.currencysecrets.com/2006/04/02/why-are-you-doing-this-autotrade-thing/#comments</comments>
		<pubDate>Mon, 03 Apr 2006 05:37:06 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Auto Execution]]></category>
		<category><![CDATA[Forex Trading]]></category>

		<guid isPermaLink="false">http://www.currencysecrets.com/2006/04/02/why-are-you-doing-this-autotrade-thing/</guid>
		<description><![CDATA[I thank all of those who have participated in adding comments to the posts on auto-trading and I look forward to further insights and discussions from all of you as we continue down this path. What I&#8217;d like to do is to just explain myself a little further on why I am undertaking this journey [...]]]></description>
			<content:encoded><![CDATA[<p>I thank all of those who have participated in adding comments to the posts on <a href="http://www.currencysecrets.com/category/forex-trading/auto-execution/" target="_blank">auto-trading</a> and I look forward to further insights and discussions from all of you as we continue down this path.</p>
<p>What I&#8217;d like to do is to just explain myself a little further on why I am undertaking this journey as well as provide some disclaimers to those who are following along.</p>
<p>Firstly, I undertook this task as an adventure. </p>
<p>I have used Wealth Lab Developer for several years and have used the product fairly extensively during those three years. As I feel I know the Wealth Lab platform quite well I thought I could undertake the task of creating a forex broker API to see if I could auto-trade &#8211; as this functionality exists (I suppose my attitude is similar to British climber George Mallory&#8217;s when he climbed Mount Everest in 1924, when asked why he did it, he responded with, &#8220;Because it&#8217;s there&#8221;) .</p>
<p>So, just as George did, I too am embarking on my own Mount Everest: auto-trading the forex market through WLD&#8230; because it&#8217;s there.</p>
<p>While I don&#8217;t doubt that other platforms, such as MetaTrader, can provide auto-trading functionality I thought I&#8217;d rather spend my time learning VB.NET (or VC#) which can help broaden my programming horizons that may possibility add further functionality to WLD or to other things in general. </p>
<p>Which leads into my disclaimer.</p>
<p>I haven&#8217;t coded <b>any</b> VB.NET (or VC#) stuff EVER, therefore, if we ever do get to the end of this adventure you should check the code THOROUGHLY before even contemplating using it on a real account.</p>
<p>I know for myself personally that I&#8217;ll be stringently testing any system I wish auto-traded for at LEAST 1 month on a demo account before moving it to a real account, and even then I would still be a little skeptical on the process.</p>
<p>So please understand this &#8220;adventure&#8221; could just be that &#8211; an adventure. However I do want to know if I <em>can</em> do this, and what problems or benefits such an adventure can bring to my forex trading skills.</p>
<p>All in all I hope we all learn something through the experience.</p>
<p>I wish everyone the best with their forex trading success.</p>
<p>Tags: 
<a href="http://www.currencysecrets.com/category/forex-trading/auto-execution" rel="tag directory">Auto Execution</a>, 
<a href="http://www.currencysecrets.com/category/forex-trading" rel="tag directory">Forex Trading</a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.currencysecrets.com/2006/04/02/why-are-you-doing-this-autotrade-thing/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Connecting To CMS&#8217; VT Via Its API (Part 2 of the WLD CMS API Series)</title>
		<link>http://www.currencysecrets.com/2006/04/02/connecting-to-cms-vt-via-its-api-part-2-of-the-wld-cms-api-series/</link>
		<comments>http://www.currencysecrets.com/2006/04/02/connecting-to-cms-vt-via-its-api-part-2-of-the-wld-cms-api-series/#comments</comments>
		<pubDate>Mon, 03 Apr 2006 04:31:46 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Auto Execution]]></category>
		<category><![CDATA[Forex Trading]]></category>

		<guid isPermaLink="false">http://www.currencysecrets.com/2006/04/02/connecting-to-cms-vt-via-its-api-part-2-of-the-wld-cms-api-series/</guid>
		<description><![CDATA[If you haven&#8217;t read the first part to this series I suggest you do so before reading any further. Now that we have a successfully created a link between our dll file and WLD we now need to similarly create a link between our dll file and CMS&#8217;s VT platform. In this short lesson we [...]]]></description>
			<content:encoded><![CDATA[<p>If you haven&#8217;t read the <a href="http://www.currencysecrets.com/2006/03/30/programming-a-cms-forex-broker-adapter-in-wealth-lab-developer-30-part-1/" target="_blank">first part</a> to this series I suggest you do so before reading any further.</p>
<p>Now that we have a successfully created a link between our dll file and WLD we now need to similarly create a link between our dll file and CMS&#8217;s VT platform.</p>
<p>In this short lesson we will simply connect to our VT DEMO platform and return the account balance and usable margin.</p>
<p>Here&#8217;s what we do&#8230;</p>
<p>With VC# 2005 Express Edition open and our VC# CMSAPI code open we need to firstly <b>add</b> another COM reference, being VT&#8217;s.</p>
<p>We do this by clicking on Project > Add Reference > COM > select VTAPI Library 1.0 > click OK.</p>
<p>We then implement VTAPI&#8217;s events into the new code which will make it look like <a href="http://www.currencysecrets.com/archives/vc02.txt" target="_blank">this</a>.</p>
<p>Alright, our idea is to now write some code that will do the following:</p>
<p>1. It will login us in to the VT platform &#8211; if it is unsuccessful it should tell us;</p>
<p>2. Return our account balance and usable margin once it is successfully logged in.</p>
<p>Easy.</p>
<p>The procedure we will need to edit will be the Login one, as this is what WLD will call when we click on the &#8220;Broker Login&#8221; button in the Order Manager section.</p>
<p>If you haven&#8217;t already done so you may want to go and <a href="http://www.cmsfx.com/en/open_account/demo/" target="_blank">register a free demo account from CMS</a> &#8211; you will need your newly registered demo username and password to send to the VT servers to login.</p>
<p>Once you have your username and password from CMS Forex you will need to enter these values into your VC# code.</p>
<p>In the procedure that is labelled <em>Login(IWealthLabBrokerUpdate3 Broker, IWealthLabConnection Conn)</em> we will add the code which will check to make sure we have entered the right login info and will then return to Wealth-Lab a successful &#8220;Connected&#8221; stamp as well as our Balance and UsableMargin values. If it doesn&#8217;t succeed we will want to return a connection &#8220;Failure&#8221; stamp as well as the reason.</p>
<p>This should make our code now look like <a href="http://www.currencysecrets.com/archives/vc03.txt" target="_blank">this</a>.</p>
<p>Once you have successfully changed the code according to your forex demo account&#8217;s details you simply need to Build Solution (Build > Build Solution &#8211; or hit F6).</p>
<p>Open up WealthLab, click on Order Manager, ensure CMS VC# is selected and hit &#8220;Broker Login&#8221;.</p>
<p>Hopefully within a matter of about 10-20 seconds you will see the word &#8220;Connected&#8221; followed by your demo accounts Balance and Usable Margin! If you get any errors check that you have entered correctly your username and password and have accType = 0.</p>
<p>Next we will continue by adding some more stuff into the Login procedure that Wealth-Lab needs to add to the Order Manager screen.</p>
<p>Tags: 
<a href="http://www.currencysecrets.com/category/forex-trading/auto-execution" rel="tag directory">Auto Execution</a>, 
<a href="http://www.currencysecrets.com/category/forex-trading" rel="tag directory">Forex Trading</a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.currencysecrets.com/2006/04/02/connecting-to-cms-vt-via-its-api-part-2-of-the-wld-cms-api-series/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programming A CMS Forex Broker Adapter in Wealth Lab Developer 3.0 &#8211; Part 1</title>
		<link>http://www.currencysecrets.com/2006/03/30/programming-a-cms-forex-broker-adapter-in-wealth-lab-developer-30-part-1/</link>
		<comments>http://www.currencysecrets.com/2006/03/30/programming-a-cms-forex-broker-adapter-in-wealth-lab-developer-30-part-1/#comments</comments>
		<pubDate>Thu, 30 Mar 2006 10:04:36 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Auto Execution]]></category>
		<category><![CDATA[Forex Trading]]></category>

		<guid isPermaLink="false">http://www.currencysecrets.com/?p=171</guid>
		<description><![CDATA[To say I&#8217;ve had fun over the last couple of days since my crazy expedition to create a Wealth Lab broker adapter fit for trading on CMS is an understatement. It&#8217;s been nothing short of frustrating! Especially since I&#8217;ve never done programming on this level before &#8211; just a little bit of VBA. But&#8230; we [...]]]></description>
			<content:encoded><![CDATA[<p>To say I&#8217;ve had fun over the last couple of days since my crazy expedition to create a Wealth Lab broker adapter fit for trading on CMS is an understatement.</p>
<p>It&#8217;s been nothing short of frustrating!</p>
<p>Especially since I&#8217;ve never done programming on this level before &#8211; just a little bit of VBA.</p>
<p>But&#8230; we all need to start somewhere, and I&#8217;m a firm believer that if you REALLY want to learn something you either teach it or do something with an intended goal in mind.</p>
<p>At the moment it&#8217;s the latter: building a WLD CMS broker adapter.</p>
<p>Okay, here&#8217;s what I&#8217;ve learnt if you&#8217;re interested in doing this yourself or just waiting for me to pass out. Either way by writing this out it in here it allows some of my sanity to return!</p>
<p>Firstly, I can&#8217;t get Visual Basic&#8217;s 2005 Express Edition to create a foundational WLD broker script. But creating a script in Visual C# 2005 Express Edition was a breeze, and I think it has to do with one small tweak you need to do in VC# that, for the life of me, I cannot find in VB.</p>
<p>But firstly, here are the testing scripts just to make sure we&#8217;ve laid the correct foundation:</p>
<p>To create a project in either of them you just click on File > New Project > Class Library > <em>Enter a class name such as VTAPI</em> and then hit OK.</p>
<p><a href="http://www.currencysecrets.com/archives/vb01.txt" target="_blank">Copy all of the following code into the VB script that opens (copy it over everything).</a></p>
<p>Now what you&#8217;ll need to do is import the WLD COM object and this is done by clicking on Project > Add Reference > COM > select WealthLab Library 1.0 > click OK.</p>
<p>Lastly you&#8217;ll need to click on Project > VTAPI Properties&#8230; > Assembly Information > select &#8220;Make assembly COM-Visible > click OK.</p>
<p>Click on the Save All button (which is the button with three floppy disks &#8211; to the right of the normal save button) and save it as &#8220;VTAPI&#8221;. After when that is done click on Build > Build VTAPI and a dll file has now been created.</p>
<p>Was that easy or what?</p>
<p>Well&#8230; not so fast, if you can remember I said that the VB script doesn&#8217;t work. We can check that in WLD now, but first we need to create a file so that WLD knows where to look for our dll file.</p>
<p>We do this by simply creating the following file:</p>
<p><a href="http://www.currencysecrets.com/archives/wld-vb01.txt" target="_blank">WLD VB CMS Broker Adapter</a></p>
<p>(change the path to wherever you stored the dll file, most people using Windows XP will only need to change the &#8220;@@@@@@&#8221; section in that file to their Windows XP username)</p>
<p>Save this file in the root directory of your Wealth-Lab Developer folder, for most people this will be <b>c:\Program Files\Wealth-Lab, Inc\Wealth-Lab Developer 3.0\</b> and save it as BrokerAdapter_CMS.txt (this is important).</p>
<p>Crank up Wealth-Lab click on Order Manager make sure CMS Forex is selected and then click on Broker Login.</p>
<p>Hopefully (or should that be unfortunately?) you&#8217;ll come across an error message box that says:</p>
<p><em>System error. Code: 203.<br />
The system could not find the environment option that was entered</em></p>
<p>(If you get an error message that says something to the effect of &#8220;The specified module could not be found&#8230;&#8221; it means that you&#8217;ll need to open the BrokerAdapter_CMS.txt file up and check that the path you&#8217;ve entered is indeed the path that leads to the dll file in the VTAPI/Release folder, if not change it accordingly.)</p>
<p>I have no idea what that error box means, but it&#8217;s not good because our adapter didn&#8217;t work. After trying a million different things such as regasm (etc) I still couldn&#8217;t get it to work. </p>
<p>Thankfully I had VC# installed&#8230; and it is here where we DO get the broker adapter to work.</p>
<p>Here&#8217;s the process:</p>
<p>Firstly, crank up the program, click on File > New Project > Class Library > <em>Enter a name such as CMSAPI</em> and then hit OK.</p>
<p><a href="http://www.currencysecrets.com/archives/vc01.txt" target="_blank">Copy all of the following code into the script window that opens &#8211; copy it over everything.</a></p>
<p>As we did for the VB script we&#8217;ll need to change some of the settings.</p>
<p>Click on Project > Add Reference&#8230; > COM > select WealthLab Library 1.0 > click OK.</p>
<p>Click on Project (again) > CMSAPI Properties > Assembly Information&#8230; > select &#8220;Make assembly COM-Visible&#8221; > click OK</p>
<p>After when you&#8217;ve clicked OK click on Build (underneath Application with the active window) then select Register for COM Interop.</p>
<p>Click on the Save All button and save it as CMSAPI and lastly click on the Build menu selection (up the top) > Build Solution. </p>
<p>Still with me?</p>
<p>Alright, we now need to create that file for Wealth-Lab. Which you can <a href="http://www.currencysecrets.com/archives/wld-vc01.txt" target="_blank">find one here</a>, but again you&#8217;ll need to change it so that it points to the dll file you just created and make sure you save it as <b>BrokerAdapter_CMSVC.txt</b> (this is important).</p>
<p>Now for the test.</p>
<p>Open up Wealth-Lab, click on Order Manager, change the selection so that it points to CMS VC# and hit the Broker Login button.</p>
<p>Hopefully you should see the words &#8220;Connected&#8221; in the lower left hand panel with the balances of <b>Cash $1,000.00</b> and <b>Buying Power $999.00</b>.</p>
<p>Woohoo!</p>
<p>In the next post we&#8217;ll connect to the Visual Trading API and get this thing really cooking!</p>
<p>(PS &#8211; does anybody know why the VB script won&#8217;t work? If anybody can get it to work I&#8217;d love to know how.)</p>
<p>Tags: 
<a href="http://www.currencysecrets.com/category/forex-trading/auto-execution" rel="tag directory">Auto Execution</a>, 
<a href="http://www.currencysecrets.com/category/forex-trading" rel="tag directory">Forex Trading</a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.currencysecrets.com/2006/03/30/programming-a-cms-forex-broker-adapter-in-wealth-lab-developer-30-part-1/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Auto Trading Forex</title>
		<link>http://www.currencysecrets.com/2006/03/27/auto-trading-forex/</link>
		<comments>http://www.currencysecrets.com/2006/03/27/auto-trading-forex/#comments</comments>
		<pubDate>Tue, 28 Mar 2006 04:50:00 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Auto Execution]]></category>
		<category><![CDATA[Forex Trading]]></category>

		<guid isPermaLink="false">http://www.currencysecrets.com/?p=170</guid>
		<description><![CDATA[Wouldn&#8217;t you agree that the best returns on our money are when we make the highest possible profit on the least amount of money with the smallest amount of work/effort? One of the great things about the forex market is that enables customers to trade automatically. Over the past several weeks I&#8217;ve dug around to [...]]]></description>
			<content:encoded><![CDATA[<p>Wouldn&#8217;t you agree that the best returns on our money are when we make the highest possible profit on the least amount of money with the smallest amount of work/effort?</p>
<p>One of the great things about the forex market is that enables customers to trade automatically.</p>
<p>Over the past several weeks I&#8217;ve dug around to try and find out more about what it takes to create a system that can trade automatically &#8211; preferably for the least amount of cost as possible.</p>
<p>Firstly though I had to find out what forex brokers allowed me to trade automatically, as not all forex brokers are created equal.</p>
<p>With some of the more popular brokers I was able to find that the following provided the capacity to allow you to trade your account automatically:</p>
<ul>
<li><a href="http://www.currencysecrets.com/category/forex-broker-reviews/fxcm/" target="_blank">FXCM</a></li>
<li><a href="http://www.currencysecrets.com/category/forex-broker-reviews/oanda/" target="_blank">Oanda</a></li>
<li><a href="http://www.currencysecrets.com/category/forex-broker-reviews/forexcom/" target="_blank">Gain Capital (FOREX.com)</a></li>
<li><a href="http://www.currencysecrets.com/category/forex-broker-reviews/cms-forex/" target="_blank">CMS Forex</a></li>
</ul>
<p>While I realise that there are other forex brokers which offer the ability to trade automatically (such as those that use <a href="http://www.metatrader.net" target="_blank">MetaTrader</a>) I wanted to find out which ones were able to interface/interact with my current backtesting platform Wealth-Lab Developer.</p>
<p>And so the next step began: having the forex broker&#8217;s API (which is the techno-speak acronym for allowing users to control the processes (etc) of their forex trading account) interact with the signals of my forex systems. </p>
<p>This left me with two options:<br />
1) I could try and learn how to create the necessary software and write the code myself, or<br />
2) Find a software that already does.</p>
<p>Option 2 sounded waay better, so I set out to try and find such software. </p>
<p>While my journey is still ongoing and incomplete I would like to detail a list of such software providers in case you too are looking for the same thing.</p>
<p><a href="http://www.fabrefactum.com" target="_blank">Fabre Factum</a> US$699<br />
Yet to receive a free trial subscription from this mob, but the attraction was the software&#8217;s ability to <em>&#8220;supports Refco, FXCM, GAIN, Forex.com, FXAdvantage and CMS mini and regular accounts (demo and live accounts)&#8221;</em>. Will detail more when I receive a free demo.</p>
<p><a href="http://www.tradebullet.com/" target=_blank">Trade Bullet</a> US$35 &#8211; US$75 / month<br />
Didn&#8217;t support any of the brokers I wanted, but I&#8217;ll include this in case some of you are using some of their supported brokers.</p>
<p><a href="http://www.tradebolt.com/" target="_blank">Trade Bolt</a> (various costs depending on broker)<br />
Offers trading through Gain Capital, doesn&#8217;t seem to support Wealth-Lab Developer.</p>
<p><a href="http://en.traderobot.com/" target="_blank">Trade Robot</a> US$500 &#8211; US$750<br />
Supports FXCM only, doesn&#8217;t seem to support Wealth-Lab.</p>
<p><a href="http://www.hypertrader.it/hyperorder.shtml">HyperOrder</a> <em>FREE!</em><br />
Supports Interactive Brokers Workstation, Patsystems, MB Trading, FXCM, RefcoFx, MAN FX and MetaTrader. Doesn&#8217;t seem to work with Wealth-Lab.</p>
<p><a href="http://www.apitraderfx.com/fxtsapi/index.html" target="_blank">API Trader FXTS</a> US$25 / month (demo accounts) US$50 / month (live accounts)<br />
Supports FXCM only and cross-platform (which could help those on non-Windows OS machines).</p>
<p><a href="http://www.snapdragon.co.uk/" target="_blank">SnapDragon</a> (Free?)<br />
They are currently looking for beta testers who wish to trade from TradeStation onto Oanda&#8217;s platform.</p>
<p>Anyway, these have been the ones I&#8217;ve come across. As you can see not too many were helpful for my individual needs, or maybe they were and I just couldn&#8217;t tell.</p>
<p>So I moved on and looked at the first alternative of creating my own forex broker adapter for use in WLD. And to my surprise I found that Microsoft were giving away <a href="http://msdn.microsoft.com/vstudio/express/" target="_blank">free Visual Basic, C# and C++ developer environments with their Visual Studio 2005 Express Editions</a> (only until November this year) &#8211; which can help immensely with coding the required adapter.</p>
<p>So for now I&#8217;ll give it a bash and see how I go. I&#8217;ll be sure to report any successes here.</p>
<p>Lastly, I&#8217;m testing my crude forex broker adapter on <a href="http://www.cms-forex.com/en/platform/VTapi/" target="_blank">CMS Forex&#8217;s API</a> and demo account (all free and no paperwork is needed to sign to grab the API).</p>
<p>If anybody knows of any other forex trading robots or auto execution software that can interface with any of the above add your comments below.</p>
<p>Tags: 
<a href="http://www.currencysecrets.com/category/forex-trading/auto-execution" rel="tag directory">Auto Execution</a>, 
<a href="http://www.currencysecrets.com/category/forex-trading" rel="tag directory">Forex Trading</a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.currencysecrets.com/2006/03/27/auto-trading-forex/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
	</channel>
</rss>
