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

//@version=5

// @description Make Love Not War, place a flag of support on your chart!
library(title='MakeLoveNotWar', overlay=true)

// @function Make Love Not War function.
// @param pos string, position.
// @param text_size string, text size.
// @returns table.
export flag (simple string pos=position.top_right, simple string text_size=size.normal) =>
	var table _T = table.new(pos, 2, 3)
	color _blue = #0057B8
	color _yellow = #FFD700
	table.cell(_T, 0, 0, '', bgcolor=_blue)
	table.cell(_T, 1, 0, '', bgcolor=_blue)
	table.cell(_T, 0, 1, '', bgcolor=_yellow)
	table.cell(_T, 1, 1, '', bgcolor=_yellow)
	table.cell(_T, 0, 2, 'Make Love', text_color=_blue, text_size=text_size)
	table.cell(_T, 1, 2, ' Not War!', text_color=_yellow, text_size=text_size)
	
flag()