1) Does anyone have any C# code showing how to plot the intraday equity curve for a day trading system trading live?
2) Does anyone have any C# code showing how to stop auto trading if the equity curve intraday crosses above $500 and then crosses back below $400?
Thank you for any help or direction.
Equity Curve plotting and feedback
-
- Posts: 7
- Joined: 17 Feb 2014
- Has thanked: 2 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Equity Curve plotting and feedback
Hello orionsturtle,
You can access the actual equity in backtesting at any given time this way: IStrategy.InitialCapital Property + ClosedEquity + OpenEquity.
In realtime you can access the Account.Equity Property
You can access the actual equity in backtesting at any given time this way: IStrategy.InitialCapital Property + ClosedEquity + OpenEquity.
In realtime you can access the Account.Equity Property
-
- Posts: 7
- Joined: 17 Feb 2014
- Has thanked: 2 times
Re: Equity Curve plotting and feedback
Okay,I'll see if I can figure it out using these snippets. Thanks for the help.