This script implements a rebrushed distance-based pair trading strategy. In this strategy, normally they trade the difference between the prices of two instruments. This difference is also called spread. Here, however we’ll trade the difference between two time frames of one instrument. And that's the main trick. Common procedure consists of the following...
Simply choose what two securities (symbols) you want to compare. The study will subtract Open, High, Low, and Close of second input from the first. You may also move the plot line wherever you choose. It may be necessary to move the plot line in order for some charts to look right.
This script is very much beta!
This is a simple script to visualize how two symbols move in relation to each other. For example if the underlying symbol is a 2x Gold ETF (meaning the ticker moves at 2x the spot price of gold---if gold goes up 3% this ticker should go up 6%) and the comparison symbol is an 2x inverse gold ETF (at gold up 3% this should move down...
Correlation Based Pair Trading Strategy (Trading the spread)
There are three popular styles of Pair trading:
* Distance based pair trading
* Correlation based pair trading
* Cointegration based pair trading
The correlation based strategy is to short the outperforming instrument and go long on the underperforming one
whenever the temporary correlation weakens...
This is for displaying a price line showing the spread difference of brokers such as 1broker.com or trading212.com where price is different than actual price. It may also be used as an ask line.
Version 2 is well featured with a toggle for JPY pairs. As well as 5 different traditional charts: Candlesticks, Heikenashi, Renko, Western Bar, Area.
If you like this...
This is for displaying a price line showing the spread difference of brokers such as 1broker.com or trading212.com where price is different than actual price. It may also be used as an ask line or to provide an additional alternate chart.
- JPY pip correction
- Price Line
- Kagi, Does not work on Forex pairs!
- Western Bar
This script is a simple overlay for showing the spread of Market Maker brokers. Such as 1broker.com or trading212.com These brokers set the price higher than the actual price in the form of a spread. Often making it harder to trade due to the difference.
This overlay offers two views.
- A price line showing the difference.
- Candlesticks, either as an overlay or...
Found an error in the orders. Script was making double orders at times. I fixed it. It is tuned as such:
15 min chart
starting $USD to show 1000 contracts for minicontract with FXCM (start date 3-18 $633 with 1:50 leverage)
Indicator plots ==> Starting equity - (trade gain and loses) - (number of trades) * (spread) = true balance estimate