Strategy
Highest High and Lowest Low Channel StrategyHighest / Highest High Highest (Data) - HHV (Data, Period)
Lowest / Lowest Low Lowest (Data) LLV (Data, Period)
These functions calculate the highest / lowest value of a selected data.
Highest High and Lowest Low options are mostly used.
The Highest function calculates the highest value of the selected data in the past.
The Lowest function calculates the lowest value of the selected data in the past.
Pivot Point V2 Strategy Pivot points simply took the high, low, and closing price from the previous period and
divided by 3 to find the pivot. From this pivot, traders would then base their
calculations for three support, and three resistance levels. The calculation for the most
basic flavor of pivot points, known as ‘floor-trader pivots’, along with their support and
resistance levels.
WARNING:
- For purpose educate only
- This script to change bars colors.
DMT Ladder AutobotDMT Ladder Autobot Study it's unique super trend indicators that measure the volatility from the current price action with ATR recognitions and custom setting
in this version, we can find that DMT Autbot also Ladders long entry and short entry in 4 different steps you can set your calculations depending on your requirements and pair volatility calculations
to recover your entry DMT will turn loosing trading into winning trades with the right risk management.
1 long signals
4 ladder Long add signals
1 short signals
4 ladder short add signals
1 dynamic stop calculated from your average entry price
1 dynamic take profit calculated from your average entry price
Please pm me for access or larger explanations about the script or for full pdf tutorial
thx for your support
@Shenlong
TradeSense Breakout Strategy v1TradeSense is a Renko brick breakout trading system for short-term or intraday trade. It is also a trend following strategy using a confluence of multiple MA's to spot the underlying trend. Exit and Stop Loss is based on dynamic ATR to predict possible target based on ticker's real time volatility.
So far this has been back-tested on major cyrptos, and the same concept is applicable to other asset types. It is more suitable for lower timeframes (such as the 30m, 15m, and 5m) though you may try adjusting the parameters for higher timeframes.
Feel free to backtest it and comment below!
Optimum parameters:
BTCUSD-15m
- Noise Filter: 1
- ATRLength : 15
- SL coefficient : 2.0
- TP coefficient : 1.5
ETHUSD-15m
- Noise Filter: 7
- ATRLength : 16
- SL coefficient : 2.0
- TP coefficient : 1.5
Systematic Momentum strategy v 1.0Systematic Momentum strategy v 1.0
This is a long-only strategy optimized taking into consideration the underlying's momentum and volatily.
Long story short it opens positions when the momentum is highest and the risk is lowest and closes the same position when the risk-to-reward is no longer optimal.
How to use:
-> To be used on an Index or a tracker ETF
-> Position sizing should be set up to 100% of the portfolio
Combo Strategy 123 Reversal & Elder Ray (Bear Power) This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
Developed by Dr Alexander Elder, the Elder-ray indicator measures buying
and selling pressure in the market. The Elder-ray is often used as part
of the Triple Screen trading system but may also be used on its own.
Dr Elder uses a 13-day exponential moving average (EMA) to indicate the
market consensus of value. Bull Power measures the ability of buyers to
drive prices above the consensus of value. Bear Power reflects the ability
of sellers to drive prices below the average consensus of value.
Bull Power is calculated by subtracting the 13-day EMA from the day's High.
Bear power subtracts the 13-day EMA from the day's Low.
You can use in the xPrice any series: Open, High, Low, Close, HL2, HLC3, OHLC4 and ect...
WARNING:
- For purpose educate only
- This script to change bars colors.
EMA Slope Trend Follower StrategyThis strategy is based on the slope of the EMA130.
Over that slope, the script calculates two EMAs (9,21) which are used to generate the main entry and exit signal.
In particular, the strategy enters a LONG position when EMA9 > EMA21. On the contrary, it closes the LONG and opens a SHORT when EMA9 < EMA21.
When the slope of the EMA130 is rising, it means that the price is accelerating upwards, fueling an uptrend. Conversely, when the slope is falling, it means that the price is slowing down, falling into a possible downtrend.
Calculating and analyzing two EMAs (fast and slow) over the slope of a medium length EMA instead of the price anticipates a lot the signal. In this way, the strategy never miss a trend.
In order to minimize false positives (entering useless positions), I included two filters, which can be optionally turned on:
- Trend Filter: When the price is above EMA200, the strategy opens ONLY LONG positions. If price < EMA200, only shorts allowed. If the slope gives a long signal and price is below EMA200, for example, the eventual SHORT position is closed, but the LONG entry is postponed to the moment when both conditions (slope uptrending and price > ema200) are met.
I recommend always turning on this filter, as it dramatically decreases drawdown.
- Volatility Filter: When the standard deviation of the last 20 candles is below its 50 samples moving average, no positions are opened, as market is going sideways. The purpose of this filter is to prevent false positives (positions which open and close in a matter of candles due to false signals in sideways market).
I recommend turning on this filter only on low time frames.
This strategy works great on medium time frames (like 4h, 6h, daily), since it spends way less in fees, opening less positions.
It works good on low TFs too (up to 1h, didn't test lower ones), provided Volatility filter is turned on and parameters are set according to the asset.
Commission included in calculations: 0.06% (it's the taker commission on BitMEX with the 10% discount obtainable with any referral link)
Slippage included in calculations: 2 ticks (BitMEX has very liquid order books, and slippage doesn't happen very often unless a huge position size is used).
Hull Suite StrategyConverted the hull suite into a strategy script for easy backtesting and added ability to specify a time periods to backtest over.
Psychological for Strategy testingHello everyone
I've made Psychological to be able to adjust some variables for strategy.
When you adjust each parameter of the settings, the strategy tester also comes to work in conjunction with.
so please find your best parameter! ^^
I'm not very good at English, so i really want to write how to use Pychological's entry and exit too ,but please look up psychological entries as they are well known.
Notice:
There may be some programming mistakes, so please take your own responsibility when actually investing.
EMA(Rsi,length) Strategy onEMAのソースをRsi、期間をlenght(=デフォルトでは5)としたもの作成しました。
作成したものはデフォルトで黄色で表れております。
インジケーター上の緑色は、通常のRSIです
作成した際に参考にした足と通貨
5分足のUSDJPYとEURUSD
主にデイトレ目線で作っております。
デフォルト設定では
"EMAが75を上抜け、または25を下抜けた際に逆張りでエントリーをするもの"
として作成しております。
◎利確と損切りの幅ならびにインジケーター上の水平線は変更可能となっており、変更後はストラテジーテスターの各値も付随して自動変更します。
設定画面の各項目
RSI : 一般的なRSIの終値に対しての期間(デフォルトでは14)
Length : EMAでの期間をlengthとしております(デフォルトでは5)
up、downはインジケーター表示上のデフォルトでの75と25の水平線の位置
shortprofit,shortloss : ショートで入るとした場合の利確と損切りの長さ。(longprofit,longlossについても同様)
なおショートのポジションを持っている際にロングのポジションエントリーポイントに入った際は、持ってるショートのポジションは手仕舞いし、新たなロングのみポジションをもつようになっております。
免責事項ならびにお願い:上記の様に、各値、ならびにストラテジーテスターを設定しているつもりですが、プログラミングの入力ミスなどがある場合がございます。お知らせいただけますと幸いです。
また、投資をする際はご自身の責任と判断にて投資をなさるようお願いいたします。
E.B. INVERSE CROSSING MOVING AVERAGEThis strategy uses the EMAs 10, 20 and 200.
When the EMA 10 is above EMA 100 and crossunder EMA 20, the strategy will buy the stock.
When the EMA 10 is under EMA 100 and crossover EMA 20, the strategy will sell the stock.
If during a buy/sell transaction the EMA 10 crosses EMA 100, the transaction will be closed.
You can adapt the EMA's value.
Just DM to me for access!!
RSI5_50 with DivergenceThis is variation of RSI Divergence strategy.
I have added a filter (long term RSI) to the Rules. strategy BUYs when RSI 50 period is above 50 line and there is divergence on the short term RSI
settings
=========
short term RSI period 5
long term RSI period 50
stopLoss is 8% --- if setting is enabled
BUY Rule
========
RSI 50 is above 50 line
short term RSI is showing divergence
Add to existing
==============
if already in position, BUY when shorTermRSI is crossing above 20
TakeProfit
=========
when longTermRSI reaches 60,65, 70 and 75 level , take partial profits .
(not when crossing down --- This may affect on profits , because when price goes down , it goes very fast )
Exit
=====
when longTermRSI is crossing down 30
OR stopLoss value hits
Note: When I tested this with GOOGL stock , I have got excellent results ... any experts there , please check everything is good with scripting ...
Happy Trading
RSI V Pattern strategyThis strategy based on RSI for swing trading or short term trading
Strategy Rules
=============
LONG
1. ema20 is above ema50 --- candles are colored green on the chart
2. RSI value sharply coming up
previous candle1 low is previous candle2 low and previous candle1 RSI value is less than previous candle2
current candle RSI value is greater than previous candle1 and crossing above 30
above which makes a V shape on RSI indicator, colored in yellow on the chart , price bar is colored in yellow
3. Enter Long when the above V pattern occurs
EXIT LONG
1. when the RSI reaches 70 , close half position and move stop loss to up
2. when RSI reaches high value 90, close 3/4 position
3. when RSI crossing below 10 OR stopLoss hit , whichever happens first , close whole position
Note : take profit levels are colored in blue on RSI and Price candles
I have tested SPY , QQQ on daily chart , performance results are with 80% win rate and more than 3 profit factor
Happy Trading
KD compare strategy (交易策略對照組)This is a base and easy trading strategy for comparing my other strategy.
The strategy consider K >= 80 is strong target in the last high period,
and consider K <=20 is the weak target in the last low period.
In the strong target, the strategy may increase long at the first day when K < 50, until 2/3 max order limitation or strong target become to weak.
In the weak target, the strategy may increase short at the first day when K > 50, until 2/3 max order limitation or strong target become to strong.
there are three orders for this strategy.
when the strong become to weak, it may use the remain 1/3 to save itself, and change the direction at the next k > 50
when the weak become to weak, it may use the remain 1/3 to save itself, and change the direction at the next k < 50
這是一個簡單的雙向交易策略,用來對照我其他的策略。
當 K>=80 它會認為目前是強勢股,偏多操作
當 K<=20 它會認為目前是強勢股,偏空操作
當標的為強勢股時,當第一次 K<50 會加碼多單,最多買進2/3的持股,直到轉弱
當標的為弱勢股時,當第一次 K>50 會加碼空單,最多買進2/3的持股,直到轉強
當強勢轉弱勢時,會使用剩下的1/3來拯救持股,在下次 k > 50 出清持股
當弱勢轉強勢時,會使用剩下的1/3來拯救持股,在下次 k < 50 出清持股
Ranged Volume Strategy - evoThis is the strategy version for the ranged volume indicator I published a few days ago.
Long : First yellow break-out after red
Short : First red break-out after yellow
Because this is volume, you want to be using this on an exchange with high volume for the best results. Default settings are not optimized but work great on bitcoins daily chart.
A short explanation of the indicator below:
MBRLong only strategy that focuses on momentum, acceleration and volatility.
Backtested results are from 2011-2020
10 ticks of slippage and 0.25% comissions.
$10k starting equity is used and 33% of equity is traded per position.
Backtest isn't indicative of future results, automated forward testing will start soon and results will be posted in this thread.
E.B. StrategyThis strategy use a custom indicator. When the green line cross above the level 6, it's going to sell the stock. When cross down -6, it's going to buy the stock. You can change the level's number to adapt it to any asset.
It works for US30, or any Dow's Futures . But you can adapt it to any market, FOREX/Crypto/Stocks.
Also it works better in 5/15 min chart, but you can adapt it to any resolution too.
We use EMA 100 and ADX 14 as a filter of the indicator.
EntryModel is the level to make Buy and Sell transactions.
ExitModel is the level to close transactions.
In TPandSL you can choose:
No -> if you want only buy and sell, without closing transactions.
Model -> you will use the ExitModel parameter to close transactions.
% -> if you want to use a percentage of TP and SL.
Volatility -> to adapt TP and SL with the volatility of the moment.
Pips -> if you want to use Pips to close transactions.
If you would like to have the access, just DM me!
[FN] Session Range & Date Range For BacktestingThis has been done before in different ways, however, my goal is to publish a single, simplified copy/paste version of the idea so you can quickly and easily incorporate it into your strategy backtesting.
You can designate weekdays, weekdays + weekends for 24/7 markets, and also session range.
So, you trade bitcoin? It works. CME futures? It works. You are a discretionary trader so the only signals that matter are the ones that happen when you're awake? It works. Copy and paste.
The goal is that its that easy. You'll have to let me know if it is. glhf everyone.
If I'm not mistaken, you should be able to copy/paste this directly into your strategy script (Paste it in before your entry declarations). Just leave out the last 2 lines where the bgcolor() is declared... unless you want the background color lit up, that's up to you. It's just for demonstration purposes in this script.
After you've pasted it in, then in your strategy.entry() function you are adding: to the strategy.entry() function.
e.g:
strategy.entry("Long", strategy.long, qty=1, when = ENTRY_SIGNAL and signal_backtest())
Shoutouts to @zenandtheartoftrading and @allanster for providing the basis of this code that I put together here. We stand on the shoulders of giants.
Hunt Sight FireHunt Sight Fire is a multi signal strategy script
Offering up huge improvements, including multiple position triggers, derived from Bollinger Bands and Chande Momentum as well as our own bespoke stochastic ribbons that provide trend pivots .
Profit Sniper now works with regular Japanese candles, however, it still provides the flexibility of Heiken Ashi settings for certain elements of the indicator, this allows the accuracy of Japanese candlestick prices, and the smooth trends of HA.
So how does it work?
HUNT
In true Sniper fashion, when our stochastic HA ribbons pivot between short and long trends, the indicator will offer up a colour coded flag the says “1. HUNT” green for long, red for short.
SIGHT
At this stage, the indicator is now looking for a second condition, this is displayed as “2. Sight” at this point the indicator as noticed a drop in the previous momentum, to pre-empt a flip between long and short. Red is for short, green is for Long
FIRE
The final condition to be met is based on the positioning of the Bollinger Bands , which is show as the “3. Fire Flag” again, as with hunt and sight, red is for short and green is for long.
For access to this strategy please DM Me.
Camarilla Pivot Points V2 Strategy Camarilla pivot point formula is the refined form of existing classic pivot point formula.
The Camarilla method was developed by Nick Stott who was a very successful bond trader.
What makes it better is the use of Fibonacci numbers in calculation of levels.
Camarilla equations are used to calculate intraday support and resistance levels using
the previous days volatility spread. Camarilla equations take previous day’s high, low and
close as input and generates 8 levels of intraday support and resistance based on pivot points.
There are 4 levels above pivot point and 4 levels below pivot points. The most important levels
are L3 L4 and H3 H4. H3 and L3 are the levels to go against the trend with stop loss around H4 or L4 .
While L4 and H4 are considered as breakout levels when these levels are breached its time to
trade with the trend.
WARNING:
- For purpose educate only
- This script to change bars colors.
Ichimoku Kinko Hyo: ETH 3h Strategy by tobunoIchimoku Kinko Hyo strategy for long term trend trades of Ethereum . Optimized for 3H ticks.