Jump to content

Random Content From Key

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
AirforceMook

AirforceMook

    Newbie

  • Members
  • Pip
  • 2 posts
Hello there,

I want to generate code based off a random key.

To put this in perspective: I've been an online-trader for a long time and have always been interested in automated trading. The problem is that it's very difficult to develop a system. I thought, "why not have the computer develop it's own system from scratch?"

I can already make random statements like checking one random moving average against another, but it will then always be limited to just those two items. If I code in something else, then it's stuck to those two random moving averages and whatever else I just added.

I want this thing to have access to about 20 different components (moving averages, time of day, etc) and generate it's own conditions based on that. One key might generate a single conditions to check against, and another might generate twenty.

The problem that I run into is that this must be REPEATABLE. That key must make the same conditions and variables every time, so that if I find a profitable key (set of conditions) I can then turn OFF the test mode and have it actually trade on those limitations.

I've seen things like this done before, many times. I'm reminded of games like Freecell and others where you can specific exactly what game you want to play, and it will generate the same game, every time, from that string.

Any help is greatly appreciated.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
It sounds like you need to do research into genetic algorithms.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog