|
|
Re: "Missed entry at bar XXX" errors in log
[Re: Squalou]
#410729
11/07/12 18:43
11/07/12 18:43
|
Joined: Sep 2012
Posts: 74 Niedersachsen, Germany
PriNova
Junior Member
|
Junior Member
Joined: Sep 2012
Posts: 74
Niedersachsen, Germany
|
Does this mean, that i have to check if the dailybar is a friday candle and set TimeWait accordingly especially for this day and for the other candles at =0?
because if i set TimeWait = 2 for every dailybar the entry would be delayed 2 days for every trade.
Signal at monday means entry at wednesday? IMHO nonsense.
BTW: @squalou from ff.com and steve? if yes, obeisance. Me global Mod from biggest german forex-forum at forexfabrik.de and Avatar Mediator @steve -> cointegration Search Engine
Last edited by PriNova; 11/07/12 18:48.
|
|
|
Re: "Missed entry at bar XXX" errors in log
[Re: PriNova]
#410733
11/07/12 20:10
11/07/12 20:10
|
Joined: Oct 2012
Posts: 16 Aix en Provence, France
Squalou
OP
Newbie
|
OP
Newbie
Joined: Oct 2012
Posts: 16
Aix en Provence, France
|
The manual says: TimeWait When an enter command is given, wait the given number of bars (default: 1) until the entry condition (Entry) is met; otherwise cancel the trade. A "Missed Entry" message is then printed to the log file. TimeWait is the MAXIMUM time to wait for the entry condition to be met before bailing out with the error. The trade will be entered as soon as the condition is met, so immediately if enter at market and market is open. @PriNova: yes, i am Squalou from FF and Steve's forums... So you are the cointegration guy ? !! Your thread and research have attracted a lot of people there! I must say we are missing you! How is cointegtration going ?
|
|
|
Re: "Missed entry at bar XXX" errors in log
[Re: jcl]
#410819
11/09/12 14:00
11/09/12 14:00
|
Joined: Sep 2012
Posts: 74 Niedersachsen, Germany
PriNova
Junior Member
|
Junior Member
Joined: Sep 2012
Posts: 74
Niedersachsen, Germany
|
i'm a little bit confused. if there is no weekend candle than weekend-trades do not exists. if, like it is written in the manual, i execute a trade at the opening of every candle, then there should not be a problem with this.
the usual process in my mind is (daily-strategy): 1. new candle opens (Friday) 2. run code and check for conditions. 3a If conditions are TRUE open trade 3b if conditions are FALSE wait until open of next candle, in this situation the Monday candle at first open-tick and process with number 2. 4. During the course of a candle check conditions for TP, TS or SL.
in simple every markettick is like a cpu tick. fetching data process, evaluate, calculate data output data (trade entry, TP, SL, TS or exit)
Last edited by PriNova; 11/09/12 14:27.
|
|
|
Re: "Missed entry at bar XXX" errors in log
[Re: jcl]
#410822
11/09/12 14:32
11/09/12 14:32
|
Joined: Sep 2012
Posts: 74 Niedersachsen, Germany
PriNova
Junior Member
|
Junior Member
Joined: Sep 2012
Posts: 74
Niedersachsen, Germany
|
i'm little confused much more now. # Trade enter or exit commands in the run function are executed at the opening price of the next bar. what happens at livetrading? for example. if conditions are met inbetween the actual candle before its closing, does a TP, SL or TS are not executed until the next candel opens?
Last edited by PriNova; 11/09/12 14:33.
|
|
|
Re: "Missed entry at bar XXX" errors in log
[Re: PriNova]
#410824
11/09/12 15:10
11/09/12 15:10
|
Joined: Sep 2012
Posts: 74 Niedersachsen, Germany
PriNova
Junior Member
|
Junior Member
Joined: Sep 2012
Posts: 74
Niedersachsen, Germany
|
Ok, here is a simple result of a simple script. the strategy should open a trade at every pricelevel @1.4300 i set in the script the TICKS function and test in a 1 Hourchart. usually the strategy should open very much trades, but opens only 2 orders. this are the orders where the open of a 1 hour candle was exactly at 1.4300. In my opinion: this is a big bug. like i stated befor. the execution of a trade shoudl process immediately if the conditions are right, otherwise a trader likes to open a trade at the open of a new candle. this is a normal process, that i usually check at open of a new bar the conditions at the last bar. for example if a MA cross happens then i take the value of bar 2 and the value of bar 1 and calculate the possible cross. this process happens at opening at Bar 0 and if conditions met, the trade opens at the next tick and not at the very next opene of bar. maybe i'm doing something wrong and i'm an idiot, but if not, then Zorro is in a not-acceptable state. here is the script and a picture of this script: function run()
function run()
{
set(TICKS);
NumDays = 500;
var priceLevel = 1.4300;
if(priceOpen() == priceLevel)
{
enterLong();
}
}
 i draw a line, where the pricelevel is, then you can imagine that there must be more orders executed @jcl: if you are not understanding my english then it is easier for me to explain in german. we could also have a skype session if you want.
Last edited by PriNova; 11/09/12 17:25.
|
|
|
Re: "Missed entry at bar XXX" errors in log
[Re: Squalou]
#410831
11/09/12 17:58
11/09/12 17:58
|
Joined: Jul 2000
Posts: 28,075 Frankfurt
jcl

Chief Engineer
|

Chief Engineer
Joined: Jul 2000
Posts: 28,075
Frankfurt
|
Prinova: Your english is fine, just your script example is improvable  : Your script will almost never trade because your comparison is almost never true. The reason is explained in the "if" lesson of the lite-C course - look for "tip 3". Squalou: With disabling I mean that they are just ignored. They are not pending until Monday. Yes, this is supposed to be added to 1.03. The Friday bar ends Saturday 00:00 UTC, regardless of when the last price quotes arrived. Weekend normally begins Friday 22:00 UTC and ends Sunday 23:00 UTC, so all trades entered inbetween will then be ignored.
|
|
|
Re: "Missed entry at bar XXX" errors in log
[Re: jcl]
#410832
11/09/12 18:13
11/09/12 18:13
|
Joined: Sep 2012
Posts: 74 Niedersachsen, Germany
PriNova
Junior Member
|
Junior Member
Joined: Sep 2012
Posts: 74
Niedersachsen, Germany
|
thank you for your answer. i did modify the script and repeated the test in 1 Minute-Chart and 60-Minute Chart with different results. in 60 Minute-Chart i got my 2 trades like in the last post, but in the M1 Chart Zorro opens all trades at the mentioned priceLevel. Does Zorro do not take 1 Minute-datas in a 60 Minute-Test? i usually expected the same orders indepentend of timefrime.
set(TICKS+HEDGING);
function run()
{
NumDays = 500;
var priceLevel1 = 1.4300;
if( (priceOpen() >= priceLevel1) and (priceOpen() <= priceLevel1 ))
{
enterLong();
}
}
Last edited by PriNova; 11/09/12 18:13.
|
|
|
|