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...
Created By ChrisMoody on 1-19-2014 by User Request Plots 3 Stochastic Lines.....No %D Lines...by User Request.
CM_Donchian Channels Modified_V2 With Alert Capability ***This Indicator was created by user Request to Add Alerts Capabilities for Donchian Channels. New Features: ***Alerts Work - Ability To Create Alerts From Main Indicator. ***Can Also Be Used In Conjunction with Lower Indicator - CM_Donchian Channels Modified_V2_Lower_Alert ***Added Ability To Turn...
***This Indicator was created by user Request to Add Alerts Capabilities for Donchian Channels. New Features: ***Alerts Work - Ability To Create Alerts From Main Indicator. ***Can Also Be Used In Conjunction with Upper Indicator - CM_Donchian Channels Modified_V2 With Alert Capability ***Added Ability To Turn On/Off Highlight Bars. ***Added Ability to Turn...
CM_MTF ATR Bands/Stops Many Options Available Via Input Tab: -Chart Defaults to Upper and Lower ATR's Based on Current Chart TimeFrame -Ability to Plot either Upper and/or Lower ATR's -Ability to Change the Time Frame ATR's are Based On! -Ability to change Look Back Period and ATR Multiplier Individually for Both Time Frames -This Gives you the ability to plot...