Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (rki), 405 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Increase Max Lot Size Beyond 10000 #469329
11/11/17 04:45
11/11/17 04:45
Joined: Nov 2017
Posts: 3
S
sideburn Offline OP
Guest
sideburn  Offline OP
Guest
S

Joined: Nov 2017
Posts: 3
Hello Traders!

I'm a new Zorro user! Cool software!!

I wonder is it possible to increase max lot size limit beyond 10,000? This is for backtesting and optimization. Once I'm done with those two, I plan to go live with Oanda that allows trading just 1 unit (not lot). So, if it is a profitable strategy, I would need to trade more than 10,000 units (0.1 Lot). I can imagine to setup 1 Zorro unit as 100 Oanda unit. So, maximum lot of 10,000 Zorro unit = 1,000,000 Oanda unit = 10 Lots. However, I'll lose fine resolution of lot size such as 150 Oanda unit = 1.5 Zorro unit which decimal is not working in backtesting mode.

Thanks!

Re: Increase Max Lot Size Beyond 10000 [Re: sideburn] #469331
11/11/17 11:54
11/11/17 11:54
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
By default the max lot size is 10000000/LotAmout. The manual was a bit outdated here. The Oanda API has LotAmount 1, so the limit is in fact 10,000,000 units.

Re: Increase Max Lot Size Beyond 10000 [Re: jcl] #469347
11/11/17 23:27
11/11/17 23:27
Joined: Nov 2017
Posts: 3
S
sideburn Offline OP
Guest
sideburn  Offline OP
Guest
S

Joined: Nov 2017
Posts: 3
When I click 'Test' button (NOT LIVE TRADING), it outputs 10,000 maxlot error if trade more than 10,000 lots. How do I increase max limit for backtesting?

Re: Increase Max Lot Size Beyond 10000 [Re: sideburn] #469353
11/12/17 07:32
11/12/17 07:32
Joined: Apr 2008
Posts: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
Austria
By 10000000/LotAmout, if you enter maxlot you want to buy 10 million units? Such a trade has impact on the market price, better split it in smaller packets. Or maybe you use the wrong asset list? For Oanda currencies you can trade max 10000000 lots, not 10000. Use AssetsOanda.csv.

Re: Increase Max Lot Size Beyond 10000 [Re: Petra] #469527
11/19/17 21:52
11/19/17 21:52
Joined: Nov 2017
Posts: 3
S
sideburn Offline OP
Guest
sideburn  Offline OP
Guest
S

Joined: Nov 2017
Posts: 3
Got it working correctly! I borrowed info from AssetsOanda.csv to AssetsFix.csv.

However, I noticed that when using 'Test' mode, if I use printf command to output every info from AssetsFix.csv, all displayed correctly except for Leverage. When I changed Leverage to any number, the output via printf didn't change. I even restart Zorro and computer to see if it changes but nope. Is there other file where Leverage info is stored? Here's the code:
Code:
function run()
{

StartDate = 2014;
BarPeriod = 1;

asset("EUR/USD");
printf("n%s Spread: %.5f PipCost: %.6f MarginCost: %.5f Leverage: %.1f",Symbol,Spread,PIPCost,MarginCost,Leverage);
	
	//Lots = pow(2,LossStreakTotal); 

	if(NumOpenTotal == 0) {
		if(random() < 0)
			enterShort();
		else 
			enterLong();
	}
	
	set(PLOTNOW);
	PlotWidth = 800;
	PlotHeight1 = 320;
}


Re: Increase Max Lot Size Beyond 10000 [Re: sideburn] #469538
11/20/17 10:09
11/20/17 10:09
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Leverage is read-only, except for leverage-based accounts. For simulating a leverage based account, edit the asset list, set leverage to the desired leverage and set MarginCost to 0.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1