Tag Archives: indicators

Popular indicators from TA-Lib Python wrapper

Different analytical indicators

Popular indicators were introduced from 2 recent videos. These were from the TA-Lib package Python wrapper.  I further tested to see which indicators could be found useful. Although, I would give you a different answer from my recent analysis video where I demonstrated popular indicators Williams R% and Stochastic, you would think everything looks clean. This is just another way of saying they do not lag when they change direction at fast timeframes like Tick or 1 Minute. I really emphasized the importance of this in the videos.

Different results vs Dukascopy JForex

I went ahead to start analyzing the same indicator with exact timeframes using TA-Lib within Python. As compared from within Dukascopy JForex, It seems I got different results so I tested a complete pile of them. This included:

1. Stochastics was just to jumpy to work with any form of trend.

2. Beta was more consistent which did not move around as much.

3. Williams R was again to volatile (in short periods) moving between in upper and lower ranges

4. Linear Regression and Chaikin A/D Oscillator was the same effect as Williams R

The only ones that seem to work were the popular indicators which include:

1. Normalized ATR

2. SMA

3. Bollinger Bands

4. Rate of Change Percentage

As a result, I will stick these 4 above to find out the magical combination. There are others to pick from within TA-LIB but I find you want to keep the combination simple. This also is important to really understand how properly interpret the unpredictable indicators I list above.

Next steps and considerations

I need to show how to  properly implement these but it depends when there data stored eg. database vs flat file. It looks the simplest is to use CSV with multiple instrument access is less utilized on the computer hardware front. You can obviously understand hoq critical these decisions are for when using an interpreted scripting language like Python.

There will be lots more to report as I continue along. Do note I find working with Python is much more product than Java within Dukascopy Jforex API.

Package info https://github.com/mrjbq7/ta-lib

Williams % and Stochastics most reliable Matlab technical indicator

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Sample test different technical indicators for optimal forex market entries

Sample test different technical indicators for optimal forex market entries

There seems to be no spread or volume different when testing popular pairs vs volatile

Posted to my Telegram private group:

Here are my tests so far for a late friday EDT. for dukascopy, the 2 most volatile pairs (e.g. ZARJPY and USDZAR) vs more popular pairs like EURUSD and USDJPY have the similar spread cost and volume is very similar across the board. This is all within Dukascopy. I will have a video posted later today on it. I think I may need to retest on a Weds afternoon to see if there is a differennce but I wanted to test this thoery on random trading day with no news shocks.

https://www.thebalance.com/best-technical-indicators-for-day-trading-1031208

 

Currency pair spreads

ZARJPY 0.00001999999

USDJPY 0.00003
EURUSD 0.00004
USDZAR 0.00003
USDHUF 0.00002
NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Indicators and Strategies for Dukascopy JForex

Indicators and Strategies for Dukascopy JForex

 

GitHub – bdheeman/jforex: Open Indicators / Strategies for JForex

https://github.com/bdheeman/jforex

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

, Deep dive analysis of risk analysis and indicators

As you know, I do like my No SQL in memory database called Redis. There is some interesting machine learning technologies going on with this newer version. Why am I telling you this? If you’ve seen my last posting from yesterday, I have compiled a complete list of all things related around Trading and Risk. Very few people talk about it but it is so important to use understand it to stay in the game for long term. This list can be used for a variety of purposes including finding market opportunity in real time via co integration. Some of this was revealed with how some New York City trading firms who are using this for analysis so see below in my extra long video.

But first, here is a long list you should consider to take taking a look at everything based around risk and portfolio analysis

Market entry exit strategy webinar playback

I have misled on the title of this webinar topic. Since few attended on the original topic, I decided to focus on two visitors which turned into more benefit than I could imagine. Yes this video is 4.5 hours but worth everything minute.


quantlabs.net/blog/2017/01/market-entry-exit-strategy-webinar-playback

This covers:
First hour conversation topics with NYC experienced software developer in financial services:
How NYC financial companies like hedge funds and investment banks pretty well use Python
Popularity of events based on machine learning/AI
How financial service companies use correlation in real time markets to find market opportunities

How studying stochastic trumps other analytical techniques is used in NYC firms
The right and wrong approaches used by NYC firms with machine learning



Balance of video covers:

How Tradestation has dumped FX which has been handed over to Oanda (LOL!)
How American politics of Trump impacts markets

Understanding the advantages of FX broker like Dukascopy offers
Real time analysis of how an event calendar is literally screaming at your with multiple daily market opportunity
How analysis of FX volatility will maximize your trading opportunity
Proper risk metrics/analysis/management etc minimize your drawdowns
Many many more

Thanks for reading

Bryan

P.S. I am in the last few days where I will breaking out all my courses from my Elite membership: http://quantlabs.net/mkt/quant-elite/

Learn some of the courses here: http://quantlabs.net/academy/courses-2/

Get the course list here: http://quantlabs.net/mkt/quant-elite/

Note: Here is my social media you keep up to date with:

Facebook programming group: https://www.facebook.com/groups/quantlabsnet/

Instagram with dozens of daily trading charts: https://www.instagram.com/quantlabsnet/

Youtube channel with over 1400 videos: https://www.youtube.com/user/quantlabs

And of course Twitter: https://twitter.com/quantlabs

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Deep dive analysis of risk metrics and indicators

Deep dive analysis of risk metrics and indicators

(See below for most important links)

This is hopefully the last step before I go LIVE trading. This is the hardest and most involved step as described on my own blog. I will choose the best technologies and options I have presented. A lot of resources are my own as well.

See bottom for both most sensible to use as well as most convenient

Deep dive analysis of risk metrics and indicators

Available from my free Quantlabst.net/blog by searching ‘portfolio optimz’

Portfolio optimization:

Markowitz portfolio optimizaion and Bayesian Regression

Optimize Portfolio with CVaR in Matlab

R source code for trading script with update portfolio, position size, MA, cross over, SMA, optimize parameters pt 2

Entropy and Optimization of Portfolio for quant analysis

http://quantlabs.net/blog/2012/02/entropy-and-optimization-of-portfolio-for-quant-analysis/

The Efficient Frontier: Markowitz portfolio optimization in Python

https://blog.quantopian.com/markowitz-portfolio-optimization-2/

A Novel Algorithmic Trading Framework

Applying Evolution and Machine Learning

for Portfolio Optimization

http://blog.andersen.im/wp-content/uploads/2012/12/ANovelAlgorithmicTradingFramework.pdf

PortfolioSelectionwithRobustEstimation

http://www.est.uc3m.es/fjnm/esp/papers/RobustPortfolios.pdf

Advances in Cointegration and Subset Correlation Hedging Methods

http://ssrn.com/abstract=1906489

High return with low risk?

Tail hedge risk

http://quantlabs.net/blog/2016/08/high-return-with-low-risk/

Optimal F

http://quantlabs.net/blog/2012/03/position-sizing-for-quant-analytics/

*** Simplified Risk management http://www.seykota.com/tribe/risk/index.htm

Quant analytics: Paper for the Black Litterman Model: BLACK, F. (1989): “Universal Hedging:

http://quantlabs.net/blog/2011/12/quant-analytics-paper-for-the-black-litterman-model-black-f-1989-%e2%80%9cuniversal-hedging/

Factors on Demand: Building a Platform for Portfolio Managers, Risk Managers and Traders

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=1565134

Why expected return factor models and risk factor models are different? Why expected return models and risk models use different factors?

This issue is addressed in an MSCI Barra research paper that’s available online:http://www.msci.com/resources/research/articles/2008/RI_Do_Risk_Models_Eat_Alphas_April_08.pdf.
There is also a JPM paper authored by three people from Goldman Sachs that emphasizes the need for including alpha factors in a risk model:http://www.iijournals.com/doi/abs/10.3905/jpm.2007.674791.

http://quantlabs.net/blog/2011/12/why-expected-return-factor-models-and-risk-factor-models-are-different-why-expected-return-models-and-risk-models-use-different-factors/

 

COT reveals something about existing traders’ positions hence big money sentiment. Yes I’m not surprised there’s a link to that and subsequent trends. Also Call/put ratio, VIX, Bullish Percent index, Trader sentiment surveys (American investors) show a little about sentiment hence are worth investigating as leading indicators.

If you believe a bit in Markowitz and you believe that there are no correlations its indeed a good idea to do the 2:1 split as in your example. The expected profit for your position p (say number of shares or contracts) in an asset is

PROFIT = p * volatility * expected Sharpe

I think of risk position r = p * volatility.

Markowitz in its most simple form tells you therefore r ~ inv(Correlation Matrix) * expected Sharpe. If your assets are uncorrelated… eh, voila.
Of course you can pimp your utility function and include penalties for updating positions, etc. I am a big fan of sparse portfolio updates using the L1-Norm (papers by Daubechies…).

 

http://quantlabs.net/blog/2011/08/quant-analytics-algorithmic-trend-detection-methods/

 

Search on blog for ‘position siz’ meaning position sizing

Day trading money management: Position sizing

http://quantlabs.net/blog/2016/09/day-trading-money-management-position-sizing/

 

What leverage do you use and why for forex?

 

What leverage do you use and why for forex?
Understanding Leverage and Margin in Forex Trading and Avoiding… pipburner.comForex leverage and margin explained with easy words. Find out example on how to prevent losses and use forex leverage efficiently for your trading.

–I think leverage is the consequence of the strategy one chooses, and its risk. If one trades with a standard 2 or 3% risk per trade, that provides the position size (and leverage), which will normally be way below 400:1 or even 50:1!
–So you think, leverage should be less than 50:1?
==Normally, yes. For example, let’s imagine you have an account with a margin of USD 10,000, and you want to buy EUR/USD at 1.3050 with a stop loss at 1.295 and profit at 1.325. The risk per trade would be 100 pips, or 100 USD per mini lot (10,000 units). With a strategy of 2% risk per trade (i.e. 200 USD), that would allow you to buy 2 mini lots (20,000 EUR/USD), so the leverage would be 2:1. In the same situation, a leverage of 20:1 (buying 2 standard lots) would mean to risk only 10 pips per trade.
So the strategy defines the leverage.
I read your comment that a leverage of 100:1 might work. The only case I can see that working in the long run is with very tight stop losses. Were you talking about a particular strategy? Thanks3 days ago• Like1 Follow CasemCasem Tong • you see, when you lower down the risk per trade e.g 4% to 2 or 3% or lower the leveraging is always go for minimal as you can ,those 50:1 or 100,200 :1 is consider gambling ” win or lose ” Manuel said 20:1 ( buying 2std lots) risk only 10pips but do you consider if the directions go against you then the 10pips is meaningless….

http://quantlabs.net/blog/2012/04/what-leverage-do-you-use-and-why-for-forex/

 

Quant development: Who is using R to develop and test trading algorithms?

Have a look at quantstrat, blotter, FinancialInstrument and PerformanceAnalytics…
Also RBloomberg and Ibrokers DEoptim for optimisation.

http://quantlabs.net/blog/2011/08/quant-development-who-is-using-r-to-develop-and-test-trading-algorithms/

 

Money management’ search

 

Money Management for Trading Advise video

http://quantlabs.net/blog/2014/06/money-management-for-trading-advise-video/

 

Kelly Criterion for basic risk management and self adapting money management

http://quantlabs.net/blog/2016/02/kelly-criterion-for-basic-risk-management-and-self-adapting-money-management/

1 5 hour Meetup replay of Risk parameters and money management in a self adapting automated trading

 

Questions found here: http://quantlabs.net/blog/2014/11/questions-for-risk-parameters-and-money-management-in-a-self-adapting-automated-trading-world/

 

….For example, a 100K with 25K deposited and 5% return. After exposure goes up 4x, 100K exposure on 8-10 positions with 25% cushion. If margin goes up to 30k, you can expose at 5x with total 150k on 10-12 positions. You need to increase your risk and diversity on portfolio. You increase your exposure as you improve to be more profitable. Your risk goes down as your portfolio becomes more diverse with a few more positions on each iteration. You need set up an upper limit with a upper limit of the exposure to apply. Your volatility of the portfolio will go up in the long run. In a pure long/short S&P 500 portfolio, never go beyond 6x exposure. A Standard Deviation 2 could knock you back to the start. If you add forex, the mix of the portfolio changes thing. After 2nd iteration, you want to ensure you add the right mix of forex, equity, and commodity so each month you get a nice return to rapidly build you portfolio. You could double your money after 1 year if you keep your exposure 5x with 25% annual return. You should add another 25K in 2nd second with another 50k added in third year. This can only be done when you when cut your losers fast and run the winners. with discipline in mind. Retail traders will pretty well break even at best.

 

Having discipline in your risk management for long term trading for profit

(pro way!)

http://quantlabs.net/blog/2014/09/having-discipline-in-your-risk-management-for-long-term-trading-for-profit/

Why vast amounts of retail traders lose money? Applying the day trading mode when volatility is low to make money

(pro way)

http://quantlabs.net/blog/2014/09/why-vast-amounts-of-retail-traders-lose-money-applying-the-day-trading-mode-when-volatility-is-low-to-make-money/

How to apply psychology of trading when you put your positions on? CRITICAL reason to automate while retail traders WILL always lose money

(pro way)

http://quantlabs.net/blog/2014/09/how-to-apply-psychology-of-trading-when-you-put-your-positions-on-critical-reason-to-automate-while-retail-traders-will-always-lose-money/

 

Quant opinion: The three myths of modern risk management part 1

 

Volatility and VaR are stictly “backward looking”, so they work as long as the past is what is going to happen in the future. But during bubbles this is a naive assumption. Note that volatility and VaR are typically low during periods of over-optimism just before a bubble bursts. Totally useless.

The one thing to remember is that even market aggregates can become overvalued, so the G-D value principle applies to the market in aggregate as well as for individual companies, a fact missed by some value investors.

I have written a white paper on the subject here (note also my comments on risk and volatility):
http://www.pionline.com/assets/docs/CO72842217.PDF

http://quantlabs.net/blog/2011/05/quant-opinion-the-three-myths-of-modern-risk-management-part-1/

 

Which affects your currency trading?

Demand for storage and foreign currency trading

 

You can do currency trading in the futures market. The position size are manageable for individuals. You don’t need a big movement for profit. Leverage can be used to increase your profit. Interest rates affect currency markets who pays the highest. Inflation will affect the purchasing power of a particular country. Monetary policy affects by tightening or loosening money supply. Trade balances affect importing or exporting of the country. Economic growth affected based on Business cycle of a country as in recession or recovery. Political stability where there could be a political change.

http://quantlabs.net/blog/2015/07/demand-for-storage-and-foreign-currency-trading/

Is there any Relation between spot currency market (forex) and option currency market

 

I think the simplest implementation would be to trade FXE options which are listed on the major US option exchanges. FXE is the euro ETF which trades over 1,400,000 shares a day. There is enough open interest to allow you to pursue some simple strategies. As long as your account is set up for listed option trading, you can trade FXE

Is there any Relation between spot currency market (forex) and option currency market

 

MOST RELEVANT LINKS From ABOVE in Python

http://blog.andersen.im/wp-content/uploads/2012/12/ANovelAlgorithmicTradingFramework.pdf <– great research for machine learning with Portfolio Analytics/Risk/ etc

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=1906489

Basic definitions: http://www.seykota.com/tribe/risk/index.htm

The Efficient Frontier: Markowitz portfolio optimization in Python

Markowitz portfolio optimizaion and Bayesian Regression

 

These might be the most convenient and easiest for Python

http://work.ange.le.free.fr/works/MarkowitzPortfolio/MarkowitzPortfolio.pdf <— this is very comprehensive and exactly what I want

https://www.quantopian.com/posts/the-efficient-frontier-markowitz-portfolio-optimization-in-python-using-cvxopt

The Efficient Frontier: Markowitz portfolio optimization in Python

http://dx-analytics.com/11_dx_mean_variance_portfolio.html

http://travisvaught.blogspot.ca/2011/09/modern-portfolio-theory-python.html

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Big Data Reshaping China Economic Indicators?

Big Data Reshaping China Economic Indicators?

Big Data Reshaping China Indicators

Did Bloomberg not just poo poo big data last week

Watch this video at http://bloom.bg/2gwefgm

 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

BEST Volatility indicators for forecasting forex video

My video playback of:

BEST Volatility indicators for forecasting forex video playback

This is one hour long.

Links and the video are here

URGENT NOTE:

Quant Elite Annual bonus reduced $2400 to $1200 Aug 3

That’s right! In ONE day (as in tomorrow) this generous $2400 in bonus months will be reduced in half to $1200. Essentially this means that you will no longer get 24 months (2 years) of my Quant Elite service, it will be reduced by 50% to 12 months (1 year)

 

It is now ever, you have until this Weds Aug 3 to decide! Again, that is only 24 hours away!

>>> Get on this deal now

 

Thanks Bryan

 

P.S. Many benefits include:

QuantLabs.net ELITE access with highlights of:
1. Usual source code, video walkthroughs, and database analysis with enhanced structure of courses.
2. All Math analysis for all your quant analysis using Khan Academy
3. Tips on stock screening technology
4. Top vendor source code demos of top providers with Interactive Brokers and IQFeed. Windows and Linux versions included
5. Complete analysis from the best source I know of for both futures and options trading
6. Exclusive weekly Meetup video playbacks not accessible by the public

There are many more benefits of our QUANT ELITE MEMBERSHIP.
I have put together newer resources for you to visit to understand the many benefit:
1. Frequently asked question knowledgebase covering 129 topics! Click here!
2. Detail course topic listing with videos. For more knowledge click here.
3. List of MAJOR benefit listed here

I am offering you continued pricing with the all above benefits with more to come! This includes:
1. C++ and Python exploration for true High Frequency Trading on Linux!
2. Implementation of Redis NOSQL which is the world fastest database.
3. Many many algos for real world algorithmic trading using automation.

In essence, I am on the continued path to bringing it all together in coming months. As a result, here is the most affordable pricing out there that only you know about.

>>> Get on this deal now

 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

BEST Volatility indicators for forecasting forex video playback

BEST Volatility indicators for forecasting forex video playback

Thanks again from Sholom for co-hosting

Links from tonite:

https://www.oanda.com/forex-trading/analysis/currency-volatility

http://poseidon01.ssrn.com/delivery.php?ID=403118115089090088001024073084097018098035091034011074117080027026114019126073084028033027032044109027040104089094000073091118103082007012011090096002004119106087108007015042092108084100024094097127091082102127029074092064020086074127019021066072091089&EXT=pdf

http://www.elliottfractals.com/

BEST Volatility indicators for forecasting forex?

BEST Volatility indicators for forecasting forex?

Monday, Aug 1, 2016, 7:00 PM

GotoMeeting Webinar online
GotoMeeting Webinar online Toronto, ON

5 Researching Traders Went

I want to talk about this fascinating topic for max opportunity with FX trading. I have a video I just recorded here on the summary of some proposed indicator:https://www.youtube.com/watch?v=9BZiQsGm1bMI have a complete list herehttp://quantlabs.net/blog/2016/07/best-volatility-indicators-for-forecasting-forex/Let’s discuss!I will be adding Sh…

Check out this Meetup →

Join my FREE newsletter to learn more about volatility in automated trading

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

TONIGHT BEST Volatility indicators for forecasting forex?

TONIGHT BEST Volatility indicators for forecasting forex?

 

  1. Please join my meeting, Aug 1, 2016 at 7:00 PM EDT.

https://global.gotomeeting.com/join/878456069

 

  1. Use your microphone and speakers (VoIP) – a headset is recommended. Or, call in using your telephone.

 

Dial +1 (647) 497-9372

Access Code: 878-456-069

Audio PIN: Shown after joining the meeting

 

Meeting ID: 878-456-069

 

GoToMeeting®

Online Meetings Made Easy®

 

Not at your computer? Click the link to join this meeting from your iPhone®, iPad®, Android® or Windows Phone® device via the GoToMeeting app.
Detail topics found here:

 

want to talk about this fascinating topic for max opportunity with FX trading. I have a video I just recorded here on the summary of some proposed indicator:

https://www.youtube.com/watch?v=9BZiQsGm1bM

I have a complete list here

http://quantlabs.net/blog/2016/07/best-volatility-indicators-for-forecasting-forex/

Let’s discuss!

I will be adding Sholom Benzev asa co-host to offer further insight on these indicators

Special NOTE:

 

Quant Elite Annual bonus reduced $2400 to $1200 Aug 3

That’s right! In two days this generous $2400 is bonus months will be reduced in half to $1200. Essentially this means that you will no longer get 24 months (2 years) of my Quant Elite service, it will be reduced by 50% to 12 months (1 year)

 

It is now ever, you have until this Weds Aug 3 to decide!

 

Get on this deal now

 

Thanks Bryan

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!