You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
You have kept track with this code.
ok so you are saying this is completely unnecessary then to use?
ok so you are saying this is completely unnecessary then to use?
I think that it is better to use
ok so you are saying this is completely unnecessary then to use?
Should not need to be used, the results will be the same as used or not. As in the conversation, if something is intended in the sentence, why do we have to ask again?
I think that it is better to use
that was my thought to and i'm using it myself and don't see any problems doing so
that was my thought to and i'm using it myself and don't see any problems doing so
It's up to you. If I always just want to find a simpler way.
It's up to you. If I always just want to find a simpler way.
of course it's up to me...
thank's for you opinion
it depends on the context, too, I guess, because of things like order of execution, for example
...so, the way I'm using this is, I got an indicator that draws 17 Line Objects for one, two, or three durations in either direction, so there's up to 17x3x1=91 Line Objects at a time. These Line Objects are in groups of 17 and ordered so by name that if I loop through them for order entry the previous line serves as stop and the next as target, which is why I'm trying to do this
like this...
...what I can't seem to figure out, probably for the lack of OOP skills, and programming skills in general, i suppose - is how to go about merging all these blocks into some kind of Order_Entry class, or some void(), i don't know, that can be called depending on the required direction and duration; because right now, I'm just using slightly modified blocks (like the one above, for every direction and every duration, so, essentially it's an almost identical code block copy pasted 6 times...well actually 12, because I also use conviction level(aggressive or conservative), and all the object names' arrays are string arrays that are ordered correctly the way the indicator draws them...so it's a naming heuristic, really, more than anything else, that seems to be doing the work here, and after all the declarations(about 70 lines) these 12 36-line blocks follow, and it becomes 560 lines of code...((( doesn't it seem like it should be maybe around 100 total, instead?
//
..right now I have a generic BUY block and a generic SELL block, the difference is that for every duration and conviction two characters are changed in the LineObj[] and MagicObj[] names themselves, so if it's an AggressiveDailyBuy[] and MagicAggressiveDailyBuy[] or a ConservativeWeeklyBuy[] and MagicConservativeWeeklyBuy[], it goes like, adb[] and madb[] or cwb[] and mcwb[]...
...so I declare them all and loop through all, but instead I could perhaps use some kind of methodology to declare them all but only loop through a generic one like a ConvDurDirBuy[] goes though adb, cdb, awb,cwb,... etc. using the correspoding values from the madb, mcdb, mawb,mcwb,... etc
...hm, what should I even google for this?
...there probably is a way to just have the declaration of the key I use to name all objects and have the code loop through them all...probably that's the way to get to 100 total lines instead...)