Loading...

Follow Algorithmic and Mechanical Forex Strategies | O.. on Feedspot

Continue with Google
Continue with Facebook
or

Valid

Contracts for Difference a.k.a. CFDs are derivatives trading instruments between two parties. There are thousands of global markets which can be traded in a CFD format. With CFD trading, you’re essentially speculating on the price movements of financial instruments. These could be bonds, FX pairs, commodities, indices, or stocks. It doesn’t matter whether the asset prices are rising or falling – all that matters is that you call it correctly. With CFDs, you’re not taking ownership of the underlying asset – you’re simply speculating on price movements. Even so, understanding your risk vs. reward in any transaction is essential. In the United Kingdom, there is no stamp duty on profits generated through CFD trading, making this an attractive option for traders and investors.

Other benefits to CFD trading include the fact that it is a terrific hedging tool against losses that you suffer in physical investments. With CFDs, you don’t need to have all the money available upfront to purchase the contract – leverage and margin are used. This is a double-edged sword however since you must assume the pros and cons of leverage. If trades go your way, you will profit from leverage, and if they go against you, you stand to lose more than your initial investment. Nonetheless, many UK traders and European traders enjoy CFD trading since it is a flexible alternative to conventional investments.

CFDs in Action

The concept of a CFD is best understood by way of an example. At inception, you decide the number of CFDs you wish to trade. Every point movement is associated with a specific profit or loss. If markets move in your favour, you will profit off every point. If they don’t, you will incur a loss. CFDs allow traders to go long if they are bullish on the market, or short if they are bearish on the market. It is entirely possible to profit in either direction. One of the most popular uses of CFD trading is hedging. Simply put, this means that you can use CFDs to prop up your other investments that aren’t doing so well. For example, if you purchased Google stock through your broker and the price started decreasing, you could open a CFD trade on Google and go short on it to generate profits accordingly. That way, you’re minimizing any potential losses through your Google stock. This is true of any asset category – indices, commodities, forex, stocks, or bonds.

Any product that you trade on margin opens you up to potentially larger profits or losses. Since you are only paying a fraction of the overall cost of the trade (the contract), you don’t need all of the money upfront. Therefore it is inherently attractive to many traders. Popular CFD trading markets include the Dow Jones, the NASDAQ 100, the S&P 500, the FTSE 250, the FTSE 100, the Nikkei 225, thousands of stocks, currency pairs, commodities like oil, copper, gold, sugar, platinum, natural gas, and bond markets. According to leading CFD provider, Wilkins Finance the best CFD definition is one which explains what a CFD is, how it works, what advantages are involved, and what the current risks are. It must be borne in mind that CFD trading is a high-risk activity and is not suited to all types of traders. If you have a keen grasp of the risks of this type of trading activity, it is certainly an option worth considering.

The post Making Sense of CFD Trading appeared first on Algorithmic and Mechanical Forex Strategies | OneStepRemoved.

Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

So, you believe you have found a sound forex trading system or Expert Advisor (EA) and you are feeling ready to dip your toe in the water. It’s important not to rush in and instead take a step back to thoroughly test the strategy or EA through back testing.

Before we look at how to test if an Expert Advisor is profitable, first let’s look at what forex back testing actually is?

Forex back testing allows you to test the EA in order to see whether it actually does what it should do. Any forex trading system is completely useless if it doesn’t do what you expected it to do. Back testing uses historical data to enable you to see how the EA would have performed. By entering the historical data, you would be able to see which trades your EA would have recommended to you. This way you can check whether the EA is going to work for your chosen trading style and individual goals. Furthermore, this process allows you to understand in more depth how your EA works and to identify flaws in the system.

Back testing is time consuming but it is worth it. It is important to back test in both a bull and bear market and to collect sufficient data so that you know how your EA will perform regardless of whether the market is rising or falling. Another point, is the more accurate the data you use, the more precise your back testing will be. Therefore, it is preferential to use accurate historical data rather than indicative data and also use a realistic level for slippage.

Forex back testing is an essential part of developing and using a forex trading system. However, it is important to keep in mind that the results your back testing give you are based on past performance, which is not necessarily indicative of future performance. Back testing will help you feel more confident about the ability of an EA, but it is important to remember that no amount of back testing can guarantee future profits.

Where can I back test?

MetaTrader 4 offers its users a Strategy Tester feature. This is simple to use and enables you to select the EA you installed from the Expert Advisor choices. For this you would need to have the MT4 platform. The most capable brokers offer their clients the MT4 platform. One such broker is Vantage FX, they are an award-winning forex ECN broker. Not only do they offer their clients MT4, but also some of the tightest spreads in the industry and unparalleled execution.

The post How to Back Test if a Forex EA is Profitable appeared first on Algorithmic and Mechanical Forex Strategies | OneStepRemoved.

Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Maybe it’s the desire to keep getting better or simply jumpiness, but traders are always looking for that new magic bullet strategy. Whether you deal in forex or cryptocurrencies, trying new approaches is always on the to-do list. But it isn’t always possible to test a new trading strategy without typically losing substantial sums of hard-earned money.

This is exactly what prediction platforms want to change. Decentralized, blockchain based platforms give individuals fun ways to research and apply their insights to their predictions, test new strategies, and take part in fantasy trading competitions against fellow traders. On some platforms players create fictional portfolios, where the consequences of their trading decisions are decided based on real-time market data. On others, they simply join prediction platforms on any type of subject imaginable. On all platforms the winners walk away with cryptocurrency, ERC20 tokens that can then be traded on exchanges for reach cash.

Seems too good to be true? It’s not. They’re out there, and there are some huge benefits to exploring them. Namely...

Lower fees and no commissions

When it comes to trading forex, stocks or even cryptocurrencies, every trader knows that you always lose some money in the form of fees and commissions. It is simply the cost of doing business in the markets. What stings is when you’re still testing a trading strategy, the efficacy of which you’re still not sure about - and end up paying the fees over and over again.

Fantasy trading markets and prediction markets on the other hand - generally allow you to eliminate the fees that are involved in trading. With no brokers or intermediaries to arbitrate interactions with the platform, players simply remit a certain amount of their tokens to enter competitions and trade, experiment or predict almost endlessly, while top performers earn back tokens in the form of winnings.

This low, often no-fee structure allows the novice and the experienced trader alike to battle test their skills and hone their insights for the real markets.

A level playing field

When it comes to forex especially, the current trading scenario makes it very hard for the small guy to make money. The competition is just too stiff and the information gap too significant. For example, retail brokerages have the ability to collate pricing information from different banks and similar liquidity providers. Individual traders do not get the same access to better spreads and trading flow insights.

Fantasy trading platforms make the field more equitable by creating all competitions in peer-vs-peer format. This means that it is always individuals who end up competing against each other (as opposed to institutional traders), making it an apt environment in which to play and potentially earn - without the unfair advantages seen in other markets.

A trustless environment

Trust makes the forex trading world go round. Without trust, we wouldn’t be giving our money to brokers who then give our money to exchanges. It’s because we trust the system that we calculate profits from trading each month even before the amount has made it to our bank accounts.

But there’s also a downside to relying so much on trustworthy intermediaries. Sometimes, brokers are unable to pay on time. Or scenarios arise where brokers or intermediaries simply cannot repay funds.

In these scenarios a trustless environment is ideal. Fantasy trading and prediction platforms that are based on the blockchain rely instead on smart contracts. Smart contracts are coded to decide what transactions need to be executed when - and under what circumstances.

With this type of system competitors are always assured of receiving their payout - as it’s built directly into the blockchain. A competitor no longer has to rely on the trust of an intermediary, but can instead rely on the trust of the technology - whereby steadfast rules are established and applied, and the technology inherently provides payment security.

While various prediction platforms exist online, it’s up to the individual to decide how and what they would like to engage in. From fun prediction games like Augur, to cryptocurrency predictions and fantasy forex trading markets like ZeroSum - the platform is out there for those who want to experiment, learn, compete and earn.

The post Looking to Try a New Forex or Cryptocurrency Trading Strategy? Use This Instead appeared first on Algorithmic and Mechanical Forex Strategies | OneStepRemoved.

Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

The last version of MetaTrader required offline charts for anyone that wanted to create a synthetic currency pair or instrument. Since MetaTrader 5 still does not allow for offline charts, the ability to create synthetic time frames isn't possible using the charting time series.

The new build 1640 for MT5 introduces the ability to create synthetic instruments. I, for example, want to watch VIX Calendar Spreads. Instead of just using my indicator, I also would like to see a chart that helps me track the calendar spread.

A synthetic instrument chart displaying VIX Calendar Spreads

How To Create A Synthetic Instrument Chart

Right click on the Market Watch window (look to the image on the right). You'll see Symbols appear in a dropdown menu. Click on it.

Alternatively, just push Ctrl + U on your keyboard.

Now enter in the Synthetic Instrument name. The name can be anything that you choose with allowed characters.

The most important step is to enter in your formula. As you can see in the image below, mine is a symbol subtraction. The primary keywords that you'll use are bid() and ask(). So, if you want the bid of EURUSD, for example, you type in bid(EURUSD).

Finally, make sure to set the number of digits in your instrument. Otherwise, your chart will show a large number of unwanted, extra decimals.

The post How to Create a Synthetic Instrument In MetaTrader 5 appeared first on Algorithmic and Mechanical Forex Strategies | OneStepRemoved.

Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

SKEW should lead VIX, right? Traders get worried about a crash, which might anticipate volatility in the S&P 500.

SKEW is in green.
VIX is in blue.

If SKEW was a perfect predictor of VIX, then you'd expect the blue line to look like the green line with a small gap in between them.

The theory was that SKEW (in green) would pull up VI (in blue).

A quick scan of the chart shows that's not the case. There are occasions where green spikes up followed by blue, but it intuitively feels to me like a case of cherry picking. Also, notice the largest blue spike around value 500. If SKEW lagged VIX of the other way around.

Just for the sake of being thorough, I measured the cross correlations of If SKEW and VIX using both my smoothed values and the unprocessed ones.

Here's the cross correlation of the smoothed values.

The cross correlation of smoothed SKEW and VIX

And here's the cross correlation of the unsmoothed values.

If anything, the hypothesis is backwards. SKEW 18 days ahead of VIX has a -19% correlation. The correlation should be positive and > 40% to carry any substantial meaning. The weak correlation value and the fact that it's negative that this idea is better tossed in the bin.

Click here to download the data used in this analysis. You'll noticed that I first normalized the VIX and SKEW values to allow for easier visual comparisions. Because the data is extremely noisy, I applied a 7 day SMA to make visual comparisons easier.

The data used was from October 16, 2013 to December 21, 2017.

What is SKEW?

SKEW, which is another volatility index run by the CBOE, provides a measure of how worried traders are about tail risks.

Here's the full description directly from the exchange:

The crash of October 1987 sensitized investors to the potential for stock market crashes and forever changed their view of S&P 500® returns. Investors now realize that S&P 500 tail risk - the risk of outlier returns two or more standard deviations below the mean - is significantly greater than under a lognormal distribution. The Cboe SKEW Index ("SKEW") is an index derived from the price of S&P 500 tail risk. Similar to VIX®, the price of S&P 500 tail risk is calculated from the prices of S&P 500 out-of-the-money options.

SKEW typically ranges from 100 to 150. A SKEW value of 100 means that the perceived distribution of S&P 500 log-returns is normal, and the probability of outlier returns is therefore negligible. As SKEW rises above 100, the left tail of the S&P 500 distribution acquires more weight, and the probabilities of outlier returns become more significant. One can estimate these probabilities from the value of SKEW. Since an increase in perceived tail risk increases the relative demand for low strike puts, increases in SKEW also correspond to an overall steepening of the curve of implied volatilities, familiar to option traders as the "skew".

What is VIX?

This is also taken directly from the exchange:

The Cboe Volatility Index® (VIX® Index) is considered by many to be the world's premier barometer of equity market volatility. The VIX Index is based on real-time prices of options on the S&P 500® Index (SPX) and is designed to reflect investors' consensus view of future (30-day) expected stock market volatility. The VIX Index is often referred to as the market's "fear gauge".

The VIX Index is the centerpiece of Cboe Global Markets' volatility franchise, which includes volatility indexes on broad-based stock indexes, exchange traded funds, individual stocks, commodities and several strategy and performance based indexes, as well as tradable volatility contracts, such as VIX options and futures.

These revolutionary volatility products can offer investors effective ways to help manage risk, leverage volatility and diversify a portfolio.

The post Does SKEW Predict VIX? appeared first on Algorithmic and Mechanical Forex Strategies | OneStepRemoved.

Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Cryptomania provided me with the largest percentage gains in my trading career. Back in June 2015, I decided to spend $1,000 on a punt. I said, "Bitcoin is either going to $0 or $10,000."

That was back when bitcoin traded at $283, which bought 3.619 bitcoins. At $10,000, that woulda coulda shoulda meant $36,200 dollars in my pocket.  Here's my offline (and now defunct) wallet so that you can see the activity: o/address/1LzhWxzdCoPtfVRTu9dxMTRKZoe8oQiEmn

Notice that the first transaction date was in January 2017. I originally purchased those coins through an exchange called Coinsetter. That business was purchased by Kraken, but it wasn't until about a year later that I grew paranoid enough to take over complete security of my coins.

Bitcoin's main purpose is to eliminate the need to trust a 3rd party like a broker. Once I grew comfortable using wallets (I recommend Electrum) and especially the idea of cold storage, I finally put my investment completely into the blockchain.

Did I really turn $1,000 into $36,000?

A Big Enough Win

I sold my bitcoin last week at an average price $9,775. It looks like my final profits will total around $28,785.35. Doesn't that seem oddly precise for an estimate?

So far, I've withdrawn $19,727.17 into my bank account with $9,058.18 in cash stuck at the exchange.

The money remaining to withdraw from Kraken

Because of an inexplicable hangup verifying my identity, I'm limited to withdrawing $5,000 in cryptocurrencies per day from Kraken. Ok, so I withdraw crypto from Kraken to where exactly?

In order to turn paper profits into actual dollars, I have to transfer some form of crypto into Coinbase. Coinbase is where I did successfully verify my identity. It's not ideal because they charge a massive spread of nearly 5% of the value. I want to get my money out and that's my only method. You just suck it up and pay the fee. At Kraken, the spread cost of Ethereum is around 0.25%.

My super convoluted process of getting the cash out is:

  1. Turn the cash at Kraken back into crypto so that I can transfer the value to Coinbase. That means buying Ethereum because it has the fastest confirmation time.
  2. Jump through a number of Kraken pages to submit a withdrawal request
  3. Wait for Kraken to send the withdrawal
  4. Wait for Coinbase to see and credit the Ethereum transfer to my account
  5. Sell the Ethereum at Coinbase by paying a massively marked up spread.
  6. Wait another day for dollars to show up in my bank account

Transfers from Kraken

Transfers to Coinbase

The reason I'll wind up with about $28,000 in profit instead of ~$36,000 is that I decided to diversify across different cryptocurrencies in the summer. Monero was a huge win for me (bought around $75, sold for $297). Ripple, Stellar Lumens and Ethereum significantly underperformed bitcoin. Whenever I re-enter the cryptocurrency space again, I will do so across multiple assets. What I won't replicate is diversifying amidst mania. That needs to happen when the markets are totally boring. I underperformed my target because I made a bad decision.

Last week, I went ahead and sold all of my bitcoin as the price approached $10,000. My average exit price was $9,975.

Yesterday, bitcoin touched $19,000 on some exchanges. Doesn't that drive me crazy that I woulda coulda shoulda double my already significant winnings?

I confess to a small bit of "if would've been nice if I hung on longer". But when I look at the charts, there is 0% chance I would have held on until today. And, there's noooooo way I'd hold it over the weekend.

I've seen many parabolic markets before. I never time the top - it's best to get out when you already have a massive win locked up. The way I make money is on the entries, by purchasing things when they're quiet and boring.

The best counter example is from back in 2009. I caught the monster move in the silver ETF (SLV) when it traded in the high 20's. Instead of buying the ETF, I started buying slightly out of the money calls.

As my out of the money calls became at the money calls, I would sell that strike and roll it into a higher strike. Rinse and repeat.

Soon, my $1,000 punt was up to $6,000. The market was absolutely insane. I knew it was crazy. I knew it was parabolic. But, I was afraid of missing out on even more profit. And so, I put stuck my head where the sun don't shine and watched up profits evaporate.

Do you know where I finished that silver trade? $800!!! I lost money on a trade that had earned over $5,000.

That will not happen to me again!!!

This current bitcion craze is driven by the CBOE launching bitcoin futures on Sunday. In my opinion, this is an extreme case of buy the rumor, sell the news. So much can go wrong on the futures launch.

  • The futures market brings phenomenal quantities of capital into the market. Most professionals will not buy breakouts. The near universal consensus is that bitcoin futures supports the bullish case. As a dedicated contrarian, I predict that it's profoundly bearish simple because everyone is so confident about the bullish case.
  • Many of the spot exchanges offer leverage. What if there's a massive panic and liquidity evaporates FXCM style? Leverage + Volatility leads to bankrupt businesses. If your money gets locked up in a bankruptcy proceeding, you won't see that money for years. And when you do, it'll be pennies on the dollar.
  • People always hope to trade the top. But, you know what's common with tops? Liquidity is super thin. Most of the depth of market on Kraken's bitcoin is only worth a few thousand dollars deep. Even a small fish like me with 28k would sweep most of the order book. It's completely unrealistic to expect a decent fill in fast market conditions.
  • 100% of the coin exchanges are overwhelmed by the traffic. I see this "trading screen of death" more often than I'm able to log in to my Kraken account.

    The trader's death screen. "We know the markets are volatile, but our network engineering doesn't support spinning up new servers when needed. Oops"

  • The uber-bullishness extrapolates that leverage from the futures market goes into the bullish case. What happens if one of the large prop trading firms applies a few billion in capital to smashing down the price? Joe Retail in the US and Ms. Watanbe in Japan will puke their positions. This 4 year run-up in the price will crash with breathtaking speed if the institutional money comes in bearish.
  • Converting crypto into fiat currency is a massive pain. Exchanges like Kraken have the absolute worst customer service in the world. I wasn't able to complete a withdraw order yesterday because I had a limit order to sell the handful of ethereum in my account and forgot about the order. When I tried to transfer ethereum into Coinbase, Kraken gave me the error message "Insufficient funds". WTF? I had nearly $15,000 in the account at the time. Customer Disservice takes WEEKS to reply to questions if they reply at all. The only reason I was able to resume withdrawals is that I remembered that the pending order tied up my unused margin. Otherwise, I'd be sweating bullets again this morning wondering how to get my money out.

The fear of missing out on another 25k in profits could have kept me in the market. But I wanted to write this as a trading journal entry to document that I am honestly and truly happy with the outcomes of my cryptotrades. It could've been better, but losing $20,000 sounds twice as bad to me as making $20,000. I'd rather use that money to retire 100% of my non-mortgage debt and fund my next punt: long May VIX futures.

The post Cryptomania - The Fear of Missing Out appeared first on Algorithmic and Mechanical Forex Strategies | OneStepRemoved.

Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

As a relative newcomer to the trading scene, your eagerness to get started may overwhelm your better judgment. There are several questions you need to ask yourself before you start trading, including the following:

  • Which trading platform are you going to be using?
  • Which financial assets are you going to be trading?
  • What affects the market prices of your chosen assets?
  • What trading budget are you going to be working with?
  • What resources can assist in your trading activity?

Of course, there are many other questions that you will need to consider when you begin trading.

The trading platform of your choice should be one that is credible, offers transparency, and low spreads. Whether you are trading CFDs (commodities, currencies, indices, stocks or treasuries) or Forex, you will always want to work with a regulated brokerage that offers you recourse in the event of nonpayment, anomalies, or problems. The trading platform you choose should be fully registered, licensed and regulated to offer real money trading in your jurisdiction.

Trade with a Licensed and Regulated Broker

Many operators currently offer their services beyond their jurisdiction. If you’re going to be investing your hard-earned money with a trading platform, ensure that they have FCA (Financial Conduct Authority) licensing, CySEC (Cyprus Securities Exchange Commission) licensing and regulation, ASIC, or other reputable licensing.

If possible, it is always preferable to use a brokerage that offers you demo trading options. When you trade on a demo account, the broker typically provides practice trading funds which you can use to test your trading tactics and strategies on your chosen assets. On the topic of assets, you will want to pay attention to where you invest your money.

Stocks, commodities, indices, currencies or cryptocurrency are all available to you when you trade from home. It is not necessary to frequent land-based brokers to invest your funds in financial assets. Mobile trading options provide maximum convenience, cost-effectiveness, and variety. Expert traders recommend that you pick a financial asset that you understand such as a currency, a commodity, an index or a stock. Examples include the USD, GBP, or EUR, gold, silver, the FTSE 100 index, Google, Twitter, Amazon etc.

Allocating a Budget to Trading Activity

The precise allocation of funds towards each financial asset depends on your available budget. Never trade with more money than you have available in your bankroll. Financial trading gurus advise novices and intermediate-level traders to use specific credit cards or debit cards for trading purposes. That way, you will not mix household expenses with trading expenses, and you will be able to keep a close tab on your budget allocation towards your trading endeavours.

On the topic of budget allocations, it is preferable to limit each trade to know more than 1% of your available bankroll. As you become more adept at trading, you may be able to increase that allocation to 2% of your available bankroll. Be advised that budgetary constraints are necessary to protect you from sudden market changes. Volatility is an inherent component of financial markets, and the only way to protect your investment is by spreading it across as many different trades as possible.

Use trading resources to assist you

As a newbie trader, or an intermediate-level trader you can always benefit from the know-how of experienced traders. It’s not only about what you trade, or how you trade; it’s also about reading macroeconomic variables such as interest rates, nonfarm payroll data, gross domestic product, inflation rates, changes to monetary or fiscal policy etc. Experienced traders know which assets and asset categories are likely to move given an imminent economic data release. Pay attention to speculative activity, notably shifting capital from equities to commodities (from stocks to gold or Bitcoin) as this could signal the beginning of a reversal.

The post How to Enter the Trading Arena appeared first on Algorithmic and Mechanical Forex Strategies | OneStepRemoved.

Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

December and January were extremely unkind to me. I took a huge loss on December 9 that coincided with the Fed meeting and another big punch in January. In total, I went from a 28% profit to a ~4% net loss.

Deservedly, my inbox quickly flooded with comments and suggestions on the drawdown. The most common of those was to stop trading during news events.

So... why am I still trading during news events? There are a few answers to that question.

Curve fitting

It's not like the strategy loses money on every single news event. It's 100% true that news events like the Fed meeting can and badly hurt. Say that I'm determined to exclude news events in the future. I'd have to

  1. Collect historical news event data
  2. Create a second algorithm, which selects the news events that forbid and allow trading to continue
  3. Test how the news algorithm interacts with Dominari
  4. Repeat this many times until I'm happy with the final result

Due to the tiny number of news events that impact the markets like the December 9th announcement, my data set is miniature. The risk of overfitting to historical news events is huge.

Working with tiny amounts of data provides little in the way of long run confidence. Focusing my efforts elsewhere is far more likely to improve performance and requires much less work.

Too many trades

Too many trades sounds a bit naive, so let's dig into what that means. Dominari trades a portfolio of 7 different instruments. All instruments cross with USD.

  • EURUSD
  • GBPUSD
  • USDCHF
  • AUDUSD
  • NZDUSD
  • USDJPY
  • USDCAD

Many subscribers correctly observed that the major losses occurred with trades open on all 7 pairs in the portfolio at the same time. A good predictor of trade performance is the number of trades open simultaneously.

1-3 trades seems to be consistently profitable
4-5 trades leads to biting my nails
6-7 trades is neutral to disastrous

Testing and confirming the max open trades rule was quick and easy. 5+ trades is very dangerous.

Accordingly, Dominari now exits all open trades if there are 5 or more trades open at any given time.

The next feature of Dominari will be a reversal strategy. Dominari was clearly prone to sudden equity changes if 5+ trades were open at the same time.

Make the losses work for us

An obvious counter strategy is to open trades in the opposite direction whenever Dominari would otherwise open too many trades. Testing the idea is very easy.

Coding a Dominari reversal strategy, however, would require a major reprogramming of the expert advisor's code.

The number of trades per year would be miniscule. I doubt that it would average even 1 trade per month.

The idea is that Dominari can be the normal trading strategy. Whenever Dominari opens too many trades, the strategy then switches into reversal mode and trend trades with a simple trailing stop.

Switching direction should mostly reverse the negative trade skewness back in the positive direction. Almost all of the offending trades open at exactly the same time.

If the biggest losing trades opened at different times, there would be the risk of being too late to the party. All blowout trades opening at the same time means that the strategy can realistically reverse 100% of would-be losses into profits.

Sitting at the top of the docket are changes to Pilum. You can expect to hear about those soon so that I can incorporate Pilum into the Dominari signals. Once that and 2 other internal projects are finished, I'll be able to dedicate the time required to fully implement the Dominari Reversal System.

Equity stop loss

Dominari uses emergency stop losses on all tickets. That is appropriate 99% of the time for individual trades. Those emergency losses reset once per hour in line with the concept of the TODS.

A little of the problem was bad luck. My stops came within a handful of pips of being triggered. Then they reset even further away, which made a bad problem worse.

When all trades move at the same time, then clearly the strategy could suffer extreme losses.

The first attempted solution after the Fed announcement was to add a portfolio level stop loss. The way that I wrote it also updated once per hour. When a second negative movement came in January, I stopped trying to be clever. It's a flat, simple, stupid stop loss. If I lose more than 4% on all open trades, the entire Dominari portfolio goes flat.

I'm still trading Dominari

I still have my money trading the Dominari system; my confidence in the long term performance hasn't changed, but it obviously requires safeguards. The max number of trades and the portfolio level stop loss will go a long way to limiting the impact of big moves in the future. AND, I should get the counter-strategy developed relatively soon to turn potential frowns upside down.

Lastly, many of you questioned why I've been so quiet. The honest answer is that I needed some time to process what happened. It's easy to feel overwhelmed and discouraged when you get knocked down. I needed some time to process what happened.

I also needed time to double check the changes that I made to the portfolio were actually beneficial. It's very easy to appease traders when they're upset by rushing out features before they're thoughtfully considered.

My money is on the line (I lost 2,000 euros between the two moves). What hurt my subscribers hurt me, too.

The post 2 Painful hits appeared first on Algorithmic and Mechanical Forex Strategies | OneStepRemoved.

Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

I was really excited about my Pilum strategy two months ago. The research looked great and everything was ready to rock and roll. Demo testing began and then... not much happened.

The Quantilator is (mostly) finished, which finally gave me time to circle back and review what happened with Pilum.

Live demo trading of Pilum. Dec 9, 2016 to Feb 7, 2017

The expected outcome was that I would win 75% of the time. Trades were infrequent, so I thought maybe I'm just having bad luck. But then my win rate remained stuck around 50%. Simple statistical tests told me this was unlikely to be bad luck.

I used the research time to pour over my research code and to compare it with live trades. What I found was that a single line of code (AHHHHHHHHHHHHHHH!) was incorrectly calculating my entry price, dramatically overstating the profits.

The flawed code produced this equity curve from a single combination of settings:

When the actual, correct result looks like this with those same settings:

The accurate backtest of Pilum

I'll be honest... I like the flawed backtest a lot more!

The new, single-setting backtest isn't as good, but it's still trade-worthy. There are some characteristics that I dislike and features that I love. Let's dig into those.

What I dislike

The frequency of trades is very low. Out of 19 months there were a total of 43 trades. 43 trades to comprise a backtest on 40+ instruments is a very small number.

If it weren't for the statistical pattern backing up the frequency, I would not consider the test. However, there are 20,000 bars each on the 44 instruments. There are 880,000 total bars used to analyze whether my Pilum pattern offers any predictive value.

The most valuable predictions, however, are also exceptionally rare. That's why I'm not able to get the trading frequency higher, which would potentially smooth the returns.

What I love

My previous systems like QB Pro and Dominari traded actively for relatively small wins. Trading costs exercised a massive impact on the overall performance.

The accurate backtest of Pilum

Now look again at the correct equity curve (the image to the right). Do you see the final profit of roughly 0.14? That's a 14% unleveraged return over a 19 month period.

Allocating 2:1 or 3:1 leverage on this strategy could average annual returns of 15-25%.

Detecting hidden risk

A key measure of risk is skewness. You may not use that term yourself, but it's something most of you already understand. The biggest complaint about people trading Dominari was that the average winner relative to the average loser was heavily skewed towards the losers.

Dominari wins on most months, but when it lost in December it was devastating. I implemented what I thought was a portfolio stop after the December 9th aftermath. Then I had a smaller, but still very painful, loss in January. The portfolio level stop loss of 3% should prevent future blowouts now that I know what goes wrong.

I still believe in Dominari. But, I obviously lost the work of most of the year due to those events.

Knowing that skewness is a good measure of blowout risk (even if you've never seen it in a backtest, like happened with Dominari), Pilum looks extremely encouraging.

This is a histogram of profit and loss by days. You should notice a few things.

The tallest bar is to the right of 0. That means that the most frequent outcome is winning.

The biggest winning day is dramatically better than the worst losing day. The worst outcome was a loss of 2%. The best outcome is gains near 10% in a single day (unleveraged!).

This is the statistical profile of an idea that's much more likely to grab an avalanche of profits than it is to get blown out.

It gets even better

Would you say that the blue and red equity curves are highly or loosely correlated? Look closely.

Writing this blog post made me think carefully about the Pilum strategy. I decided that maybe I should see if all of the profits are coming from different settings at the same time. There's very little risk of overfitting the data as my strategy only has 1 degree of freedom.

The blue bars are the equity curve of Setting 1.

The red bars are for Setting 2.

Do you think these are tightly or loosely correlated?

If you said loosely correlated, then you are correct. Notice how each equity curve shows large jumps of profit. Did you notice how those profit jumps occur on different days?

The blue setting skyrockets on a single day in November 2016. It leaves the red equity curve choking in its dust.

But then, look what happens as I advance into December. The red curve dramatically catches up to the blue curve and even overtakes it.

The correlation between the 2 strategies is only 57%.

Combine multiple settings into 1 portfolio

This is a much nicer equity curve!

Loose correlations are a GIFT. Combining two bumpy equity curves into a single strategy makes the performance much, much smoother.

The percentages of days that are profitable also increases. Setting 1 is profitable on 58.0% of days. Setting 2 is profitable on 53.5% of days.

But... combining them makes Pilum profitable on 68.2% of days. Awesome!

That also provides more data, which puts me in a stronger position to analyze the strategy's skewness. Look at the frequency histograms below. They're the same type of histograms that I showed you in the first section of this blog post. As you'll notice, they look a lot different.

The most probable outcome for any given day is a small winner

The tall green bar is the most probable trading outcome for any given day with filled orders. The average day is a positive return of 0-1%.

The small red bar is the worst trading day of the combined strategy.

The small green bars are the best trading days of the combined strategy.

Look how far to the right the green bars go. The largest winner is more than 3x the biggest loss. And, there are so many more large winners compared to losers.

Giant winners are far more likely than comparable losses.

The Plan

I immediately pushed Pilum into live trading this combination of two strategies. I expect that adding a second degree of freedom and running about 30 different versions of the strategy - all with different settings - will add to the performance and smooth the returns even further.

Dominari hasn't been working on my FXCM account, which is very difficult to accept because the lacking performance seems to be a buried execution issue. Pilum, however, trades very infrequently. It's unlikely that execution quality will make a dramatic difference in the long term outcomes.

So, I'm going to convert the FXCM account to trading Pilum exclusively. That will be offered as a strategy on Collective2 within the next few weeks, a company with whom I've been working closely. Their users are more investor rather than trading oriented - they're far more likely to view low trading frequency as a good thing. I suspect that most people here have a different opinion and want to see a lot of market action.

I'll write an update on Dominari shortly.

The post One line of code makes all the difference appeared first on Algorithmic and Mechanical Forex Strategies | OneStepRemoved.

Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

The double top pattern is no doubt among the simplest and most familiar price patterns in technical analysis. Typically, a double top pattern is followed by a sell off. In theory, this rather simple pattern should be easy for traders to pounce on and yet, too often, it’s a cause for frustration. That’s because the realization that a pattern has formed comes too late and, as a result, there’s little room for profit. But before you become discouraged there is an effective strategy – a tactic, if you will – that will allow a trader to recognize a double top and, at least most of the time, ride on the trend reversal, just in time to profit.

Spotting a Double Top

The first part in trading a double top is spotting the double top on time. I like to call it the two-step verification.

As we can see in the chart below, the second wave has reached a climax in Point A. Seemingly, that is still a bullish sign because Point A is higher than the previous peak. But there is more to the picture than meets the eye. If we stretch a trend line from the previous top we can see that Point A signals some sort of slowdown; it is lower than Point X where the trendline indicates it should be. That is the first confirmation. If the top of the wave is lower than the trendline indicates, it is the first cue that a double top might be forming.

The second sign emerges in Point B, where the wave, rather than ending in the supporting bullish trendline below it, ends much lower. That is our second confirmation.

So why do those two occurrences signify that a double top is coming? Because when the top of the wave is lower than what the trend warrants, it suggests that the price range is shifting lower. Because the wave bounced back at Point Z, it confirmed that a double top is coming and that the price range is shifting lower.

Entry and Stop Loss

After you recognized that the double top is, indeed, coming, the next phase would, of course, be to place your entry and stop loss.

The ideal place to open a short under a double top would be just above the shoulder of the wave that signalled the double top; in the chart below this is wave one. Notice, however, that the actual entry comes at wave number two. This requires discipline; if the following wave does not hit our sell point just above the shoulder of wave number one, we do not enter.

The reason? We want to minimize our stop loss risk. Our stop loss should be placed slightly above the top of wave one; if we enter too early we will be forced to take more risk in our stop loss and we could end up profiting much less.

Setting Your Target

When setting a target for your short the most important aspect to consider is the timeframe you are trading. The longer the timeframe, the higher the likelihood that the double top will lead to a significant sell off. But the shorter the duration, the higher the likelihood that what you are witnessing is part of a correction within a bigger trend.

In the above example, we are witnessing a macro trend that lasted years and thus the likelihood that a major correction will follow this double top is high. Under such a case, the trader might set his target for a full reversal.

There is one noticeable trade off in trading a double top on a long-term trend; at times, there may be several failed (single top) attempts to break higher rather than a single double top before the correction begins. That means that while the potential gain is higher it may take longer to materialize.

Hence, if the double top you are trading belongs to a trend that lasts several days, or even several weeks, the prudent target should be at the lowest point of wave one in the double top. This will usually correspond with the 50% Fibonacci retracement level. Since our entry has been above the shoulder of wave one, it should provide a fair gain potential relative to the risk.

In conclusion, it should be noted that it does not mean that if you’re trading a trend with a shorter time horizon that you cannot expect an utter trend change and a bigger potential. What it does mean is that you are just taking the risk that it might be part of a bigger bullish trend. If that is the case, then your stop loss could be hit before the limit is reached. But once again, this is just a risk you must decide if you are willing to take for a potentially bigger profit.

Of course, as I always like to stress, there is no perfect strategy. It is always advisable to use indications to get some contrast on the trade you are about to take, regardless of the strategy. But if performed with discipline, and considering that a double top pattern is so common, this strategy could come in handy.

The post The Secret for Trading a Double Top appeared first on Algorithmic and Mechanical Forex Strategies | OneStepRemoved.

Read Full Article

Read for later

Articles marked as Favorite are saved for later viewing.
close
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Separate tags by commas
To access this feature, please upgrade your account.
Start your free month
Free Preview