HI Everyone,
I have a indicator that i want to plot on daily chart, but i want only plot it for last 5 bars to keep chart clean.
Is there a way to do this?
I know the code to do it for 1 day, but how to do this for 5 or 10 days.
Here is code for 1 day. def today = if GetLastDay() == GetDay() then 1 else 0;
I have a indicator that i want to plot on daily chart, but i want only plot it for last 5 bars to keep chart clean.
Is there a way to do this?
I know the code to do it for 1 day, but how to do this for 5 or 10 days.
Here is code for 1 day. def today = if GetLastDay() == GetDay() then 1 else 0;