Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, monk12, TipmyPip, Quad, aliswee), 1,029 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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: 73
T
TipmyPip Online
Junior Member
TipmyPip  Online
Junior Member
T

Joined: Sep 2017
Posts: 73
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?


ZorroTraderGPT - https://bit.ly/3Gbsm4S
Re: Fuzzy Range [Re: Clifford_B] #480706
07/01/20 14:04
07/01/20 14:04
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
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,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

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


Moderated by  Petra 

Gamestudio download | chip programmers | 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