|
Increase Max Lot Size Beyond 10000
#469329
11/11/17 04:45
11/11/17 04:45
|
Joined: Nov 2017
Posts: 3
sideburn
OP
Guest
|
OP
Guest
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: Petra]
#469527
11/19/17 21:52
11/19/17 21:52
|
Joined: Nov 2017
Posts: 3
sideburn
OP
Guest
|
OP
Guest
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:
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;
}
|
|
|
|