Gamestudio Links
Zorro Links
Newest Posts
SGT_FW
by Aku_Aku. 11/30/26 08:19
Removing outliers from files
by JeyKey II. 11/29/26 10:01
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
6 registered members (AndrewAMD, TipmyPip, EvanTJ, EW_bytes, JeyKey II, krishna), 12,405 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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,149
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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