YOUR picture was showing three bullish 30min candles. And you posted Bar30 AND Bar60 yourself the whole time!
If you want independent 30min then remove "Bar30 =" and "Bar30 AND".
Is that really that difficult?
What two timeframes? The first code is dependent on hourly TF so far.
If you want to plot the code for 30 minute and 60 minute chart then make condition based on Interval().
As for difference between expandpoint and expandfirst read here
http://amibrokerforum.proboards.com/thread/155/time-frame-functions
If you want independent 30min then remove "Bar30 =" and "Bar30 AND".
Is that really that difficult?
What two timeframes? The first code is dependent on hourly TF so far.
If you want to plot the code for 30 minute and 60 minute chart then make condition based on Interval().
Code:
/// @link http://www.traderji.com/software/101822-need-your-help-multitimeframe-2.html#post1157240
Plot( C, "", colorDefault, styleCandle ); // Just to show on pane
if( Interval() < 3600 ) {
TimeframeSet( inHourly );
Bar60 = C > O;
TimeframeRestore();
expandmode = expandPoint;
Bar60 = Ref( TimeFrameExpand( Bar60, inHourly, expandmode ), -1);
} else
Bar60 = C>O;
PlotShapes( IIF( Bar60, shapeUpArrow , shapeNone ), colorAqua );
_N( Title = StrFormat( "{{NAME}} - {{INTERVAL}} - {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%), Vol %g {{VALUES}}",
O, H, L, C, SelectedValue( ROC( C, 1 ) ), V ) );
http://amibrokerforum.proboards.com/thread/155/time-frame-functions
Yes, i will try it .
2. I was asking ,
Can we compare 3 or more timeframe with expandPoint?
for right now, it's 2 timeframe.
In same way, can we compare more than 2 timeframes?
If comparing more than 2 timeframe, do i need to use TimeFrameGetPrice?
or it's not needed?
we used expandPoint when compared 2 timeframe.
regards
Last edited: