gb50k

For Lolikeet - 2 time frames 1 chart

script below
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.

Vuoi usare questo script sui tuoi grafici?
//@version=2
study("My Script")
//plot(close)


res = input("240", type=resolution)
o = security(tickerid, res, open)
c = security(tickerid, res, close)
h = security(tickerid, res, high)
l = security(tickerid, res, low)


plotcandle(o, h, l, c, title='ceand', color = o < c ? green : red, wickcolor=black)
// most important for backtesting-
// if you use this code to add the 4hr time frame to a 1 hour chart....
// and you want to reference the last cadle in each time frame,
// its x[1]  for the 1hr and x[4] for the 4 hour.  you dont want to use the look at the last candle
// in the 4hr series it carries information that the 1 hr series doesnt have
// untill all 4 hours are done