How To Capture Mouse Dragging of a Line - Page 2
Page 2 of 842 FirstFirst 12
Results 11 to 13 of 13

Thread: How To Capture Mouse Dragging of a Line

  1. #11
    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!

    Quote Originally Posted by ;
    Hi Charvo, I do not have access to my terminal for today, but also in simplistic terms, I'd approach it as follows: Loop through orders and assess if there's a line thing prefixed with the corresponding order number; If not, then make one and delegate it's price amount to a variable eg line1_oldprice;.... OD

  2. #12
    Quote Originally Posted by ;
    Sorry, Nub, that is what I want! You've got a pair of eagle eyes! Damn, I would like to reach my head . Such a dumb error. Thank you, mate! quote
    Let's swap names. You got it.

  3. #13
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.