Buying a house is stressful!

April 29th, 2010 Stoo 2 comments

Ugh, haven’t written on here for too long…

Quick update: buying a house is stressful!

We stopped at a display home one day about 2 months ago on a whim. Ended up talking to a finance guy and finding out that buying a house wasn’t impossible. The finance guy turned out to be pretty bad at what he did, but its worked out for the best with us going directly to a bank. Any day now we’ll get the final approval for finance. We have a block of land sorted, and we know the builder and design of house we want. Fingers crossed in the next two weeks our loan will be approved and we’ll be on the road properly!

The wait and the frustration and stress of it all better be over soon, thats all I can say!

Categories: House Tags: ,

C# DLL from Metatrader…

March 10th, 2010 Stoo No comments

Well after some research, I’ve found that there is a way to export functions from managed code. Its slightly nasty though, and involves disassembling the DLL into IL code, adding some stuff, and then reassembling.

To save me typing it all out here, the gist of the process is here

It appears to work really well. I’ve had the Metatrader platform call methods from my C# DLL, and it all appears to be working fine. The only thing I couldn’t seem to get working is passing an array in either direction. It always seemed to just pass the first element of the array, and nothing more. I haven’t really looked into it in great detail though, as I don’t need this functionality for what I’m going to be doing.

So, thats the first hurdle out of the way.

The next part is tricky, as I’ve realised I don’t really want to give too much away with how my EA will work. I think I’ll just have to post the link to the trading results once I get it up and running in test!

Categories: Development, Forex Tags: ,

So I’ve had an idea…

February 24th, 2010 Stoo No comments

So I’ve had an idea for another little project. First some backstory:

I’ve been trading currency on and off for the last year or so. Not really made a lot of money, but not really lost a lot of money either. I think i’m about even overall. My biggest problem with trading is the psychology. It turns out I am completely useless when it comes to being disciplined with my trading strategies! Enter the MetaTrader4 platform, which lets you run EA’s (expert advisors). These are essentially bits of code written in their MQL language, which trade for you. Its basically C syntax, so not so hard at all.

Anyway, I’ve decided to have a go at writing one. I’ve got a bit of a strategy in mind, and have made a bit of a start. The first problem I’ve found is that for what I want to do, the MQL language is just too slow. Each iteration doesn’t finish computing before the next tick comes in, and so it aborts and starts again. Luckily MQL lets you import from DLL’s.

This gives my next problem. I want to write this in C#… C# wont let you export function calls to unmanaged apps. I think I have a solution for it however… I’ll try to post again when/if I’ve solved it!

Categories: Development, Forex Tags: ,
SEO Powered by Platinum SEO from Techblissonline