Fibonacci Zones EMA Zones Strategy
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// Â© Matrix01010

//@version=5
indicator("Fibonacci Zones EMA Zones Strategy", overlay=true, max_lines_count = 500, max_labels_count = 500)


////// This script is intended for pienscript learning purposes only.
////// I would like to Clarify this script is only designed for pinescript learning purposes to help learn useful PineScript coding.
///// Strategy


///// Simple Algorthims/Math Formulas

L = input.int(10, "Length", [10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 120, 140, 160, 180, 200, 220, 240, 260, 280, 300, 350, 400, 450, 500, 600, 700, 800, 900, 1000])

Fib_Zone_Up_Down = input.float(defval = 0.1, title = "Fibonacci Move Zone Up/Down", step = 0.010)
Fib_Zone_Size = input.float(defval = 0.03, title = "Fibonacci Zone Size" , step = 0.010)

oo2 = float(0.3) - Fib_Zone_Size 
hl = ta.highest(high, L)
ll = ta.lowest(low, L)
x = hl - ll
Fib2 = hl - x * Fib_Zone_Size + Fib_Zone_Up_Down
Fib1 = hl - x * oo2 + Fib_Zone_Up_Down
EMA1L = input.int(20, "EMA1", step=5)
EMA1 = ta.ema(close, EMA1L)
EMA2L = input.int(250, "EMA2", step=5)
EMA2 = ta.ema(close, EMA2L)
 


plot1 = plot(Fib1, "Fib 1", color=color.blue, linewidth = 1)
plot2 = plot(Fib2, "Fib 2", color=color.blue, linewidth = 1)
plot(EMA1, "EMA 1", color=color.yellow, linewidth = 2)
plot(EMA2, "EMA 2", color=color.orange, linewidth = 2)
fill(plot1, plot2, color=color.rgb(0, 89, 255, 84))