This version adds HMA and VWMA, allowing you to backtest different crossover strategies for any combination, with the exits on the turning point of the faster MA. Due to order limitations this will only work on higher timeframes for some combinations, or on more recent exchanges with less history. You can edit the code though to add the timestamp to a recent date.
This latest version allows you to backtest crossovers of any SMA EMA HMA or VWMA. Due to the number of orders limit, it will only work on higher timeframes, sometimes using it on a newer exchange with less history can overcome this.
If the price of closing is more than SMA and more than EMA = to open a long-position If the price of closing is less than SMA and less than EMA = to open a short-position If the price of closing is between the SMA and EMA lines = to close any position
Converted famous indicator CM_Ultimate_MA_MTF to strategy. Works well only at big timeframes from 8H and with stop-losses.
Simply define your fast and slow M then backtest the strategy. *First script, work in progress. Will allow you to combine two TV indicators into one.
Simply choose your moving averages and backtest shorting and longing the crossing of these MA's. Meant for dialing in MA crosses as part of a trading setup and not reason enough to take the trade. First script, work in progress.
User definable lengths of SMA, EMA, HMA, with entries on Crossover and exits on Turning Points. You can backtest different combos easily to see profitability.
Strategy based on MA crossover entries and MA turning point (pivots) exits. You can select any SMA or EMA length, with the first faster one being used as the exit trigger. You can backtest different combinations on different timeframes.
Strategy based on going long on bottom turning point of a user-definable MA, and short at the top turning point. Can set any length of MA, and choose between SMA or EMA.
Allows you to backtest different SMA & EMA crossover strategies.
A basic mean-reversion strategy. Shorts when the close is 10% above the MA, and goes long when it's 10% below the MA.
This is the first script I've written. Its sole purpose is to make me learn a bit of pine script. Its not intended to trade live. Feel free to modify it if you wish and let me know if you do it. Also any comments are welcome! Also i need help in two things: 1. Im unable to print the "in-strategy" rsi on chart 2. I want to ignore the first buy signal after each...
Hello Tradingviewers I don’t claim that anything I share is original, but I will never intentionally steal someone else’s work other than using plug and play pieces of code that are shared publicly This strategy's code is the same from the previous "study" post that can be found here: It's primarily made for back-testing...