I'm pretty sure the shorter the period, the smaller the std error channel, the better the fit, in all but a few instances, no?
Yes I see what you want now, I think. I'm pretty sure the shorter the period, the smaller the std error channel, the better the fit, in all but a few instances, no?
alterego, the most recent change in trend would be best identified with zig-zag of say 5%, as you say. Get AB to note the date of the most recent zig trough/peak eg. trough (array, change, n=1), then draw your regression from there. Be careful with zig and make sure it's not referencing future data during backtests etc.
What the hell is wrong with you tech/a? You message me twice telling me you're going to email me something, then send nothing, then you crap on like a little kid when you are actually WRONG about using zig zag in a backtest. You CAN use it - you just need to be careful to make sure that price has fallen down more than %change, as per: http://www.amibroker.com/members/traders/11-2003.html, a valid zig zag backtest method. And it CAN be used for live trading. Get your facts straight or STFU, twit.
What the hell is wrong with you tech/a? You message me twice telling me you're going to email me something, then send nothing, then you crap on like a little kid when you are actually WRONG about using zig zag in a backtest. You CAN use it - you just need to be careful to make sure that price has fallen down more than %change, as per: http://www.amibroker.com/members/traders/11-2003.html, a valid zig zag backtest method. And it CAN be used for live trading. Get your facts straight or STFU, twit.
tech, stop coat-tailling off howard's comments. It's a bad look.
LLV() should give you the low of the 1st trough. I modified the price data for SPY so that the trough lows on 5/25/10 and 6/8/10 were the same. The previously posted "x,y" code returned the low and bars for the first trough looking backward from the current bar. So, as far as I can tell all is OK.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?