MetaEditor Question
Results 1 to 3 of 3

Thread: MetaEditor Question

  1. #1
    I'm using MetaEditor (v. 3.83). I have just begun the process of attempting to teach myself the way to make use of this instrument.

    I have some background in coding, but that was a few majors and several ages back. So there are only a few cobwebs floating around that are not happy about being upset.

    My very first attempt is only a very simple test run of opening a long position if the previous bar's close was up and a short if the previous pub was reduced.

    The simple structure was simple enough to install, but then I noticed a problem I'm not sure how to approach.

    When I hit either my Stop reduction or make Take Profit numbers before the close of the current bar, and shut the position....on the next tick, a new position is opened as it is still a fact that the prev pub has not changed (meaning that if the very first buy was a lengthy, then I open a second long on precisely the same bar).

    Basically, how do I code to tell ME not to open a second position on precisely the same pub?

    Thanks,

    Jonathan

  2. #2
    Thanks for the links guys. This was just what I wanted.


    Jonathan

  3. #3
    Read the section titled How to specify the beginning of a new pub? In

    http://www.metaquotes.net/experts/articles/feat_expert

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. Read more.