Close oldest order first

 
Hey guys,
I am looking for a script that checks for open orders and if there are more than one (two, for an example) it closes the oldest one/ first opened.
It does not touch the pending orders if there are any, only open ones.
Can you please point me in the direction where to get this?
Thanks!
 
blackeyed:
Hey guys,
I am looking for a script that checks for open orders and if there are more than one (two, for an example) it closes the oldest one/ first opened.
It does not touch the pending orders if there are any, only open ones.
Can you please point me in the direction where to get this?
Thanks!

Forum on trading, automated trading systems and testing trading strategies

Welcome,

  • Usually people who cannot code do not receive free help on this forum, although it could happen if you are lucky. Be patient.
  • If you show your attempts and describe your problem clearly, you will most probably receive an answer from the community.
  • If you do not want to learn to code, that is not a problem. You can either look at the Codebase if something free already exists, or in the Market for paid products (also sometimes free).

Good luck.