The TradingView system has two types of bars. Bars that are historical and bars that are real-time. When programming complex scripts and strategies that use higher timeframe data there can be difficult programming conditions due to these two bar states. Especially in the case of after-hours, end of day, low volume trading and thinly traded stocks the bar state...
Out of all the indicators created by this brand, this is probably the grandest of them all. Known as the ‘ZN Reversion Ribbon V2’, for short, this indicator is designed to: 1. Create multiple buy and sell signals 2. Help users gauge the momentum of the price movement. 3. Re-color candles to give users a better understanding of price direction as well as...
MA strategy with selection of various MAs: SMA, EMA, TEMA, WMA, and HMA with custom length and time period.
This is a script to call resolutions with some math on top of your base resolution. Using the modulo operator to quantize integer values, it works by converting the modified resolution integer to a 4 digit string value. Use the function within your own scripts to call funny resolutions otherwise difficult to calculate. You cannot add series expressions to...
This is a script to call resolutions with some math on top of your base resolution. THIS IS NOT AN INDICATOR TO USE ON A CHART!!! The resolution call function is really useful for your own scripting ideas! Using the modulo operator to quantize integer values, it works by converting the modified resolution integer to a 4 digit string value. The function...
Hello All, Here is a scirpt of ChrisMoody modified with the alerts of purchases and sales. I just have a problem with automation. At the bottom of my script my alerts "Buy1" and "Sell2" give alerts constantly and I wish to have a single alert before the order is completed. Before "Sell1" or Buy2 ". I found the function "barstate.isfirst" that could possibly...
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...
EMAcrossover_RSI Buy/sell signal Strategy To be used in combination with Alerts script, both can be added to your tradingview charts (Chart time-frame should be set to 15min) like you add any other simple indicator. Add this script to your favorites and once you have been granted access, you...
I was messing around and made a little script that works best for TRX and XVG for some reason. It is constant for nice 1 and 2% gains. This is a work in progress... if you want to talk about making scripts and crypto, join this discord I just made: discord.gg Comment if you'd like to see more :)
Hi, I have overlayed the script I have prepared previously and figured out how to set alerts although they don't seem to match up correctly with my strategy. Could anyone please help me fix the problem? It seems to be revolving around my exit conditions. Thanks in advance. K
I am still learning pinescript, and part of this was created using the Pine Script language reference manual. This includes looking at the time series, a fixed length, and the default intraday_loss variables. This also includes the basic fixed lengths for an swma (Symmetrically weighted moving average) and the script to start creating a strategy. All in all this...
This is a script to place Renko candles on your chart alongside another candle type or more importantly, using the variables from this script, you can build a strategy using Renko candles that will depict true/proper entries and exits in a strategy when using the backtest feature. We hope this helps!
In this second tutorial we build upon the previous tutorial. We add color shading for each different day and highlight Wednesday. The idea here is to manually count if on Wednesdays close is bigger then open. Hope it helps. Feel free to comment. MartinMystere
If you are just like me and cant just get your head around pine script, I have created this simple code so you get the main concept. Unfortunately there are no good step by step tutorials out there teaching scripting. Hope this helps. Comments are welcome. MatinMystere
This is the main strategy that I will be forward testing on demo for a month or two, then making it an EA in MetaTrader4 You can see the code for yourself this time, all the strategy is, is a crossover of various moving averages. Commission included, $10,000 account. Results over the past 3 months, beginning in January 2017.
Version 3 for you guys, just add to favorites and you can use. Only 36 trades since 2017, since that is when the backtesting began. I made the commission more realistic, now it is about 37 pips per trade. Only works on gold, (XAUUSD). Trend Following as you can see. 1 contract size, 1 trade at a time, good proof of how being correct less than a third of the...
This strategy improves on the latest one that I posted in several ways. the %profit is reduced by 3% Success rate reduced by 2% Drawdown decreased by half (from 40% to 20%) Average trade $ increased by $500