Type/to search

Playing the cross

EMA
1
Follow
1809
Followers

For this script i used Kijun-sen from Ichimoku Cloud and Moving Average.

Kijun-sen is the base line of the Ichimoku Cloud or the midpoint price of the last 26 period.
Moving Average is a constantly updated average price of a given range.
In this script i used the standard Kijun-sen settings and the Moving Average, 55 length.

You will get an red or green signal when the lines cross each other.
Try the indicator yourself to see, why it could be useful.

A special thanks to @norok and @happyCloud1537 for teaching me!
This will lead to more scripts from my side, since i really like to code and trade.

backtest
img

Source
Pine
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Glenn234

//@version=5
indicator("Playing the cross", shorttitle="PtC", overlay=true)

// Ichimoku code - Kijun-Sen
basePeriods = input.int(26, minval=1, title="Kijun-Sen length")
donchian(len) => math.avg(ta.lowest(len), ta.highest(len))

KijunSen = donchian(basePeriods)
plot(KijunSen, color=color.green, title="Kijun-Sen")
Strategy parameters
Strategy parameters
Kijun-Sen length
EMA length
Source
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)