Hi,
Can anyone please help me with the best way to turn off a strategy when it reaches a certain dollar loss limit for the day. I know I can set a variable to tell it not to trade, I am just not sure how to get how much a strategy has lost in a give day.
Thanks,
Preston
EL Help
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
Hi Preston,
Please see a sample code in the attachment.
Please see a sample code in the attachment.
- Attachments
-
- stop_loosing_this_day.zip
- (1.38 KiB) Downloaded 139 times