Hi, OD! Thank you a lot. I will note down your recommendations for my upcoming coding/debugging.
Nubcake above place my shocking dumb mistake, and it works. Thanks to you guys!
Originally Posted by ;
Hi, OD! Thank you a lot. I will note down your recommendations for my upcoming coding/debugging.
Nubcake above place my shocking dumb mistake, and it works. Thanks to you guys!
Originally Posted by ;
I do not really adhere to some of this shit anymore, but with that said...
for(int I=ArraySize(LongTickets)-1;igt;0;m --)
Check your loops. Gt; 0? That should be gt; -1 or gt;= 0;
And where you remove an item from your arrays does not look correct to me, but I'm not certain about this.
You're also trying to hard-cod your own arrays for a certain reason. Just make them dynamic, but use a constant to dictate how big they can receive. Start them off totally vacant, then add to them.
You spelled short wrong (ShotAPL).
I'm not really following the code correctly, but it LOOKS to me as if your logic is backward for shorts and swimwear where you are assessing for shorts to be ABOVE some line rather than under it.
And that I believe you are over-thinking this. You just need 1 line for either. You do not want a listing for another and longs for shorts. Either there is is above your long , or your short a lengthy under precisely the line. Which of those matters is dictated by the order form, so you don't need separate arrays for lines for longs or shorts. If a long is under your line then nothing happens until it is, and the reverse for shorts.
If you incorporate your order number in the title of your object line names then you can easily match them up each tick once you loop through your open orders.