Pagina 1 van 1

Genetic System Builder

BerichtGeplaatst: vr 02 apr 2004, 20:05
door willie
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;

Genetic System Builder

BerichtGeplaatst: vr 02 apr 2004, 21:31
door poekmeister
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

Genetic System Builder

BerichtGeplaatst: wo 05 mei 2004, 15:08
door Kobus
Heeft iemand deze demo gedownload?
Kobus

Genetic System Builder

BerichtGeplaatst: wo 05 mei 2004, 17:09
door GMe
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..........???