APEX - Tester - Buy/Sell Strategies - Basic - BACKTESTERThis is a upgraded version of the following study.
This is a simple Strategy for backtesting your APEX trading ideas.
Be aware that the results will not be exact same as with apex bot.
波动率
Trailing Stops/Choose a Day of the WeekThis would be my second ever published strategy. It is almost the same as my first ever published script . I've been working primarily on UGAZ and DGAZ .
This is basically a statistical trade. It buys every morning near market open (or by choosing a "time constraint"), then immediately places a trailing stop at a specified amount in ticks (if used on UGAZ a tick = $0.01, if used on NG at tick = $0.001). I've found between 2% and 3% works well for the trailing stop (ie. if UGAZ = $75, a 3% trailing stop = $2.25)
-----What is different from my first strategy?------
You can test the trailing stop strategy one 1 day of the week. Days of the week are assigned numbers. Sunday=1, Monday=2, Tuesday=3 and so on. Just choose a number that correlates to the day of the week you want to test. The Trailing stop may go past that day, that's a good thing if it's making money.
-- Go long/Short is just that, it will buy shares/contracts or short them.
-- Trades per day. This may not be a good choice, when left on "2", it will trade once per day. If set above 2 and there is time left for another trade, an order will enter on the open of the next candle. I'm am still working on ideas for this.
-- Time constraints. When you select this check box, the strategy will limit an entry to the time specified below the "Use Time Constraints" check box. An Exit order will still continue past this window of time until it is stopped out.
---- very important ----
Due to decay, leveraged ETFs will give false results if the price gets far out of range. For example, your ETF is trading around $20 and you choose a 1 hour chart, it may back test back to a time before a reverse split. If the price gets to be too large, like $200, or $1200, the movement on the chart creates false indication of profit/loss.
--- Most important. ---
Do not trade off this strategy, you may lose lots of money. This is for educational use only.
Good luck
ATR Trailing Stop Bands Strategy [R] Originally based on a script by HPotter for an ATR Trailing Stop, which itself was based on an article by Sylvain Vervoort, but I adapted it to add Bands, to add extra optional Wick Protection, and have now made it a Strategy. It's not great for entries/exits, but as a Trailing Stop that can let winners ride, it's great.
Trailing Stops Only - For Leveraged ETFs (UGAZ/DGAZ)Looking for Statistical trades that work. This one seems to work on some Leveraged ETFs with a lot of noise like UGAZ/DGAZ. It can also be used on Futures Contracts, but be sure to change up the type of investment from % of equity to contracts. Also one point I'm trying to make with this strategy is the trades are best made in the morning around market open. When used with Contracts, be sure to make use of the time settings. It will limit buying between the hours set. Selling will occur at any time the trailing stop is triggered.
This Strategy is best used on 5min or 15min charts.
!!!! very important !!!!
Due to decay, leveraged ETFs will give false results if the price gets far out of range. For example, your ETF is trading around $20 and you choose a 1 hour chart, it may back test back to a time before a reverse split. If the price gets to be too large, like $200, or $1200, the movement on the chart creates false indication of profit/loss.
Most important. Do not trade off this strategy, you may lose lots of money. This is for educational use only.
Oscillating Market Case StudyThis is a little something I created to analyze the market. Ultimately, I wanted to create something that could encapsulate the entire market as best as possible. The idea was simple, use technical analysis to create cases that would indicate entry positions and exit positions for long positions initially. After completing that, I decided to add a few shorting cases.
A combination of 25-30 indicators were used to create this, and the indicators were modified with a filter to create a smoothed overlay.
So here's the breakdown:
- 10 total cases: 7 long, 3 short
- The 7 long cases are broken down into three categories; long term, medium term, short term
- Short Term: OC1, OC2, STB1, STB2
- Medium Term: STB1, STB2
- Long Term: LTB1
- Shorting Cases: SC1, SC2, SC3
- The cases are both plotted as text and entry orders; this can be toggled on and off through the format menu.
I suggest you use the format menu to get the most out of this script. The menu consists of toggles to turn of the plots and/or the entries. It's pretty self explanatory. Use it to keep the chart cleared and concise so you only visualise the cases that you need.
Personally, the cases that have worked the best for me are:
- Long Cases: OC1, OC2, STB2, LTB1
- Shorting Cases: SC2, SC3
I kept this description as short as possible, but please feel free to reach out if you have any questions.
Pretty much, use the cases and see if it works for you.
Practice RSI, HA, Positions- DONTUSEJust practicing adding multiple indicators conditions and position size conditions to a strategy with signals.
Momentum Strategy, rev.2This is a revised version of the Momentum strategy listed in the built-ins.
For more information check out this resource:
www.forexstrategiesresources.com
RSI+STOCHRSI v2RSI + STOCHASTIC RSI combination v2 ( for v1 )
For 5 min
Changes
Stcoh RSI creates signal with crossover
RSI created signal with an equation ( above or below the line) ,crossover was added.
dP magnet//Strategy based on the idea that stop loss and take profit are often placed at full price levels or round numbers, whcih acts as resistance and supports levels
//Buy Rules:
//Actual price (close) is above round number.
//Round number level was not touched in previous ten bars (arbitrary value).
//Place a buy and follow the order with a trail step because price can bounce at round number (support) or can go through it.
//Sell Rules are the same of buy rules but inverted.
//
//Need improvement on conditions' logic and round numbers definitions
ATR and T3 strategyT3 Moving Average indicator was originally developed by Tim Tillson in 1998/99.
T3 Moving Average is considered as improved and better to traditional moving averages as it is smoother and performs better in trending market conditions.
It offers multiple opportunities when the price is in the state of retracement and therefore allows to minimize your exposed risk and allowing your profits run.
This strategy is for trend followers who are patient enough to have 6-10 trades per year.
What's included in strategy?
Two ATR (Code was taken from J.Dow and modified)
Tillson Moving average
Enter long signal:
When both ATR (Long and Short) are in uptrend and the bar closes above Upper Tillson's moving average band: Enter Long
Exit Long signal:
When hl2 is lower than Lower Tillson Moving Average band
Enter short signal:
When both ATR (Long and Short) are in downtrend and the bar closes below Lower Tillson's moving average band: Enter Short
Exit Shortsignal:
When hl2 is higher than Upper Tillson's Moving Average band
Best to use with Bitcoin on 12H TF
Can be used for different time frames as well but the settings must be adjusted accordingly
Remember, overtrading can be harmful to your trading account.
If this is helpful for you, consider a tip
BTC: 3FiBnveHo3YW6DSiPEmoCFCyCnsrWS3JBR
ETH: 0xac290B4A721f5ef75b0971F1102e01E1942A4578
Created by CryptoJoncis
Keltner Channel Backtest The Keltner Channel, a classic indicator
of technical analysis developed by Chester Keltner in 1960.
The indicator is a bit like Bollinger Bands and Envelopes.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
donchian channelssimple donchian channels strategy. can be modified for long or short, futures / equities / crypto / forex
Volatility Backtest The Volatility function measures the market volatility by plotting a
smoothed average of the True Range. It returns an average of the TrueRange
over a specific number of bars, giving higher weight to the TrueRange of
the most recent bar.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
TrapTradingBuy on dips and sell into rallies. Simple as that.
- Short line (green)
- Base line (white)
- Long line (red)
When the market price touches the white or the red(green) lines, buy(sell) orders are generated.
The exit points are 2 lines above(below) the entries.
Parameters
- Period: It affects the value of Base line and the spacing of each line.
- Multiple: Specify the spacing between each line.
BitMex Trailing Stop StrategyThis script is designed for those who want to use BitMex's trailing stop. It's not meant to be used as entry exits, but rather to get an idea of how wide the trailing stop needs to be. I suggest you backtest with different values. The script can also be integrated into an existing strategy which does give entry/exits to act as its stop loss.
Simple Trailing Buy & Stop StrategyAllows you to backtest a simple percentage based trailing stop, with a trailing buy. Experiment with different percentages on different timeframes for different charts.
For BTCUSD, on daily 4.3% stop and 1.9% buy works well, while on 4hr a 1.5% stop and 1.9% buy works best.
Please comment with any other combos that work well for you on different markets or timeframes.