Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/08/26 18:50
zorro with ccxt?
by opm. 03/03/26 03:17
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, Quad), 15,417 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Fuzzy Range #478544
11/04/19 16:43
11/04/19 16:43
Joined: Oct 2019
Posts: 10
Clifford_B Offline OP
Newbie
Clifford_B  Offline OP
Newbie

Joined: Oct 2019
Posts: 10
How would you add the FuzzyRange function to this script ?

// Machine learning ////////////////////////////
#include <profile.c>

function run()
{
StartDate = 2010;
EndDate = 2018;
BarPeriod = 1440; // 1 Day
BarZone = WET; // Western European midnight
BarMode = BR_LEISURE; // allows weekend bars, but don't trade on them
NumWFOCycles = 5;
asset("EUR/USD");

set(RULES+TESTNOW);

if(Train) Hedge = 2; // for training, allow long + short
LifeTime = 3;
MaxLong = MaxShort = -1;

if(adviseLong(PATTERN+2+RETURNS,0,
priceHigh(2),priceLow(2),priceClose(2),
priceHigh(1),priceLow(1),priceClose(1),
priceHigh(1),priceLow(1),priceClose(1),
priceHigh(0),priceLow(0),priceClose(0)) > 50)
enterLong();

if(adviseShort() > 50)
enterShort();

PlotWidth = 600;
PlotHeight1 = 300;
//plotTradeProfile(40);
//plotWFOCycle(Equity,0);
//plotWFOProfit();
}

Re: Fuzzy Range [Re: Clifford_B] #479800
04/26/20 22:54
04/26/20 22:54
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
if(adviseLong(PATTERN+FUZZY+2+RETURNS,0,

Re: Fuzzy Range [Re: Clifford_B] #480705
07/01/20 13:19
07/01/20 13:19
Joined: Sep 2017
Posts: 282
TipmyPip Online
Member
TipmyPip  Online
Member

Joined: Sep 2017
Posts: 282
What do I do if I get too many trades error, how and why does this error exist? and Why Zorro Trader has a limit of trades?

Re: Fuzzy Range [Re: Clifford_B] #480706
07/01/20 14:04
07/01/20 14:04
Joined: Feb 2017
Posts: 1,813
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,813
Chicago
The manual is your friend! laugh

https://zorro-project.com/manual/en/errors.htm
Quote
Error 049: Too many trades
The script entered more than one trade per bar and asset, which is normally a sign of a script bug - therefore the error message. If you really need a huge number of trades, for instance for unlimited grid trading or for training several advise functions at the same time, set the TradesPerBar variable to the required number of trades per bar and asset.

Re: Fuzzy Range [Re: Clifford_B] #480708
07/01/20 14:52
07/01/20 14:52
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
Andrew is a friend too blush

Re: Fuzzy Range [Re: Clifford_B] #480710
07/01/20 16:57
07/01/20 16:57
Joined: Feb 2017
Posts: 1,813
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,813
Chicago
Aw, shucks!


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1