BELIEVE , IT DOESN'T WORK RIGHT , IT MOVE WITH NEXT CANDLES UNTIL IT FIX ITSELF, IN SIMPLE NO USE OF IT .
HOW TO BELIEVE IT ? IT MOVES WITH PRICE.
STEP 1:
Use below code:
STEP 2: Either see it in real time or Use Bar replay ..
Use your bar replay, you'll see it by yourself , numbers are moving to next candles , kindly see 3,4,5 numbers .
STEP 3:
http://imgur.com/6bMmpm8
In this, 4 number is moving with price. same number move for 3-4 candles before it fix it.
need more?
http://imgur.com/dAQcavt
http://imgur.com/oijXyXr
Need more?
let me know, i can show you more and more, simply bigger the number, more it moves before it fix itself.
HOW TO BELIEVE IT ? IT MOVES WITH PRICE.
STEP 1:
Use below code:
Code:
SetBarsRequired( -2, -2 );
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
for( i = 1; i < 5; i++ )
{
TimeframeSet( i*in1Minute );
O1 = Ref(O, -1);
H1 = Ref(H, -1); L1 = Ref(L, -1);
C1 = Ref(C, -1); [B][COLOR="Red"]up = C1 > O1;[/COLOR][/B]
TimeframeRestore();
VarSet( "M"+ i, TimeFrameExpand( up, i*in1Minute , expandPoint ) );
}
for( i = 1; i < 5; i++ )
{
m = VarGet( "M" + i ); [COLOR="DarkRed"]([COLOR="DarkSlateBlue"][COLOR="Red"]Since,we are only talking about numbers not specific number, so i didn't used i ==2 here[/COLOR][/COLOR] )[/COLOR]
{
for( b = 0; b < BarCount; b++ ) {
if( M[b] ) PlotText(" "+(i), b, L[b]-1-(i), colorAqua);
}}}
STEP 2: Either see it in real time or Use Bar replay ..
Use your bar replay, you'll see it by yourself , numbers are moving to next candles , kindly see 3,4,5 numbers .
STEP 3:
http://imgur.com/6bMmpm8
In this, 4 number is moving with price. same number move for 3-4 candles before it fix it.
need more?
http://imgur.com/dAQcavt
http://imgur.com/oijXyXr
Need more?
let me know, i can show you more and more, simply bigger the number, more it moves before it fix itself.
Don't you know that BarCount -1 is always the current bar.
If you don't want to see the current bar, then use ref -1 and ref -2.
I don't use live data, I work on EOD, Writing code to help you, I can only show you the sample,
It is on your own initiative to solve problem.
2nd issue is you need to look into higher timeframe expand into the lower time frame, how it behave.
Pls don't wake me up any more.
I give up.
Last edited: