Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (ozgur, EternallyCurious, howardR, 1 invisible), 623 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 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: 81
T
TipmyPip Offline
Junior Member
TipmyPip  Offline
Junior Member
T

Joined: Sep 2017
Posts: 81
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,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

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

Joined: Feb 2017
Posts: 1,725
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