Rank: Newbie
Groups: Registered, Registered Users Joined: 5/8/2005(UTC) Posts: 3
|
How can I write a system that enters randomly in the market?
For instance : every monday go long/short and long or short is decided randomly.
Thanks
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
What's the purpose of such a "system"?
Update:
OMG... I'm standing here amazed... still completely lost... random trades... or is it random entries/exits... something about the word 'random' just gives me shivers....
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 1/19/2005(UTC) Posts: 1,065 Location: Koh Pha-Ngan, Earth
Was thanked: 2 time(s) in 2 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 1/13/2005(UTC) Posts: 87 Location: perth australia
|
Hi Jose,
Your Random generator code does not work unless you remove the -1 in the following line of the code:
seed:=Input("Randomizer seed = 1~1000000, none = 0",0,1000000,0)-1
Cheers
Norman
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 1/19/2005(UTC) Posts: 1,065 Location: Koh Pha-Ngan, Earth
Was thanked: 2 time(s) in 2 post(s)
|
Norman, unless the Random.dll's seeding parameters have changed since I've last used it, the Random trade generator code works just fine.
jose '-)
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 1/19/2005(UTC) Posts: 1,065 Location: Koh Pha-Ngan, Earth
Was thanked: 2 time(s) in 2 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
Make sure you read Jose's bottom line summary of random trades... <nodding>
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 1/13/2005(UTC) Posts: 87 Location: perth australia
|
Hmm You are right Jose. It seems to work fine now. Don't know what happened earlier??
Cheers
Norman
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 5/8/2005(UTC) Posts: 3
|
the purpose is to study better trade management, i'm firmly convinced that trade management is much more important than entry signals, but i find that write rules of trade managemen is really difficoult in metastock that is excellent with entry signals (i can write whatever i want) bit it's not so excellent about trade managemetn (for instance it's impossible to enter in the same bar two times) and trade management with only one contract is really silly.
Now I'll try your suggestions ... thanks
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
Thanks... I see potential utility for perhaps using it as a marker to determine effeciency in a particular system. But not as a system itself. I have to research more on random trading...
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 5/8/2005(UTC) Posts: 3
|
thank you very much jose, it seems to work exactly as i wanted ... can u explain me what seed mean ? 0, 1 , 2 , what does it change changing the seed?
thank you.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 1/19/2005(UTC) Posts: 1,065 Location: Koh Pha-Ngan, Earth
Was thanked: 2 time(s) in 2 post(s)
|
Random generators can't create real random numbers, but just streams of numbers that appear random to the human mind. The sequence of these pseudo-random numbers needs to begin somewhere (seeding), and the Random trade generator indicator's input allows a set pattern to be used as a seed:
"0" will use the PC's system time to seed the random generator, thus creating a new pattern each time;
"1~1000" will create a specific repeatable pattern.
The best way to learn about any indicator, is to play around with its settings and observe the resulting plot. A picture is worth a zillion words.
jose '-)
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.