saint louis MO
Experience: Intermediate
Platform: TradeStation
Trading: NQ, ES, YM, CL, GC
Posts: 149 since Oct 2017
Thanks Given: 95
Thanks Received: 177
|
I would like to learn how to write code that would check to see how many trades have been taken this month or this year or this day. I have instances where what I am testing requires a trade counter to eliminate taking trades after the initial signal failed.
For instance, in plain english...
if total trades this month = 0 then begin
or
if total trades this year <=3 then begin
or
if total trades today <=4 then begin
This would be very useful as it puts a limit on how much you could lose in a given year, month, day.
Any pointers would be greatly appreciated.
|