trades closed today

Posted By: matty019

trades closed today - 07/01/18 08:35

Anyone know how i can restrict my staregy to only open 1 trade per day ?
Posted By: SBGuy

Re: trades closed today - 07/10/18 17:27

If you BarPeriod is 1440, then only 1 trade can be generated per day, usually.

If you have a shorter BarPeriod, perhaps you can check the various trade stats for trade or no trade in the current bar.

http://zorro-project.com/manual/en/winloss.htm

Or you can use a global variable with the date of the last trade, if today=lasttradedate, then don't enter another trade.
Posted By: matty019

Re: trades closed today - 07/27/18 08:37

thanks
© 2024 lite-C Forums