Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/21/26 19:15
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 7,008 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: QQE script [Re: jcl] #413892
12/19/12 12:18
12/19/12 12:18
Joined: Nov 2012
Posts: 209
S
SFF Offline OP
Member
SFF  Offline OP
Member
S

Joined: Nov 2012
Posts: 209
This script at http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=409535#Post409535 is using * in if statement.
and It works.

>>So, for which of your variables do you need a series, and for which not? The other variables like int is not.

ALL vars of the code will need series.

>>
Have you always assigned series() to var pointers?

Yes I changed the code that way.

My code at the first post was updated and the current error is here.

Error in 'line 21:
Syntax error:Can't convert ADD:POINTER:POINTER:POINTER.
< if (Qqe[1] < signal[1] && signal[1] < Qqe + Dar )

Need to add *?

Last edited by SFF; 12/19/12 12:47.
Re: QQE script [Re: SFF] #413895
12/19/12 13:05
12/19/12 13:05
Joined: Jul 2000
Posts: 28,074
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,074
Frankfurt
>> ALL vars of the code will need series.

No, "Dar" does not need to be a series, as you only use its current value in your code.

>> if (Qqe[1] < signal[1] && signal[1] < Qqe + Dar )

Look at the last term. Can you add a normal variable to a series?

Re: QQE script [Re: jcl] #413896
12/19/12 13:19
12/19/12 13:19
Joined: Nov 2012
Posts: 209
S
SFF Offline OP
Member
SFF  Offline OP
Member
S

Joined: Nov 2012
Posts: 209
Thanks, It looks that the above errors were corrected.
But error again.

vars signal = series(0);

Error in 'line 19:
syntax error
< vars signal = series(0);
>

Here I wanted to assign 0 as initial value and from the next, the new signal values that calculate below the code.
How can I do it?

Last edited by SFF; 12/19/12 13:21.
Re: QQE script [Re: SFF] #413898
12/19/12 13:59
12/19/12 13:59
Joined: Jul 2000
Posts: 28,074
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,074
Frankfurt
That line looks ok to me. Maybe the error is in the line before, like a missing bracket or semicolon?

Re: QQE script [Re: jcl] #413901
12/19/12 14:28
12/19/12 14:28
Joined: Nov 2012
Posts: 209
S
SFF Offline OP
Member
SFF  Offline OP
Member
S

Joined: Nov 2012
Posts: 209
That's right and finally I had it working.
I needed to check all the code before a number of line.
For example, When I get the error line of 21, I need to check the code <= 21.

Why I confused is I only look at 21 line so I have not found any errors If there is no wrong at that line.

Thank you for your helping.

The working code is at the thread start.

I had many simple errors(mistakes) and have learned much from this code but I need to do more practice.

Last edited by SFF; 12/19/12 14:33.
Re: QQE script [Re: SFF] #413905
12/19/12 14:47
12/19/12 14:47
Joined: Nov 2012
Posts: 209
S
SFF Offline OP
Member
SFF  Offline OP
Member
S

Joined: Nov 2012
Posts: 209
This script showed profit on some pair, tfs.
If someone improve this code please post here.

Re: QQE script [Re: SFF] #416589
02/02/13 07:09
02/02/13 07:09
Joined: Nov 2012
Posts: 209
S
SFF Offline OP
Member
SFF  Offline OP
Member
S

Joined: Nov 2012
Posts: 209
I tested this script on weekly bar by using
"BarPeriod = 1440; TimeFrame = 1 * 5;"

They are wrong too.
BarPeriod = 1440 * 5;

BarPeriod = 60;
TimeFrame = 1 * 24 * 5;

But the result that zorro has showed is not what I expected.
Maybe I am wrong about how to make weekly bars.

Could you please show me how to make an exact normal weekly chart in zorro?

In the original code , the code is correct and it produces what I want in other TFs less than weekly.

Thanks in advance.

Last edited by SFF; 02/02/13 07:21.
Re: QQE script [Re: SFF] #416592
02/02/13 09:07
02/02/13 09:07
Joined: Sep 2003
Posts: 934
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 934
A week has 7 days of 24 hours of 60 minutes.

BarPeriod = 7*24*60;

Re: QQE script [Re: Spirit] #416597
02/02/13 09:37
02/02/13 09:37
Joined: Nov 2012
Posts: 209
S
SFF Offline OP
Member
SFF  Offline OP
Member
S

Joined: Nov 2012
Posts: 209
Hi,

Yes, I tried that too but the trade is fewer than what I expect.
Even zero trade for a particular asset.

Re: QQE script [Re: SFF] #416755
02/04/13 09:38
02/04/13 09:38
Joined: Jul 2000
Posts: 28,074
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,074
Frankfurt
As you now know, Sunday midnight is not a particularly good time to trade. That's why you better don't use a weekly chart for trading - at least I don't know any trader who would.

Use a 1-day chart and select BarOffset so that the trades are entered at a time of high trade volume.

Page 2 of 2 1 2

Moderated by  Petra 

Gamestudio download | 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