This code snippet below is a quick and dirty follow up to some statistical analysis performed on the FTSE 100. It showed that over the long run, (since 1995) going long on a Friday appeared to have a statistical edge (53%). As a bit of fun, I wanted to create a quick pine script backtest to test this and see if it is possible to profit from it. After all, the...
Hello Friends, i found here a Keltner Channel Strategy. But this Strategy trades LONG and SHORT. Could some code it to long also. If a sell condtion is true, so no short trades is initiated - only sell se long trade to be flat. is it possible? Thank you so much for your help!
A simple trading strategy oriented towards cryptocurrencies that uses log-space Ichimoku clouds Long position: when Senkou Span A crosses over Senkou Span B Short position: when Senkou Span A crosses under Senkou Span B The indicator used in this strategy is available as a standalone script:
Tether line indicator is the first component of TFS trading strategy. It was named this way because stock prices have a tendency to cluster around it. It means that stock prices tend to move away from the midpoint between their 50-day highs and lows, then return to that midpoint at some time in the future. On a chart, it appears as though the stock price is ...
The SMI Ergodic Indicator is the same as the True Strength Index (TSI) developed by William Blau, except the SMI includes a signal line. The SMI uses double moving averages of price minus previous price over 2 time frames. The signal line, which is an EMA of the SMI, is plotted to help trigger trading signals. Adjustable guides are also given to fine tune...
This is the new-age indicator which is version of RSI calculated upon the Rate-of-change indicator. The name "Relative Strength Index" is slightly misleading as the RSI does not compare the relative strength of two securities, but rather the internal strength of a single security. A more appropriate name might be "Internal Strength Index." Relative...
Example how to select and set date range window to be backtested. Normally when you change chart period it changes the number of days being backtested which means as you increas the chart period (for example from 5min to 15min) you also increase the number of days traded, so you can not compare apples to apples for which period would yield best returns for your...
This is a pretty simple microprofit strategy with a couple twists: Renko boxes plot fixed price changes over variable amounts of time, rather than plotting varying price changes over fixed amounts of time like conventional candlesticks. This makes price trends much simpler to identify, and that's what we ultimately care about. Triple exponential moving average ...
Renko candles filter out noise by plotting a fixed change in price rather than a fixed time frame. Strategies like MACD or MA cross can give a lot of false signals when the price is wavy, but not actually going anywhere. This is especially a problem with small time frames. Since it's so easy to identify trends on a Renko plot, this strategy uses a simple moving...
The related article is copyrighted material from Stocks & Commodities. You can change long to short in the Input Settings WARNING: - For purpose educate only - This script to change bars colors.
This script sets defaults that I like to start with: Trade commission set to 0.25% Allow multiple buys before sells Fixed trade size Also included are setting a minimum desired gain (change gain_protection to 0 if you want to sell regardless of your gain), and buying only if it will reduce your average bought price (change avg_protection to 0 to turn this...
The Relative Momentum Index (RMI) was developed by Roger Altman. Impressed with the Relative Strength Index's sensitivity to the number of look-back periods, yet frustrated with it's inconsistent oscillation between defined overbought and oversold levels, Mr. Altman added a momentum component to the RSI. As mentioned, the RMI is a variation of the RSI...
The theory behind the indexes is as follows: On days of increasing volume, you can expect prices to increase, and on days of decreasing volume, you can expect prices to decrease. This goes with the idea of the market being in-gear and out-of-gear. Both PVI and NVI work in similar fashions: Both are a running cumulative of values, which means you either...
it's a repainting script cheating on tester, on backtesting %100 correct but on forward testing it will only work % 15 correct and %85 wrong. I did another script showing real forward testing results of this script.
it's showing the correct results of a repainting cheating script
The Pivot Detector Oscillator, by Giorgos E. Siligardos The related article is copyrighted material from Stocks & Commodities 2009 Sep You can change long to short in the Input Settings WARNING: - For purpose educate only - This script to change bars colors.
Multi Chart view supported //Best profits for $BTCUSD examples: //res=165 view=30m fastPeriod=17 slowPeriod=9 profit %67.14 since 2017-08-14 //res=100 view=30m fastPeriod=16 slowPeriod=30 profit %57 since 2017-08-14 // If you want get access for super Trend with the best and optimazed values for: //LTCUSD profit +%120 //ETHUSD profit +%80 //OMGUSD profit...