//First script I have published. Constructive criticism is welcome.
// I hope this may be helpful to you.
// Initially, I did this for myself as I was getting some odd results from the ta.change function. Turns out it was my error LOL. What a surprise!
// Typical syntax: ta.change(source, value)
// value doesn't need to be included. If it isn't, it will only...
Simple debug console to print messages from your strategy code.
Make sure your strategy overlay is false
Import the library :
import keio/console/1 as console
var log = console.init()
lines : Optional. Number of lines to display
Hello, this script was made upon the request of aliergin63, one of my followers.
I do not know exactly from whom it is quoted. (It may be author HighProfit.)
Long position when 8 dema is over 20 dema and 63 dema,
it opens a short position for the vice versa.
Alarms have been added.
%0.1 comission added.
Note : DEMA = Double Exponential Moving Average
Very simple indicator script to display multiple simple moving averages. I know others have made this but they often are too feature-rich and can get cluttered.
Can optionally show a cross when MA 1 crosses MA 3. These are colors such that when MA 1 crosses BELOW MA 3 a red cross is shown, and green when crossing above.
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...