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...
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.
type: alert creation required time: 5 minutes level: easy Getting alerts for indicators and strats is good to easy the eyes of the charts for a while :) After my first script itroducing how to do alerts here there is an easier, more clear way to create an alert. It's still good to do it the "old way" to understand/debug an alert, but after that you'll want this...
type: pine series basic example time required: 10 minutes level: medium (need to know the "array" data variable as a generic programming concept, basic Pine syntax) tl;dr how variables and series work in Pine Pine is an array/vector language. That's something that twists how it behaves, and how we have to think about it. A lot of misunderstandings come from...
Description It's nice to quickly be able to set the backtesting period when writing strategies. To make this process faster I wrote a simple 'component'. So this is not a strategy but rather code you can plug-into your strategy and use if you need that specific functionality. Then it's just a matter of selecting which dates you want to backtest. You can also...
Momentum written in Pine You are able to change the source with this.
This is a very basic strategy implementation Use as a code stub for your strategy code. I wrote it because I could not find one. This particular strategy goes long on Tuesdays at 10 am and goes short at 3 pm on Thursdays. Because US markets open at 9:30 you have to have your chart in 30 minute or less resolution for trades to fire. You can gut that code...
Hi! This new functions plotbar and plotcandle are amazing! Just look at this smoothed candles here)))
Hi everybody! With new plotbar and plotcandle functions you may plot somewhat "stretched" daily bars over intraday chart. Enjoy!
Cup with Handle formation calculations using Pine. First of all, ignore all other lines in the example chart except the two FAT lines. The two fat lines are the ones that define the Cup With handle or in the example chart: a Reversed Cup With Handle. Note: Handle does not always develop and sometimes the final target price is reached without forming any...
First of all, ignore all other lines in the example chart except the four FAT lines. The four fat lines are the ones that define the fibonacci price leves. The lines have different extension offset to the right. The shortest one is the end of the second wave ( or leg B ), the next one is the end of C, the one following that is the end of D and the final one is the...