Function to close order after 2 minutes for scalping
Results 1 to 7 of 7

Thread: Function to close order after 2 minutes for scalping

  1. #1

    Function to close order after 2 minutes for scalping

    please help me to bring this role....

    Two minute hold then only close because my broker scalp holding period limit is 2 minute...

    order near when open order reach at my TP grater than 2 minute

    thanks in advance
    https://www.cliqforex.com/attachment...Adaptive Range

  2. #2
    I'm not sure that any programmer can assist you, if the problem is with your broker...

  3. #3
    Here it is. .

    Additional code is under:

    extern int Position_Min_Hold_Seconds=120;
    ....
    If(TimeCurrent()gt;OrderOpenTime() Position_Min_Hold_Seconds)
    OrderClose...

    (I didnt test it. )
    Https://www.cliqforex.com/attachment...Flexible Range

  4. #4
    Quote Originally Posted by ;
    Here it is. .

    Added code is below:

    extern int Position_Min_Hold_Seconds=120;
    ....
    If(TimeCurrent()gt;OrderOpenTime() Position_Min_Hold_Seconds)
    OrderClose...

    (I didnt test it)
    Thanks for this help

  5. #5
    Quote Originally Posted by ;
    Here it is. .

    Added code is under:

    extern int Position_Min_Hold_Seconds=120;
    ....
    If(TimeCurrent()gt;OrderOpenTime() Position_Min_Hold_Seconds)
    OrderClose...

    (I didnt test it. )
    Hello thankme,

    is this EA close trades following hit at TP then hold 120 seconds before closure or shut if open trade already reach 120 seconds?

    If already spent 120 seconds afterward dont want to maintain in TP place for a second 120 seconds...

  6. #6
    Quote Originally Posted by ;
    hello,

    is the EA close trades following hit at TP then hold 120 seconds before close?
    No

    Quote Originally Posted by ;
    or close if open trade already reach 120 seconds?
    Yes

    Quote Originally Posted by ;
    if currently spent 120 seconds then dont need to maintain in TP place for another 120 seconds....
    Sure: As soon as TP is struck,if position is open for at least 120 seconds, it should be closed.

    Goodluck

  7. #7

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.