2 registered members (AndrewAMD, Quad),
843
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Multicurrency Currency Strength
[Re: Grant]
#486619
09/10/22 16:30
09/10/22 16:30
|
Joined: Sep 2022
Posts: 13
JJ95
OP
Newbie
|
OP
Newbie
Joined: Sep 2022
Posts: 13
|
Hello,
Thank you so much for your reply! The links were very insightful.
I did notice in the links stating to have a look over the source code if needed. As I was looking over it, I noticed the following:
#define MAXCURRENCIES 32 var CStren[MAXCURRENCIES],CStrenSum[MAXCURRENCIES]; int CNum[MAXCURRENCIES]; char CNames[MAXCURRENCIES*4]; int NumCurrencies = 0;
Max Currencies is defined at 32.
My question is:
Why is it 32 (why did they choose this number specifically)?
In my case for instance, I am interested in trading the following currencies EUR, USD, AUD, CHF, NZD, GBP, JPY (which makes up around 28 currency pair). Am I suppose to change that number?
Once again, thank you so much for your reply earlier, it was very helpful!
|
|
|
Re: Multicurrency Currency Strength
[Re: JJ95]
#486623
09/10/22 17:16
09/10/22 17:16
|
Joined: Aug 2017
Posts: 294 Netherlands
Grant
Member
|
Member
Joined: Aug 2017
Posts: 294
Netherlands
|
I guess (but I don't know for sure) that 32 was chosen due to the 32-bit architecture of Zorro, although they made a transition to 64-bit lately. edit: see Andrew's answer above. Anyhow, 28 pairs is no problem. Just throw them in a loop. See https://zorro-project.com/manual/en/loop.htm for code examples.
Last edited by Grant; 09/10/22 17:18.
|
|
|
Re: Multicurrency Currency Strength
[Re: JJ95]
#486629
09/11/22 21:46
09/11/22 21:46
|
Joined: Feb 2017
Posts: 1,726 Chicago
AndrewAMD
Serious User
|
Serious User
Joined: Feb 2017
Posts: 1,726
Chicago
|
|
|
|
Re: Multicurrency Currency Strength
[Re: Grant]
#486631
09/12/22 15:14
09/12/22 15:14
|
Joined: Sep 2022
Posts: 13
JJ95
OP
Newbie
|
OP
Newbie
Joined: Sep 2022
Posts: 13
|
Hello, I have a small question to ask: Below is a simple code I wrote:
CODE:
function main() { for(int i=0; i<10; i++){ printf("%d\n", i); } }
When I run the code above, I get: "Error in line 4: syntax error". I cannot find this syntax error
However, when I run the code below, I do not get an error:
function main() { int i; for(i=0; i<10; i++){ printf("%d\n", i); } }
To my knowledge both codes are the same. I am studying the ccyReset() in the indicator source code file and they have it written as the first code written above. Can you please explain to me where is my syntax error?
Last edited by JJ95; 09/12/22 15:14. Reason: Spelling Mistake
|
|
|
|