Gamestudio Links
Zorro Links
Newest Posts
Icon "OP"
by JeyKey II. 10/27/26 07:03
No connection to MT4
by JeyKey II. 10/26/26 22:59
ZorroGPT
by TipmyPip. 10/26/26 08:09
Chat Room for Zorro Programmers
by Haitao_Ren. 10/25/26 03:14
Trading Journey
by Haitao_Ren. 10/25/26 03:14
Algorithmic trading course with Zorro
by Haitao_Ren. 10/25/26 03:12
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (JeyKey II, AndrewAMD, Quad), 4,902 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Haitao_Ren, JimSimons, julienp, julienper, KelleyAbbey
19247 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,143
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,143
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
Sydney, NSW Oz
R
Radar Offline OP
Newbie
Radar  Offline OP
Newbie
R

Joined: Jan 2014
Posts: 28
Sydney, NSW 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
Sydney, NSW Oz
R
Radar Offline OP
Newbie
Radar  Offline OP
Newbie
R

Joined: Jan 2014
Posts: 28
Sydney, NSW 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