2 registered members (AndrewAMD, Imhotep),
567
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Zorro 1.22 released!
[Re: jcl]
#440127
04/18/14 17:28
04/18/14 17:28
|
Joined: Jun 2013
Posts: 1,609
DdlV
Serious User
|
Serious User
Joined: Jun 2013
Posts: 1,609
|
Hi jcl. I have been unable to duplicate the exact thing I was seeing before. That was on 1.22.0, and I'm now testing 1.22.1. On 1.22.1 please run this script for EUR/USD and look at 06-01 when Longs and a Short are entered. I'm seeing opens shown on the same Bar as in the log, except for Short Entry Limit - those trades are being shown opening on the next Bar. Unless the trade is opened via the tmf - in that case it's on the same Bar as in the log.
int tmf(var Price) {
return 0;
}
// helper function for finding trades at a grid line
bool findTrade(var Price,var Grid,bool IsShort) {
for(open_trades)
if((TradeIsShort == IsShort)
and between(TradeEntryLimit,Price-Grid/2,Price+Grid/2))
return true;
return false;
}
function run() {
set(LOGFILE);
set(PLOTNOW);
// set(TICKS);
BarPeriod = 1440;
StartDate = 20140101;
EndDate = 20140114;
Hedge = 2;
EntryTime = 50;
Trail = 1000*PIP;
TrailLock = 90;
var Price;
var Grid = 10*PIP; // grid spacing
var Current = priceClose();
// place pending trades at 5 grid lines
// above and below the current price
if (Bar>=LookBack) {
for(Price = Current-5*Grid; Price <= Current+5*Grid; Price += Grid) {
if(Price <= Current and !findTrade(Price,Grid,true)) {
Stop = 10000*PIP;
// enterLong(tmf,-Price);
enterLong(0,Price);
}
else if(Price > Current and !findTrade(Price,Grid,false)) {
Stop = 100*PIP;
// enterShort(tmf,-Price);
enterShort(0,-Price);
}
}
}
}
|
|
|
Re: Zorro 1.22 released!
[Re: jcl]
#440392
04/24/14 22:11
04/24/14 22:11
|
Joined: Sep 2013
Posts: 73
Mangal
Junior Member
|
Junior Member
Joined: Sep 2013
Posts: 73
|
For those who are running Z5 your advise is to let the open trades close and then start to operate with this new version. In my case there are 11 trades open: 7 in the middle range of the chart and 2 on the upper side (like brekaout strategy) and 2 more on the down side. I understand that setting the margin to 0 disalows any new trades.
Common sense says that the 7 open trades in the middle of the chart they will be closed at some time, but the 2 uper or the 2 down, it may take some time for them to get close.
If we want to start runnig the new version 1.22 after closing the 7 open trades, is it possible to leave running simultaneously the old version meanwhile closes the 4 remaining trades? If so, is it possible to do it in the same VPS or a new VPS should be taken?
I have the S version of Zorro.
Last edited by Mangal; 04/24/14 22:15.
|
|
|
|