Gamestudio Links
Zorro Links
Newest Posts
Optimize in a ranked asset portfolio
by dBc. 10/24/20 19:20
Close attempts
by jcl. 10/24/20 10:27
GET_TRADES - TRADE array buffer size?
by jcl. 10/24/20 10:25
Comparison of FX costs across brokers
by kalmar. 10/23/20 20:42
Plugin Binance - margin trade
by Grat. 10/22/20 09:12
Simulating MOC orders correctly in TRADEMODE
by jbhunter. 10/21/20 13:12
Missing Data - USD/MXN
by AndrewAMD. 10/21/20 13:08
AUM Magazine
Latest Screens
Paradox Vector
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
Who's Online Now
3 registered members (Dooley, AndrewAMD, Mio), 474 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
mr_T0ma5, AVL, ruins, speech, danalec
18528 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Not read open trade #481621
10/09/20 06:04
10/09/20 06:04
Joined: May 2015
Posts: 319
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 319
Czech Republic
Hi,

in the version:

Zorro S 2.32.7b

is a stupid bug. If stop AOS with open order ( not close it ) and run again, Zorro cannot manage opened trade !!!

Attached Files
Re: Not read open trade [Re: Grat] #481693
10/19/20 13:28
10/19/20 13:28
Joined: Jul 2000
Posts: 27,368
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,368
Frankfurt
I cannot confirm a 2.32 problem with opened trades. But if you cannot find the reason, please contract Support with the script, asset list, and the .trd file. They'll check if it is a bug.

Re: Not read open trade [Re: Grat] #481702
10/19/20 16:28
10/19/20 16:28
Joined: May 2015
Posts: 319
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 319
Czech Republic
I now don't have demo account. I trying two times last week.

A) open order from Zorro -> MT4
B) STOP the Zorro, not close OPEN order
C) after start againg, Zorro don't know the already opened order - see the pict.

Re: Not read open trade [Re: Grat] #481722
10/22/20 11:58
10/22/20 11:58
Joined: Mar 2019
Posts: 295
D
danatrader Online
Member
danatrader  Online
Member
D

Joined: Mar 2019
Posts: 295
2.33 partly same problem.

Too bad, lost again control of all trades.
Using .bck file also no change.

Although it claims to resume, seems like it does not always.

Using 2.33 with Zorro EA MT4 2.09

Attached Files
same-here.png (5 downloads)
Re: Not read open trade [Re: Grat] #481723
10/22/20 12:03
10/22/20 12:03
Joined: Mar 2019
Posts: 295
D
danatrader Online
Member
danatrader  Online
Member
D

Joined: Mar 2019
Posts: 295
But, I realized, for some reason, it seems to read the *.trd file of

H1_intraday_candle.trd, but then writes an empty .trd file H1_intraday_candle_EURUSD.trd, but if I rename my H1_intraday_candle.trd to H1_intraday_candle_EURUSD.trd it does not resume anything.
The renamed file gets just overwritten with emtpiness.


So probably it is again a handling issue?

What is weird, same script did run fine old versions, same script runs modified in different VPS with basicly same overall settings, but, I realized also there, it always also writes a _EUR_USD.trd file, but it is always empty, the normal .trd file is written too and gets filled.
Also there stopping and resuming for some reason worked.

Of course, EUR/USD is the asset selected in the asset scrollbox, but inside script I define Assetlist and make assetloop over all those assets.
Although, Zorro creates the empty assetspecific .trd file selected by the scrollbox, it still also updates the one it tried to resume trades from.

Last edited by danatrader; 10/22/20 12:32.
Re: Not read open trade [Re: Grat] #481727
Yesterday at 09:47
Yesterday at 09:47
Joined: Jul 2000
Posts: 27,368
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,368
Frankfurt
The problem seems to be the file name of the .trd file. But we can still not reproduce it here with the current beta version. It may be some setting in the script that causes a wrong file name. Can someone post the script here, or send it to Support? The trading logic can be removed, we're only interested in the settings and asset() calls.


Re: Not read open trade [Re: Grat] #481732
Yesterday at 14:22
Yesterday at 14:22
Joined: Mar 2019
Posts: 295
D
danatrader Online
Member
danatrader  Online
Member
D

Joined: Mar 2019
Posts: 295
Well I don't know if this is really telling why it writes two files.
Like I mentioned, both get updated.

Just one seems to be empty -> size really small, while the other is bigger.
Also I don't know the basic structure of the scripts of Grat.


function run()
{
//set(EXE);
brokerCommand(SET_PATCH,8);
brokerCommand(SET_WAIT,30000);
setf(PlotMode, PL_ALL+PL_FINE);
set(PLOTNOW, PRELOAD);//, LOGFILE
set(FACTORS+PARAMETERS);
NumTrainCycles = 2;
BarMode = BR_SLEEP;
BarPeriod = 1440;
BarZone = ET;
ReTrainDays = 7;
TrainMode = ASCENT;
StopFactor = 1.5;
NumCores = -1;
//StartDate = ymd(wdate(NOW) - 720);
//EndDate = 20200801;
//UnstablePeriod = 12;
LookBack = 12;
MonteCarlo = 0; // 0 saves time at the end of the simulation
EndWeek = 52155;
if(Train){
OptimalFRatio = 2.5;
Hedge = 2;
}else{
Hedge = 5;}

MaxLong = MaxShort = 3;

SaveMode = SV_SLIDERS+SV_ALGOVARS+SV_TRADES+SV_STATS+SV_BACKUP;
total_usd_exposure = slider(1, 0, 0, 1000000, "USDx1k", "Total USD exposure per long/short position")*1000;
if(is(FIRSTINITRUN))
assetList("P:\\AssetsCur3.csv");

if(is(INITRUN) and !is(TRAINMODE))
{
// set USD exposure
int slider_output = slider(1);
int count = 0;
while(slider_output == 0)
{
if(count%100 == 0)
{
printf("\n### SET UP USD EXPOSURE WITH SLIDER ###");
}
wait(100);
slider_output = slider(1);
count++;
}
}else{
int slider_output = 1;
}

// portfolio loop
while(asset(loop(Assets))){
if(assetType(Asset) != FOREX)
continue; // Currency pairs only 30 total
UpdateDays = -1;
if(is(TRADEMODE)) printf("\nActual Spread for %s is %.2f", Asset, Spread/PIP);
lots_from_usd_exposure();
while(algo(loop("Range:L","Range:S")))
{
NumComponents = NumLoops1*NumLoops2;
switch(Algo) {
case "Range:L": Range(); break;
case "Range:S": Range(); break;
}
}
}
if(Init) printf("\n%i components",NumComponents);
}

Last edited by danatrader; Yesterday at 14:31.

Moderated by  jcl, Nems, Spirit, Tobias 

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