My question is on the chart.
Thanks
1 Like
Hi @JEETU
Exactly as you said
As we can see in the picture daily RSI is 57.07, and will stay the same number until the next daily bar arrive.
So that mean at any timeframe «from daily to minute» dailyRsi value will appear in the chart updated.
i Just guess you maybe need to do something like, to run a part of the code every hour?
is not clear to me what you try to achieve
Read below link to have an idea
NEWDAY = Day() != Ref(Day(),-1);
NEWhour = Hour() != Ref(Hour(),-1);
http://www.amibroker.com/kb/2015/10/06/how-to-run-certain-piece-of-code-only-once/
hi
this code is for HourlyRSI if your chart time frame is below hour
_SECTION_BEGIN("HourlyRSI");
TimeFrameSet( inHourly );
HourlyRSI = RSI(14);
TimeFrameRestore();
Plot( TimeFrameExpand( HourlyRSI, inHourly ), "HourlyRSI", colorRed );
_SECTION_END();
3 Likes
This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.