NexusFi: Find Your Edge


Home Menu

 





Rolling Sharpe- Trend Indicator for futures?


Discussion in Emini and Emicro Index

Updated
    1. trending_up 1,970 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 4 attachments




 
Search this Thread

Rolling Sharpe- Trend Indicator for futures?

  #1 (permalink)
timothymhanna
Detroit, MI
 
Posts: 15 since Oct 2010
Thanks Given: 0
Thanks Received: 3

Is there an indicator or does anybody know the easy language code for calculating a rolling sharpe ratio to using for determining trend?

I'm looking to generate a signal if this "custom sharpe indicator" crosses above and below zero. I tested this in excel and it works really well to determine an exit of a trend and formation of new trend.

I took the return over e.g. 20 5 minute bars and divided it by the standard deviation. If negative, downtrend. If positive, uptrend. If crosses above / below zero, the trend changed.

Anyone using something like this or know how to program so that you're calculating return over x number of bars and dividing by standard deviation over x number of bars?

Thanks,

Tim

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
How to apply profiles
Traders Hideout
Trade idea based off three indicators.
Traders Hideout
Quant vue
Trading Reviews and Vendors
 
  #3 (permalink)
piebald
london, uk
 
Posts: 14 since May 2015
Thanks Given: 0
Thanks Received: 3


I don't know a program that calculates it. But I might be interested in coding it up myself and doing some long term back tests if you convinced me it was worthwhile

How good is the resulting performance by whatever your chosen metric is?
Over how long a period?
Can it beat transaction costs?
What markets have you tried it on?

Reply With Quote
  #4 (permalink)
timothymhanna
Detroit, MI
 
Posts: 15 since Oct 2010
Thanks Given: 0
Thanks Received: 3


piebald View Post
I don't know a program that calculates it. But I might be interested in coding it up myself and doing some long term back tests if you convinced me it was worthwhile

How good is the resulting performance by whatever your chosen metric is?
Over how long a period?
Can it beat transaction costs?
What markets have you tried it on?

I did some testing on ETFs and Mutual Funds. Regarding transaction costs, the ETFs had a bid ask spread % taken out for trades. If trading OneSource or NTF, no transaction fees. I haven't looked at using a fixed $ amount for transactions yet.

I want to have code automated for an intraday and daily signal on futures and equities.

Here is SPY and TLT from 2003:


Here it is on a strategic beta ETF universe:




This is time series on an unoptimized 30D (randomly chosen) showing the signal during price movements. The threshold is also unoptimized. I did not test different thresholds other than 0 and 2 / -2 signal crosses for entry and exits.


Reply With Quote




Last Updated on July 7, 2015


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts