Monte Carlo simulation

Page 1 of 1

1 Replies - 5758 Views - Last Post: 07 July 2010 - 10:57 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=180403&amp;s=98a4603580c9a4802e394e578a725575&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

#1 jvdpeet

• New D.I.C Head

Reputation: 0
• Posts: 1
• Joined: 05-July 10

Monte Carlo simulation

Posted 06 July 2010 - 06:53 AM

Hi,
I am a new member. My name is Jan van der Peet and I am retired. A few years ago I took up my earlier hobby/profession: computer programming.
My education is secondary school and a degree in Economics and a degree in Industrial Engineering.
Both studies are of use for what I am doing now: programming a system for trading at the stock exchange for people who would like to invest, but lack the necessary knowledge for it. For those interested: It can be freely tried on www.imata.nl.
My hobbies are: soccer, history, reading.
My question is: Can anyone of you tell me where I can download examples in VB6.0 for Monte Carlo simulation?

Is This A Good Question/Topic? 0

Replies To: Monte Carlo simulation

#2 Martyr2

• Programming Theoretician

Reputation: 4860
• Posts: 13,176
• Joined: 18-April 07

Re: Monte Carlo simulation

Posted 07 July 2010 - 10:57 AM

Well since the Monte Carlo Simulation idea is so closely tied to things like statistics, you are often going to find the code in VBA (Visual Basic for Applications) instead of straight VB6 code. However, knowing the VBA code can be easily converted to VB6 code (VBA being essentially VB6 for Excel etc) you may find an example of it used in Excel a great place to start.

I did find one site that may prove useful to you which provides a bit of code that uses the Monte Carlo Simulation in a BlackJack project.

BlackJack Project involving the Monte Carlo Simulation (with code example)

I also found another one which was done in C#. If you know the basics around .NET you could translate it into something workable for VB6 as well. This example is part of a platform SDK they are dealing with that also has the same example in VB6... of course you get only a 15 day trial with this. However, here is the code in C# posted for free...

Monte Carlo Simulation Example in C#

Hope these prove somewhat useful to you on your quest.