[Haasbot Utilities] Kobalt's plunder: PlotExposure
stableDescription
Don't rememberz how I got this...
"Great artists steal. They don't do homages."
---=-Quentin Tarantino
HaasScript
DefineCommand('PlotExposure', 'L-S exposure')
local longAmount = LongAmount()
local shortAmount = ShortAmount()
-- Add a chart that shows the exposure
local lineValue = IfElse(longAmount > 0, longAmount, -shortAmount)
local line = Plot(2, 'Exposure', lineValue, {c=Green, s=Step})
PlotDoubleColor(line, 0, Red, ChangeColorOpacity(Gray, 20))
ChartSetOptions(2, 'Exposure')
DefineOutput(VoidType)
4 Comments
Sign in to leave a comment.
Cool work
Thanks, easy share, knew many would find handy, more very soon, if you want to test, see something else, just DM me.
Love it! Make it work for hedged!
It doesn't??