Function to close order after 2 minutes for scalping

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
    Junior Member Rechupsycho's Avatar
    26
    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
    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
    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
    Junior Member Rechupsycho's Avatar
    26
    hello,

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

    or close if open trade already reach 120 seconds?
    Yes

    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
    Any programmer there?

  •