Genetic System Builder

Vragen en suggesties over Vesticode

Moderator: Perry

Genetic System Builder

Berichtdoor willie » vr 02 apr 2004, 20:05

Iemand die de onderstaande code aan de gang krijgt:

Er is een fout bij indicator 3

http://www.thegrailsystem.com/grail-tra ... -frame.htm


Below is an extract of EasyLanguage generated by the Genetic System Builder. While this is a very basic strategy for illustrative purposes, GSB allows you to vary the complexity of the systems being modeled. It also allows you to set specific money management exit strategies to be used. Note that GSB automatically determines what kind of trading approach (e.g. moving average crossover, oscillator, breakout type etc.) ?or combination of approaches would be most profitable and consistent / robust on the current data.

You will notice that the EasyLanguage generated by GSB is complete and fully disclosed, thus giving you more insight into the system that you are going to trust with your own capital. (All indicators and functions used, are disclosed once the software has been registered.) The code does not use any non-transparent DLL function calls.

{*******************************************************************
Description: System created by Genetic System Builder V1.03
Provided By: Technovest (Pty)Ltd (c) Copyright 2003
********************************************************************}

Inputs: Length1(9);
Inputs: HiBand(75);
Inputs: LoBand(25);
Vars: HiBand2(0);
Vars: LoBand2(0);
Vars: Line1(0);
Inputs: StopLossPerc(2.80);
Vars: StopLossLevel(0);
Inputs: ProfitTargetPerc(2.20);
Vars: ProfitTargetLevel(0);
Vars: NumContracts(1);

Line1 = Indicator3(C,Length1);

HiBand2 = HiBand;
LoBand2 = LoBand;

If (CurrentBar > 2) then begin
?If ((Line1[1]<LoBand2) and (Line1[0]>LoBand2)) then
? Buy NumContracts contracts next bar at Open;
?If ((Line1[1]>HiBand2) and (Line1[0]<HiBand2)) then
? Sell NumContracts contracts next bar at Open;
end;

If MarketPosition=1 then begin
?StoplossLevel = entryprice-(StoplossPerc/100.0*entryprice);
?ExitLong("LStopLoss") next bar at StoplossLevel stop;
end;
If MarketPosition=-1 then begin
?StoplossLevel = entryprice+(StoplossPerc/100.0*entryprice);
?ExitShort("SStopLoss") next bar at StoplossLevel stop;
end;

If MarketPosition=1 then begin
?ProfitTargetLevel = entryprice+(ProfitTargetPerc/100.0*entryprice);
?ExitLong("LProfitTarget") next bar at ProfitTargetLevel limit;
end;
If MarketPosition=-1 then begin
?ProfitTargetLevel = entryprice-(ProfitTargetPerc/100.0*entryprice);
?ExitShort("SProfitTarget") next bar at ProfitTargetLevel limit;
end;
willie
 
Berichten: 53
Geregistreerd op: vr 10 okt 2003, 20:49

Genetic System Builder

Berichtdoor poekmeister » vr 02 apr 2004, 21:31

Willie,
Ik ben bang dat dit niet aan de praat te krijgen is.
"indicator3" zal hoogstwaarschijnlijk wel een indicator zijn die ze hier als voorbeeld hebben gebruikt en die niet standaard in Vestics zit en ook niet ergens wordt toegelicht...

Wel interessant concept op die website.

Michel
poekmeister
 
Berichten: 88
Geregistreerd op: za 17 aug 2002, 19:50

Genetic System Builder

Berichtdoor Kobus » wo 05 mei 2004, 15:08

Heeft iemand deze demo gedownload?
Kobus
Kobus
 
Berichten: 4
Geregistreerd op: wo 05 mei 2004, 15:02

Genetic System Builder

Berichtdoor GMe » wo 05 mei 2004, 17:09

Dat systeempje is met elke willekeurige oscillator voor line1 te draaien. Verander Indicator3 in bijvoorbeeld RSI, MOMENTUM,.............enz. en het moet al werken.
Of je er iets aan hebt..........???
GMe
 
Berichten: 145
Geregistreerd op: zo 07 okt 2001, 16:16


Keer terug naar Vesticode

Wie is er online

Gebruikers op dit forum: Geen geregistreerde gebruikers en 12 gasten

cron