PlotReference
stableDescription
Plots a reference price dark grey [dotted]. behind main market or 50:50 horizontal price charts. (50:50 split is now false by default)
[Default= BINANCE_BTC_USDT]
I find it useful to see BTC fast timeframes chart to anticipate price movements (within a trend)
Price action can lag a bit ..Which is what you can use to remove or place your buys depends..a kind of reactionary vs anticipatory arbitrage scalp, good for markets where a small move 1-2 rows is nice. in alts that act on this change in value.
When: swapping qoute etc or just the regular way, never bad to have..
HaasScript
DefineCommand('PlotReference', 'Plots a reference price dark grey dotted behind main market or 50:50 horizontal price charts. [Default= BINANCE_BTC_USDT] Price behind main market chart index 0 left axis.')
--...............................................................................................................................................
local chartIndex = DefineParameter(NumberType, 'chartIndex', 'The index on which to chart', false, 0, 'Number')
local ticker = DefineParameter(StringType, 'name', 'ticker to add to plot.', false, 'BTC/USDT', 'Text')
local market = DefineParameter(StringType, 'market', '', false, 'BINANCE_BTC_USDT_', 'InputAccountMarket')
--[PLOT_inteRE:FERENCE:=:::::B:::T:::C:::::::::D:o:t:s::4µ-©_=::::::::::::K;o;ba:lTx:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::]]
local behindMain = ClosePrices({market = 'BINANCE_BTC_USDT_'})
Plot(0, ''..ticker..'', behindMain[1], LineOptions(DarkGray(77), Smooth, Dotted, 1, 0, LeftAxis, '', true))
local isBehindMain = Input(' ..d.o.t.s..Behind..Main....', true, 'Plots a darkgrey dotted reference market. [Default= BINANCE_BTC_USDT] Price behind main market chart index 0 left axis.', {group = "Plot Reference as"})
--[Plot Horizontal Price Chart::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::]]
local isPlotReferencePrice = DefineParameter(BooleanType, 'Plot Second Chart', 'Split screen with Horizontal reference market', false, false, 'True, False, Input')
local isPlotReferencePrice = Input('50:50 horizontal Price Chart', false, 'Enable second horizontal reference price market.', {group = "Plot Reference as"})
if isPlotReferencePrice then PlotPrice(1, 'BINANCE_BTC_USDT_') end
if isPlotReferencePrice then ChartSetOptions(1, "Binance BTC/USDT", 0.25) end
DefineOutput(VoidType)
0 Comments
Sign in to leave a comment.
No comments yet. Be the first!