Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (howardR, 7th_zorro), 893 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Array Manipulation [Re: Radar] #436760
02/01/14 13:56
02/01/14 13:56
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Ok, I think I understand the idea. You need no arrays or linked lists for this. You can just store the group identifier, like 'M5Buy', in a free variable in the trade struct. For moving a trade from one group to another one, just change its group identifier. This would require only a few lines of code. You can access the list of all open trades with a for(open_trades) loop.

Anyway, to answer your questions - arrays:

1.i - no, the changes are permanent.
1.ii - yes.
2. - yes, the size of a dynamic array must be stored somewhere, it can not be determined from the array pointer.
3. - yes
4. - yes

Linked lists:

1. yes
2. yes
3. yes
4. no, it's not easier.

Re: Array Manipulation [Re: jcl] #436773
02/01/14 21:16
02/01/14 21:16
Joined: Jan 2014
Posts: 28
Adelaide, South Oz
R
Radar Offline OP
Newbie
Radar  Offline OP
Newbie
R

Joined: Jan 2014
Posts: 28
Adelaide, South Oz
Thanks, JCL laugh


Have fun!
Radar =8^)
Re: Array Manipulation [Re: Radar] #436858
02/04/14 10:36
02/04/14 10:36
Joined: Jan 2014
Posts: 28
Adelaide, South Oz
R
Radar Offline OP
Newbie
Radar  Offline OP
Newbie
R

Joined: Jan 2014
Posts: 28
Adelaide, South Oz

Just a quick note as to why I was getting strange results with the code I'd posted here... http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=436441#Post436441

It's probably not a good idea to declare a var array, then try and manipulate with a function written for int arrays wink

Sleep-coding... A great way to save money on hair products, as you'll be ripping yours out, trying to figure out why something that you know should work, just isn't wink


Have fun!
Radar =8^)
Page 2 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1