stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Fifo Scripts
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5207
Page 1 of 1
Author:  gprince66 [ Sun Jun 25, 2017 8:04 pm ]
Post subject:  Fifo Scripts

Here are two scripts for the US Members that close trades in proper Fifo order. These do not have a global variable to talk to the EAs, there is a bool that allows you to remove the EAs.

I wrote these a few years ago, so please don't judge the code :smile:

If you trade with tight grid spacing, there will be fifo errors while the code is looping through tickets with the same OrderOpenTime(), simply ignore these.

Knock on wood, these have worked 100% of the time I have used them to 'close all trades'.

Many, many, many thanks to Steve and all the contributors of the original 'CountOpenTrades()' function. Without the original Fifo Ticket code i would have never been able to put these scripts together. :clap:

Cheers,

Gary

.
Author:  DigitalCrypto [ Wed Jul 12, 2017 9:57 am ]
Post subject:  Fifo Scripts

Thank you Gary.

I was using these scripts or versions of it that Steve had posted with some of his EAs.

I use them for my manual trading so I don't have to sort the trades in the Empty4 trade manager.

Much appreciated,
David
All times are UTC Page 1 of 1