Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,175 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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: 28,022
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,022
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