Fifo Scripts

MPTM's new home
Post Reply
User avatar
gprince66
Trader
Posts: 73
Joined: Tue Jan 12, 2016 7:15 am
Location: Austin, TX USA

Fifo Scripts

Post by gprince66 »

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

.
You do not have the required permissions to view the files attached to this post.
DigitalCrypto
Trader
Posts: 237
Joined: Tue Feb 24, 2015 4:38 am

Fifo Scripts

Post by DigitalCrypto »

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
Post Reply

Return to “Utilities Indicators and Scripts”