0% found this document useful (0 votes)
283 views2 pages

OTC Trading Script for Color Indicators

This script plots up or down arrows below or above the current bar based on certain criteria. It allows the user to customize the color of the up and down arrows. When the criteria is met showing an upward trend, it plots a huge blue arrow below the bar labeled "CALL". When the criteria is met showing a downward trend, it plots a huge pink arrow above the bar labeled "PUT".

Uploaded by

rantsjr23
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
283 views2 pages

OTC Trading Script for Color Indicators

This script plots up or down arrows below or above the current bar based on certain criteria. It allows the user to customize the color of the up and down arrows. When the criteria is met showing an upward trend, it plots a huge blue arrow below the bar labeled "CALL". When the criteria is met showing a downward trend, it plots a huge pink arrow above the bar labeled "PUT".

Uploaded by

rantsjr23
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
  • Code Script Explanation

instrument {overlay = true,

name = ' SCRIPT',

short_name = 'OTC',

icon="indicators:ADX"}

input_group { "OTC - UP COLOR", call_color = input { default="#00FFFF", type =


[Link] } }

input_group { "OTC - DOWN COLOR", put_color = input { default="#FF00FF", type =


[Link] } }

if ((close > close[1]) and (close[1] > open[2]) and (close[3] > close[2])) then

plot_shape(1,

'Bull_OTC',

shape_style.arrowup,

shape_size.huge,

call_color,

shape_location.belowbar,

0,

"CALL",

call_color )

else

if ((close < close[1]) and (close[1] < open[2]) and (close[3] < close[2])) then

plot_shape(1,

'Bear_OTC',

shape_style.arrowdown,

shape_size.huge,

put_color,

shape_location.abovebar,

0,
"PUT",

put_color)

end

end

instrument {overlay = true,
            name = '  SCRIPT',
            short_name = 'OTC',
            icon="indicators:ADX"}
            "PUT",
            put_color)
    end
end

You might also like