Which indicator is most like a draw down? Mike
Size:
Color:
Size:
Color:
Thank you. Are there any coding examples in trading systems that use this?
Size:
Color:
I don't think so. How do you want to use it? pd.DrawdownSeries is a DataSeries like any other.
Size:
Color:
Perhaps Mike is looking for what appears to be
strategy/portfolio's drawdown indicator? In this case I've just updated the relevant KB article with an example of building and visualizing the portfolio drawdown % series:
WealthScript Techniques | Interacting Dynamically with Portfolio Level EquityScroll down to "Run an existing Strategy from disk and display its portfolio equity curve".
Size:
Color:
I'm mostly interested in using it as a buy indicator. E.G. SomeValue = 20 %. If drawdown of SPX > someValue. Buy at market, or if symbol - SPX drawdown > someValue.. Buy at market. Thanks for your feedback Eugene and Robert.
Size:
Color:
The DrawdownSeries of GainAndDrawdown is just a DataSeries. Check out the WealthScript Programming Guide > DataSeries > Accessing a Single Value from a DataSeries
Size:
Color:
Thanks Eugene, I will.
Size:
Color:
I created a system with what I believe is a drawdown indicator for the .SPX. Code below.
Can you check if I am correct?
Can you help write a simple system that takes a look at the SPX and buys at market if in a drawdown of someValue is reached and sell at market when making new equity highs? It would help to make sure I'm using the code example correctly.
CODE:
Please log in to see this code.
Size:
Color:
QUOTE:
and sell at market when making new equity highs?
CODE:
Please log in to see this code.
Size:
Color:
Thank you!
Size:
Color:
unfortunately, no signals or trades on the S and P 500 all data.
CODE:
Please log in to see this code.
Size:
Color:
Size:
Color:
Yes it is. Thanks for the feedback.
Size:
Color: