Click To Buy
TradersStudio 2.5 Now!
Is anyone aware of a function to close all open positions at the last bar. If not do you have any sample code?
Thanks,
Tom Gawlik
Try this --
If BarNumber = LastBar - 1 Then
ExitLong("LastDay",1,ExitClose,Stop)