Learn New MQL Coding - Page 2
Page 2 of 509 FirstFirst 1234 ... LastLast
Results 11 to 20 of 87

Thread: Learn New MQL Coding

  1. #11
    91718 Limit Orders only use instance:


  2. #12
    917181 Structure (s) And Stop Orders Merely use case:



  3. #13
    91718I will require some time to check at this. I hope that I'm smart enough to know it!! Thank you for all your hard work up to now!! And, have a good weekend when we do not join before then.

  4. #14
    91718There is only 1 thing I see where I believe we've had a miscommuniion - where it had been because of my own wording, and when so I can see. I'm questioning education that is R10. Whenever there are orders placed - be it because ofa) using stop orders just OR b) with both limit and stop orders, Cease orders - if qualifying to be transferred will just move in 1 direction. They will move again if they're being transferred again in the same direction once transferred. They will NOT ever move forward and then be transferred backward.

    Example: If a market scenario has been initiated for a Use Sell Stops Only transaction, along with the Target price was 1.2345. The first placement of the Economy Stop Orders must include 1.2340, 1.2335, 1.2330, 1.2325, and 1.2320. IF the current price continued to go higher, and reached 1.2355 BEFORE some of the Sell Stop orders had be triggered, the all 5 could move higher by 10 pips. Once put at this new degree, they'd stay there until triggered - or would proceed again - but just higher - when the current price moved higher by another 10 pips.

    In a scenario where after the 5 Market Cease Orders are put, let us state that the current price dips and activates the highest Sell Stop Order in the series - which in the situation above would be the order at 1.2340 - therefore it's become an active commerce. But , the current price rallies greater and gets up to 1.2355. The 4 remaining Sell Stop Orders will all move upward by 10 pips getting: 1.2345, 1.2340, 1.2335, and 1.2330. These orders will stay in this place until they are triggered since trades - or until the current price reaches 1.2365. As you can see - IF the price began to fall significantly at the point it'd yield two trades that would enter at the same price point of 1.2340 - but that is okay if it will. And the current price will proceed that more than two can trigger at the same price.

    Stop Orders for Promotion scenarios will ONLY move UP.
    Cease Orders for Buying Scenarios will ONLY move DOWN.

    But anyhow , this is the only place where I believe we may have a problem - but it might be that I am just not reading the Logic Chart correctly (because I'm not astute on programming. If there was some confusion I can see where it had been due to where I composed the following:
    . . .Again - in this situation, it might work out that the price could pick up one or even a number of the orders - then move again - to the point where the EA will be moving the orders before going. This may cause a situation where you have duplie or multiple orders being filled at exactly the same price point - but that is okay.)))]
    That I SHOULD HAVE SAID:before THE PRICE begins going again

    I hope I have not caused too many issues!!

    I still can't believe you have this much in 2 days! You are my hero!

    Thank you, thank you,
    Mindy

  5. #15
    91718One more consideration - only to be clear...

    When Stop Orders are placed - in almost any circumstance - there will just be 5. No stop orders will be added - even in a situation where all 5 are at a negative p/l state and might have triggered as trades.

    Only additional Limit Orders can be added to complete over 5.

  6. #16
    91718
    Quote Originally Posted by ;
    There is just one thing that I see where I believe we've had a miscommuniion...
    No miscommuniion difficulty as I understood exactly the same. Stop orders proceed like tracking stops, they don't return to previous levels.

    In my flowchart, Push TargetPrice 10 pips means we monitor next level which is 10 pips off, when that new level is reached I state Pull stop orders by 10 pips the word pull meaning to bring nearer by 10 pips. So we proceed in the direction of the price.

    I used push/pull wording so it works in both scenarios sell and buy.


    Quote Originally Posted by ;
    Another idea - just to be clear... When Stop Orders are placed - in almost any scenario - there will just be 5. No additional stop orders will be additional - in a scenario where all 5 are in a state and may have triggered as trades. Only additional Limit Orders could be added to complete more than 5.
    That's exactly what is in the flowchart, as soon as they are opened, we're done together with all the stop orders. That's why there's a test Stop Orders Present?

    So that it is seems that I'm 100% aligned with your first wishes.

    Take some time to read the chart carefully, you'll receive more used and see that it does exactly that.

  7. #17
    91718ok - then all is great - I just was not sure. Thank you a million times, Mindy

  8. #18
    91718Hi Mindy,

    There is still 1 instance (at least) we haven't yet discussed. Let's take the Market situation with stop orders simply, our initial target price is 1.2340, so we have initial orders entered at 1.2335, 1.2330, 1.2325, 1.2320, 1.2315

    At this point the EA is tracking 1.2350 price in order to move up the halt orders by 10 pips after we're there, however:

    Imagine if the price activates the 2 first orders (1.2335 and 1.2330) and then goes back up to 1.2340, so it transferred 10 pips north from 1.2330. Do we need to move the remaining ceases by 10 pips or wait for the move in 1.2340 to 1.2350 to achieve that?

  9. #19
    91718No - it might continue to maintain the transfer goal still at 1.2350. So - unless the price moved above 1.2350, the first list of Economy Stop orders will remain in effect.
    So, if the price went down and picked up the initial two at 1.2335, and 1.2330 - subsequently transferred up to 1.2340 (or any number between 1.2340 and 1.2349) we would have 2 trades that would have a negative p/l and 3 pending orders under. In the event the price moved up to 1.2350 - and moved the pending orders up by 10 pips to 1.2335, 1.2330 and 1,2325 - we might get a situation where we might have 2 transactions pick up at the 1.2335 and 1.2330 slots.
    But, if the price moved directly up to 1.2365 after picking up the first 2 - then we would have the 3 remaining orders now at 1.2345, 1.2340, and 1.2335 (again leaving up with a duplie fill at 1.2335 if the price dropped out there.

  10. #20
    Quote Originally Posted by ;
    No - it would continue to keep the transfer target still at 1.2350. So - unless the price moved over 1.2350, the original collection of Sell Stop orders will remain in effect. Consequently, if the price moved down and picked up the first two at 1.2335, and 1.2330 - subsequently moved back up to 1.2340 (or some other number between 1.2340 and 1.2349) we would have two trades which could have a negative p/l and 3 pending orders under. If the price moved up to 1.2350 - and moved the pending orders upward by 10 pips to 1.2335, 1.2330 and 1,2325 - we might end up with a situation where we...
    Fine! This is what is in the flowchart however I wished to be sure.

    I should be able to offer a very first variant of the EA, this week.

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 more information