Default Strategy Inputs (Forex / Crypto)The code in this post contains a set of default strategy inputs I use in new projects / backtests in Tradingview.
Full code commentary is available on the Backtest-Rookies website. To comply with house rules, I cannot post the direct link here.
Features
Trade Direction: So that you can limit the strategy for long only, short only or trade in both directions. It is important to note that when you select “Long Only”, you will still see Short signals on the chart. However, they are only used to close a position rather than reverse it. This is the default behaviour for strategies. The same applies to “Short Only”.
Date Ranges: So that you can isolate backtesting to specific periods of interest such as bull or bear markets.
Sessions: So you can easily get an idea of the expected results during your own session. You may also notice that performance of the strategy varies depending on which session it is deployed in.
Some example stop losses: It is not an exhaustive list but it should be enough to provide some inspiration for different types of stops that you can experiment with.
Happy Scripting. I hope the community finds it useful.
Kripto
IOTA Market CapThis plots the exact value of the current IOTA market capital in real-time.
You can find this indicator in the public indicator library!
Search, " IOTA ".
Like and follow for more cool indicators! :)
Crypto-Adjusted Moving Average (CAMA) (15 MINUTE CANDLESTICKS)This moving average is adjusted to give weight to the performance of the 6 largest Cryptocurrencies by market-cap: Bitcoin , Ethereum , Bitcoin Cash, Ripple, Litecoin, and Nem -0.95% Coin. The use of this indicator is to observe divergence between the price of the underlying asset (the crypto-currency you are interested in trading) and the rest of the cryptocurrency market.
If more cryptocurrencies go down while your observed currency goes up, the CAMA will sit lower. If more cryptocurrencies go up while your observed currency goes down, the CAMA will sit higher.
The indicator uses two input types:
"MA_Length" is the value given to the length of the moving average.
and
"CryptoFactor" which is the weight given to the movement of the Crypto-Index.
This modification to the moving average brings a fundamental element to your chart as it can be assumed, if all other crypto currencies move down, while the observed currency moves up quickly, that a breakout is occurring. This allows the trader to identify the breakout and react quicker to a MOONing asset.
ALTFIATHandy indicator that shows you historical price of alt-coins in user-defined currency. Default is USD. Change input setting 'Currency' to relevant USD pair to get alt-price in desired currency ie to see historical price data in Australian dollars, you would enter 'AUDUSD'; to see price data in Euros or Yen, you would enter "EURUSD" or "USDJPY".
Currencies supported:
All xxxUSD pairs + CHF, CAD, JPY and CNH
Issues:
User has to input full currency pair ie AUDUSD - User should just be able to enter AUD. My string + string fix for this breaks default USD setting.
Support for USDxxx pairs currently hardcoded
Solutions to the above welcome and encouraged.
Hello World scriptmy first script!!!
took me a couple of hours to put it together, the documentation could be much, much better