Discussion about this post

User's avatar
ChefSoySauce's avatar

here it is for trading view, but as a chart

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

// © ChefSoySauce

//@version=5

indicator("Chef's SPY Ratio", precision=4)

currentTimeFrame = input.timeframe("","Timeframe")

use_spx = input(defval=false,title="Use SPX")

symb_es = request.security("ES1!",currentTimeFrame,close)

symb_spy = request.security("SPY",currentTimeFrame,close)

symb_spx = request.security("SPX",currentTimeFrame,close)

dif_es = (symb_es/symb_spy)

dif_sp = (symb_spx/symb_spy)

plot_diff = use_spx ? dif_sp : dif_es

plot(plot_diff)

Expand full comment
Mlek's avatar

Tic , any update for the gold , thanks a lot

Expand full comment
48 more comments...

No posts

Ready for more?