Triad-SwingBot-BTCStrategy tuned for BitCoin . The indicator version of this uses alerts to start a long or short DCA 3comma bot. Preferably running on futures exchange so I can go long or short and use 5x margin. Alerts also take profit/close position when trend changes.
KYC crackdown is leaving me limited places I can run these now.
Use this on Binance BTC /USDT 1HR chart. Binance seems to give the best data even when trading from other exchanges.
There are various versions of these I might release tuned to each cryptocurrency. I have about 20 different coins that were profitable. Each work best with different settings.
This strategy uses a variety of factors to determine long and short entry including:
-Price is starting to trend up (long) or down (short)
-Price closing above/beneath specified EMA or SMA
-Price within RSI bounds for valid entry
-MACD histogram is positive(long) or negative (short)
-Volume surge indicating viable entry
If there's decent interest in the indicator version of this with alerts to send long/short signals to bots, I'll work out an invite-only system.
المتوسطات المتحركة
Ichimoku Cloud Strategy IdeaThis strategy idea uses the famous Ichimoku Cloud (Forward-shifted SMA-9 and SMA-26) and Chiku (52-candle lagged close price) with its default parameters. This strategy is slow and issues few signals. However, this is one of the most performant long-term trend trading strategies. It usually works well on 1D and 4H timeframes and even better on trending instruments. This is the implementation used in QuantCT app.
You can set operation mode to be Long/Short or long-only.
You also can set a fixed stop-loss or ignore it so that the strategy act solely based on entry and exit signals.
Trade Idea
When both close price and chiku are above the cloud, market is considered rising (bullish) and the plotted cloud becomes green.
When both close price and chiku are below the cloud, market is considered falling (bearish) and the plotted cloud becomes red.
Otherwise, market is considered ranging and the plotted cloud becomes orange.
Entry/Exit rules
Enter LONG right after both close price and chiku went above the cloud (i.e. when the end of the plotted cloud becomes green).
Enter SHORT right after both close price and chiku went below the cloud (i.e. when the end of the plotted cloud becomes red).
EXIT market when close price enters the cloud.
CAUTION
It's just a bare trading idea - but a profitable one. You can enhance this idea and turn it into a full trading strategy with enhanced risk/money management and optimizing it, and you ABSOLUTELY should do this!
DON'T insist on using Long/Short mode on all instruments! This strategy performs much better in Long-Only mode on several instruments (Like BTC , ETH, etc.), and also performs better in Long/Short mode on other instruments (Like VET, BNT, etc.).
Crypto Scalper Divergence Macd Psar Ema 200This is a very efficient crypto scalper adapted to very short timeframes, however it can be optimized for other timeframes and assests as well.
Its components are
MACD
P SAR
EMA 200
Risk management
Rules for entry:
For short : we have an uptrend on PSAR , histogram is positive (divergence MACD) and close of a candle is below EMA 200
For long : we dont have an uptrend on PSAR, histogram is negative(divergence MACD) and close of a candle is above EMA 200
Rules for exit:
We exit when we either find a reverse condition than the entry one, or based on stop loss/take profit that are calculated on % movements of the price.
If you have any questions, let me know !
Date Range DemonstrationThis is a simple strategy that demonstrates how to easily incorporate a date range into a strategy. This allows you to limit your backtesting to a specific range of dates, which is vital if you want to compare different time frames.
To use:
Copy the code block between the '////' lines into your strategy.
Add the variable 'inDateRange' to your entry and/or exit strategy conditions.
[VJ]Thor for MFIThis is a simple intraday strategy for working on Stocks or commodities . You can modify the start time and end time based on your timezones. Session value should be from market start to the time you want to square-off
Important: The end time should be at least 2 minutes before the intraday square-off time set by your broker
Comment below if you get good returns
Strategy:
Indicators used :
Moving average (MA) is a widely used technical indicator that smooths out price trends by filtering out the “noise” from random short-term price fluctuations. Here moving averages are used to identify trend direction and to determine support and resistance levels. Overbought and oversold regions are also taken into consideration
The Money Flow Index ( MFI ) is a momentum indicator that measures the flow of money into and out of a security over a specified period of time. It is related to the Relative Strength Index ( RSI ) but incorporates volume , whereas the RSI only considers price. The MFI is calculated by accumulating positive and negative Money Flow values (see Money Flow ), then creating a Money Ratio. The Money Ratio is then normalized into the MFI oscillator form.
Using the combination of Overbought and Oversold values and varying MFI and using the MA filter to ensure the direction , we can buy/sell when conditions are met
Buying with MFI
1. MFI drops below 20 and enters inside oversold zone.
2. MFI bounces back above 20.
3. MFI pulls back but remains above 20.
4. A MFI break out above its previous high is a good buy signal.
Selling with MFI
1. MFI rises above 80 and enters inside overbought zone.
2. MFI drops back below 80.
3. MFI rises slightly but remains below 80.
4. MFI drops lower than its previous low is a signal to short sell or profit booking
Usage & Best setting :
Choose a good volatile stock and a time frame - 5m.
MFI factor : 3
Moving Average : 80
Overbought & Oversold - can be varied as per user
There is stop loss and take profit that can be used to optimise your trade
The template also includes daily square off based on your time.
SMA-Extendido-Estrategia por NeilDescription:
Strategy that identifies entry and exit operations, using 3 moving averages and 5 strategies. New strategies are implemented such as the prediction of closing operations, independent of the events that justify entry operations.
How does it work:
1) Long strategy: if SMA5 crosses up to SMA200 and SMA200 is bullish, a buy operation begins, if SMA5 crosses down to SMA200 and SMA200 is bearish, a sale begins.
2) Short strategy with smooth filtering of operations: if SMA5 crosses up to SMA20 and SMA20 is bullish and (SMA5 are above SMA200) a buy operation is initiated. If SMA5 crosses down to SMA20 and SMA20 is bearish and (SMA5 are below SMA200) a sell trade is initiated
3) Short strategy with strong filtering of operations: if SMA5 crosses up to SMA20 and SMA20 is bullish and (SMA5 and SMA20 are above SMA200 and SMA200 is bullish) a buy is initiated, in other words, buy operations occur only if SMA5 and SMA20 are above SMA200; if SMA5 crosses down to SMA20 and SMA20 is bearish and (SMA5 and SMA20 are below SMA200 and SMA200 is bearish) a sell is initiated, that is, sell operations occur only if SMA5 and SMA20 are below SMA200
4) Short strategy without filtering operations: if SMA5 crosses up to SMA20 and SMA20 is bullish, a buy is initiated (the location of MA200 does not matter). If SMA5 crosses down to SMA20 and SMA20 is bearish, a sell is initiated (it does not matter where the MA200 is located)
5) Prediction of closing operations: the algorithm evaluates potential closing operations differently and considers the following rules: If there is an active buy trade and SMA5 crosses down to SMA20, we close the current buy (the location of the SMA200 does not matter). If there is an active sell trade and SMA5 crosses up to SMA20, we close the sale in progress (the location of the SMA200 does not matter)
How to use it:
Press the "Indicators" option, go to the "Public Librarian" segment, write the name "SMA-Extendido-Estrategia por Neil", double-click on the record in question and you will have it added in your work panel, now, just It remains to be used to identify the inputs and outputs and you can do it visually or by defining the automatic notification alerts.
High/Low Channel Multi averages Crypto Swing strategyThis is a swing strategy designed for trending markets such as crypto and stock, with big timeframes , like 8h.
For this strategy we take SMA, EMA, VWMA, ALMA, SMMA, LSMA and VWMA and make an apply them all to both HIGH and LOW separately and make 2 averages, 1 applied to high and the other applied to low.
With them we make a channel.
Rules for entry
For long: close of a candle is above avg applied to high.
For short: close of a candle is below avg applied to low.
Rules for exit
We exit when we either hit TP or SL or when we receive a different condition than the entry one.(long- > short and viceversa)
If you have any questions, let me know !
Swing/Scalper HULL + T3 avg Crypto StrategyThis is a both a swing and a scalper strategy(depends on the timeframe that you use), that works with all timeframes, however I noticed that with swing 3h works the best on most crypto pairs, such as ETH, BTC and so on.
Its main components are:
Hull moving average
T3 moving average
Risk management
With them I make an average and use it as the main moving average.
Rules for entry
For long: Average moving average is bigger than previous average moving average value.
For short:Average moving average is lower than previous average moving average value.
Rules for exit
We exit when either the TP/SL has been hit, or when we get a different condition than previous one(both for long and short).
If you have any questions, let me know !
TEMA/MAMA CrossThis is a strategy based on the TEMA and Ehler's MAMA moving averages. Crosses of the fast and slow TEMA are commonly used for entry and exit strategies. The Ehler's Mesa Adaptive Moving Average is a trend-following price indicator that uses a Hilbert Transform. Having plotted both TEMA and eMAMA side-by-side for some time, I noticed a pattern where the fastTEMA crossed over the eFAMA (eFAMA is the Ehler's MAMA following/slow MA) prior to a price increase. This is a strategy to test that observation.
The strategy (at present) only does long entries. It enters long when the fastTEMA crosses up over the (slow) eFAMA. It uses a traditional exit when the fastTEMA crosses below the slowTEMA. I have tested this on several tokens on 1hr charts using a fastTEMA length of 13. Play with it on different charts and different lengths to see how it works for you.
Hull Crossover Strategy no TP or SLWhat is it?
A simple yet effective strategy ran on the 30m chart.
This is a basic idea that can be expanded on using different indicator to either add signals or filter out certain bad signals!
The strategy consists of 1 fast moving average and 1 slow moving average.
Both of these moving averages are the Hull Moving Average
What is the Hull Moving Average?
The Hull Moving Average ( HMA ) is a directional trend indicator.
It captures the current market conditions and uses recent price action to determine if conditions are bullish or bearish relative to historical data.
The Hull is different from traditional trend indicators like the EMA and the SMA .
It is designed to reduce the lag often associated with other MAs by providing a faster signal on a smoother visual plane.
How it works?
When the fast HMA crosses over the slow HMA , we initiate a long signal, and
when the fast HMA crosses under the slow HMA , we initiate a short signal.
Conclusion
The power of simplicity is what makes this such a great core to use to build onto making something even better!
The results were optimised to suit the most common market conditions seen today.
******** Not financial advice! ********
Triple Supertrend + Stoch RSI + 200 EMA by @DaviddTechInspired by YouTube (again) I decided to backtest this strategy.
Here is my Triple Supertrend + Stoch RSI + 200 EMA v0.1 --
The Strategy :
Uses the 3 supertrends.
200 EMA
Stoch RSI
-- LONG --
* When over 200 ema and a Stoch RSI Cross happens below the oversold 20 then we wait for the 2 or 3 Supertrends to pass to green.
-- SHORT --
* When under 200 ema and a Stoch RSI Cross happens above the overbrought 80 then we wait for the 2 or 3 Supertrends to pass to red.
NOTES :
This was proven to be much better on manually backtesting. So, if you do spot a problem please DM me.
WARNING:
- For purpose educate only - My mission is to debunk fake strategies with code to find THE ONE.
- Plots EMAs and other values on chart.
- This script to change bars colors.
RSI Divergence + EMA @DaviddTechVery simple strategy that will look for Divergence on the RSI.
My Strategy for this was mixed with the 55 EMA which you can activate in the settings.
WARNING:
- For purpose educate only - My mission is to debunk fake strategies with code to find THE ONE.
- Plots EMAs and other values on chart.
- This script to change bars colors.
PSAR + MACD + 200 EMA by @DaviddTechIndicators used for this
200 EMA
MACD
PSAR
To take a Long Entry
* Price above the 200 EMA
* PSAR long entry signal
* Both MACD and signal line below 0
* MACD crossover
To take a Short Entry
* Price below the 200 EMA
* PSAR short entry signal
* Both MACD and signal line above 0
* MACD crossunder
WARNING:
- For purpose educate only - My mission is to debunk fake strategies with code to find THE ONE.
- Plots EMAs and other values on chart.
- This script to change bars colors.
Multi Time Frame Heiken Ashi Candles by @DaviddTechMulti Time Frame Heiken Ashi Candles Visual Strategy.
Inspired by a video on YouTube by TradePro I decided to backtest this strategy.
The Strategy : This strategy waits for all the lines to cross green or red to look for a an entry.
It seems to give good results on the 15 minute timeframe.
1. The Cloud - Confirmed with no repainting.
2. The Lines may repaint as the price movement changes.
Confluence with the RSI STOCHASTIC.
If you use the RSI STOCHASTIC you have 2 options.
1. Super Scalper - Where the strategy will enter on every cross <> the two levels.
2. Longer positions - One entry is made where the RSI STOCHASTIC the closest to the GREEN/RED Star.
WARNING:
- For purpose educate only
- Plots EMAs and other values on chart.
- This script to change bars colors.
Ichimoku with MACD/ CMF/ TSIThis is a very powerful trend strategy designed for markets such as stocks market , stock index and crypto.
For time frames I found out that 1h seems to do the trick.
Components:
Ichimoku full pack
MACD histogram
CMF oscillator
TSI oscillator
Rules for entry
Long :
For Ichimoku:Tenkan part of cloud is bigger than kijun, Chikou is above 0 , close of a candle is above the Senkou
MACD histogram is above 0
CMF oscillator is positive and bigger than 0.1
TSI oscillator is above 0
Short:
For Ichimoku:Tenkan part of cloud is smaller than kijun, Chikou is below 0 , close of a candle is belowthe Senkou
MACD histogram is below 0
CMF oscillator is negative and below -0.1
TSI oscillator is below 0
Rules for exit
This strategy does not have any risk management inside. Instead it exits whenver it receives an opposite signal form the original one used for entry.
If you have any questions let me know !
Strategy TemplateTrying to include few basic things which is needed for strategy which can be used as template.
Few important components
Strategy parameters
Few important parameters include - initial_capital, default_qty_type, default_qty_value, commission_type, pyramiding and commission_value. All my strategies will have similar settings with initial captial set to 20000 to 100000. 100% of equity per trade with no pyramiding (set to 1) and minimal commission.
margin_long and margin_short can be used for leveraged trading. But, since we are not using pyramiding, it will make no effect.
Trade Limiting parameters
Two types of limiting is available in the scripts
Limiting trading direction : this is done through method strategy.risk.allow_entry_in and input parameter tradeDirection
Limiting trades to particular time window : This is achieved through adding start time and end time parameters of type input.time and check whether time is within this window
Custom Methods
customized security method to get higher timeframe data
customized moving average method to get moving average of any type
Custom Parameters
Moving average Type option list which I use quite often. Any strategy where there is need to use moving average, I try to scan through different moving average types and lengths to see which one is more appropriate for the given strategy. Hence, keeping this parameter in template to make it readily available when I start with new strategy
waitForCloseBeforeExit - this is used if trailing stop need to activated as soon as price hits the stop or only on close price. This is again something I switch quite often based on strategy. Hence, keeping this as part of the template.
Entry and Exit statements for long and short
These statements from line (57 to 62) can remain as is even with new strategy. Only thing to be set are variables - buyCondition, sellCondition, closeBuyCondition and closeSellCondition
Last but not the least
In pinescript, a long and short position cannot coexist in a strategy at any point of time. Any short positions created will automatically stop long positions and vice versa. Hence, it is important make short and long trades mutually exclusive. In this example, I have used 200 weekly moving average as trend bias. No short positions are taken when price is trading above 200 weekly moving average low/close and no long positions are taken when price is less than 200 weekly moving average high/close. Any rule built on top of this (In this case a simple supertrend rules) ensures that there are no conflicting signals and hence avoids confusing trades on the stratgy.
MACandles-LinearRegression-StrategyThis is combination of multiple indicators and strategies. Mainly useful for indexes and to time the entry and exits of indexes. No stoploss used - makes it less desirable for leveraged trades or trading individual stocks.
Let us rewind and look back at some of the indicators/strategies published earlier.
1. Moving Average Candles - this is one of my favourite tool for general trend filtering. Applying supertrend on moving average candles is one of the easiest ways to find reversal in trending market without exiting positions too early. Few scripts published on this basis are:
MA Candles Supertrend
MA Candles Supertrend Strategy
2. VixFix and Linear Regression - this itself is combination of two indicators.
Williams-Vix-Fix-Finds-Market-Bottoms - by @ChrisMoody
Squeeze-Momentum-Indicator - by @LazyBear
I have combined these two indicators to derive VIX-Fix linear regression to find absolute market bottoms. More description here:
VixFixLinReg-Strategy
VixFixLinReg-Indicator
Now, in this strategy, we combine all these together.
Derive moving average candles
Derive momentum of moving average candles
Derive Linear regression on momentum
Optionally, also calculate VIX Fix and Linear regression on VixFix momentum
To find market bottom:
There are two options
1. Use when momentum of MA candles hit bottom (red) and slowly turn up (orange). In aggressiveLong mode, signals are also generated when momentum starts going positive from negative.
2. Use Vix Fix linear regression of MA candles as described in the original script of VixFixLinReg-Strategy
To find market top
Here only Ma candles momentum decreasing is used as signal. If looking for longTrades , exit signal is generated only when momentum is turning negative extreme(orange). Or else, exit signal is generated when momentum has turned neutral.
At this stage, it is very much experimental - use it with caution :)
Supertrend LSMA long StrategyThis is a long strategy which combines Super trend indicator with LSMA moving average.
In general it tends to works better with long trending markets such as stocks and cryptos using a big timeframe.
The rules are simple
Long entry:
Supertrend is telling us to go long and close of a candle is above moving average
Long exit:
Supertrend is telling us to go short
IF you have any questions, let me know !
Aroon Strategy long onlyThis is a simple long only strategy made of Aroon and Least Square moving average.
The rules are simple:
Long entry = crossover of upper part with the lower part from aroon and close of the candle is above the moving average
Long exit = crossunder of upper part with the lower part from aroon and close of the candle is below the moving average
IF you have any questions let me know !
Extremely high win rate FOREX swing strategyTHis is a very simple yet extremely efficient FOREX strategy .
In general it tends to work the best against NZD and AUD pairs, however other major pairs and crosses can work as well.
It's made of a time management, together with MACD , moving average , a price action rule and a risk management.
THe logic behind is the next one :
For LONG:
We have 3 ascending candles.
Histogram of MACD is positive.
Last close of a candle is was above moving average.
If all those previous condition happened before 17/18 UTC time depending if its summer time or not, we enter the trade.
For Short:
We have 3 descending candles.
Histogram of MACD is negative.
Last close of a candle is was below moving average.
If all those previous condition happened before 17/18 UTC time depending if its summer time or not, we enter the trade.
RIsk management
For risk management, since we aim to have a 95%+ win rate, we aim to have a 5:1 or 10:1 risk to reward ratio. Meaning that for each $ we can win, we can lose 5-10$.
THats why I recommend to be extremely careful when playing with leverage with this strategy.
Full Forex scalper StrategyTHis is a FOREX scalping system that can be optimized with almost all majors and crosses pairs.
Its made of multiple elements such as :
MACD
Stochastic RSI
Fast VW moving average
Slow VW moving average
Time management( forex sessions as inputs)
Rules for entry
Long
Last 2 MACD values were ascending, fast moving average is below moving average and stochastic RSI is below 30 level. At the same time we are either into London or NY session.
Short
Last 2 MACD values were descending, fast moving average is above moving average and stochastic RSI is above 70 level. At the same time we are either into London or NY
Rules for exit
WE have 2 exit possibilities: we can exit either at the end of NY/London Session or based on a TP/SL risk management calculating % in movement.
If you have any questions let me know !
MACD, EMA, Know sure thing, Chopy Market StrategyHey there :)
This is the free version of the script. The following indicators / settings are missing:
- Support and resistance zones
- dynamic textboxes for alarms when using bots (3 Commas, Alertatron, etc.)
- a table showing the current position, indicators and other important information
With this script there is the possibility to completely customize the MACD . Starting with the MACD and signal line, the histogram and the color of the histogram.
Since the Pinecoders team has previously deleted the script, I will mention the fee settings in a bit more detail:
In this script a fee of 0.01% and a slipage of 15 was used. With each trade the total capital (100%) is used with a risk reward of 1 to 1.5.
The total capital, i.e. the risk, can be changed at any time under the "Settings" tab at "Equity".
I also added an EMA , the Know sure thing indicator and the Chopy Market indicator (by TradingRush) to the script to filter out bad trades.
The EMA:
Since the EMA is very reliable and shows whether there is an upward or downward trend, it should be used with the indicators in any case. It prevents long trades in downward movements and vice versa.
The KST Indicator:
The KST indicator has a similar movement as the MACD , but is by and large a bit more time delayed. It filters out false swings of the MACD and thus prevents bad trades.
The Chopy Market Indicator by Tradingrush:
The Chopy Market indicator, which was introduced by TradingRush in one of its videos, has the ability to detect sideways markets and block zones below this line for trades by means of a fixed value (the line).
To exit the trades, I added the following options:
ATR Exits. Exits based on past candles (lowest low, highest high).
Static exits based on set percentages.
In the next days I will create a tutorial for the script, just have a look on my profile.
If you have any questions about the script, let me know.
MACD, EMA, Know sure thing, Chopy Market - high adaptabilityHey there :)
This is the free version of the script. The following indicators / settings are missing:
- Support and resistance zones
- dynamic textboxes for alarms when using bots (3 Commas, Alertatron, etc.)
- a table showing the current position, indicators and other important information
With this script there is the possibility to completely customize the MACD . Starting with the MACD and signal line, the histogram and the color of the histogram.
Since the Pinecoders team has previously deleted the script, I will mention the fee settings in a bit more detail:
In this script a fee of 0.01% and a slipage of 15 was used. With each trade the total capital (100%) is used with a risk reward of 1 to 1.5.
The total capital, i.e. the risk, can be changed at any time under the "Settings" tab at "Equity".
I also added an EMA , the Know sure thing indicator and the Chopy Market indicator (by TradingRush) to the script to filter out bad trades.
The EMA:
Since the EMA is very reliable and shows whether there is an upward or downward trend, it should be used with the indicators in any case. It prevents long trades in downward movements and vice versa.
The KST Indicator:
The KST indicator has a similar movement as the MACD, but is by and large a bit more time delayed. It filters out false swings of the MACD and thus prevents bad trades.
The Chopy Market Indicator by Tradingrush:
The Chopy Market indicator, which was introduced by TradingRush in one of its videos, has the ability to detect sideways markets and block zones below this line for trades by means of a fixed value (the line).
To exit the trades, I added the following options:
ATR Exits. Exits based on past candles (lowest low, highest high).
Static exits based on set percentages.
In the next days I will create a tutorial for the script, just have a look on my profile.
If you have any questions about the script, let me know.