logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
nimrod  
#1 Posted : Sunday, April 23, 2006 6:58:00 PM(UTC)
nimrod

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
StorkBite  
#2 Posted : Sunday, April 23, 2006 8:01:19 PM(UTC)
StorkBite

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....
Jose  
#3 Posted : Monday, April 24, 2006 3:38:05 AM(UTC)
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)
Nimrod, take a look at the Random trade generator indicator from MetaStockTools.com: "Fully adjustable random trade generator, complete with report on four exit strategies." jose '-)
RUAGOODP  
#4 Posted : Monday, April 24, 2006 9:25:47 AM(UTC)
RUAGOODP

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
Jose  
#5 Posted : Monday, April 24, 2006 12:05:06 PM(UTC)
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)
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 '-)
Jose  
#6 Posted : Monday, April 24, 2006 12:23:51 PM(UTC)
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)
I've just re-downloaded Random.dll from TraderHelp.net, and it works fine with my Random Trade generator code. jose '-)
StorkBite  
#7 Posted : Monday, April 24, 2006 3:16:55 PM(UTC)
StorkBite

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>
RUAGOODP  
#8 Posted : Monday, April 24, 2006 4:03:09 PM(UTC)
RUAGOODP

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
nimrod  
#9 Posted : Monday, April 24, 2006 8:00:29 PM(UTC)
nimrod

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
StorkBite  
#10 Posted : Monday, April 24, 2006 8:44:21 PM(UTC)
StorkBite

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...
nimrod  
#11 Posted : Monday, April 24, 2006 8:50:28 PM(UTC)
nimrod

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.
Jose  
#12 Posted : Tuesday, April 25, 2006 12:14:03 PM(UTC)
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)
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.