Add OHLC to lower timeframe chart?

B

bizzns

New member
Hi all,

Is there a way to have Daily OHLC lines plot on a short time frame chart that I use for a trigger? For instance, If I go and plot out my daily OHLC lines then I can see them on my short term (trigger chart). However, when I jump to a different ticker I have to re-evaluate and spend time plotting which takes away valuable time during trading. Any suggestions on how this can be done.


Much appreciated in advance.
 
inthefutures

inthefutures

Active member
add a aggregate time period to your code line with the time period of your trigger chart
 
B

bizzns

New member
I can't even find a study that plots OHLC on my charts to begin with... I wish I knew something about coding... unfortunately, I'm completely inept on the subject.
 
inthefutures

inthefutures

Active member
so you want yesterday's ohlc ploted on today's say 5 minute chart?
 
B

bizzns

New member
Well basically I’d like to have past few days (ie 10 days) plotted on my short term chart. I actually use a 200 tick chart for my trigger chart. Also use 1min and 2 min... they seem to correlate fairly close.

This is for a quick in/out scalping sort of trades.
 
Last edited:
inthefutures

inthefutures

Active member
Code:
[CODE]#April 11th 2020
#last 10 days OHLC
#Inthefutures


def agg = AggregationPeriod.DAY;

plot open = open(period = agg)[1];
plot high = high(period = agg)[1];
plot low = low(period = agg)[1];
plot close = close(period = agg)[1];

plot open2 = open(period = agg)[2];
plot high2 = high(period = agg)[2];
plot low2 = low(period = agg)[2];
plot close2 = close(period = agg)[2];

plot open3 = open(period = agg)[3];
plot high3 = high(period = agg)[3];
plot low3 = low(period = agg)[3];
plot close3 = close(period = agg)[3];

plot open4 = open(period = agg)[4];
plot high4 = high(period = agg)[4];
plot low4 = low(period = agg)[4];
plot close4 = close(period = agg)[4];

plot open5 = open(period = agg)[5];
plot high5 = high(period = agg)[5];
plot low5 = low(period = agg)[5];
plot close5 = close(period = agg)[5];

plot open6 = open(period = agg)[6];
plot high6 = high(period = agg)[6];
plot low6 = low(period = agg)[6];
plot close6 = close(period = agg)[6];

plot open7 = open(period = agg)[7];
plot high77 = high(period = agg)[7];
plot low7 = low(period = agg)[7];
plot close7 = close(period = agg)[7];

plot open8 = open(period = agg)[8];
plot high8 = high(period = agg)[8];
plot low8 = low(period = agg)[8];
plot close8 = close(period = agg)[8];

plot open9 = open(period = agg)[9];
plot high9 = high(period = agg)[9];
plot low9 = low(period = agg)[9];
plot close9 = close(period = agg)[9];

plot open10 = open(period = agg)[10];
plot high10 = high(period = agg)[10];
plot low10 = low(period = agg)[10];
plot close10 = close(period = agg)[10];
[/CODE]
 
B

bizzns

New member
Appreciate you putting your time in for this. However, its not plotting. The name of the indicator is highlighted red after I add it to my studies. Not sure if that means its missing something?
 
B

bizzns

New member
yes! I appreciate this so much. It'll save me loads of time. thank you so much.
 
B

bizzns

New member
Hey buddy. You wouldnt be familiar with Tradestation code system by chance would you? TOS has been very unreliable lately so i have an alternative but this code helps so much...
 

Similar threads

Top