Plot( C, ""+Interval(2), styleCandle );
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
dt = DateTime();
SetBarsRequired( -2, -2 );
expandmode=expandPoint;
TimeframeSet( in1Minute ); // TimeframeSet(i * in1Minute);
up = C > O;
M1 = TimeFrameExpand( up, in1Minute , expandPoint );
TimeframeRestore();
TimeframeSet( 2*in1Minute );
up = C > O;
M2 = TimeFrameExpand( up, 2*in1Minute , expandPoint );
TimeframeRestore();
dist = 0.1*ATR(1);
for( b = 0; b < BarCount; b++ )
{
//------ yellow is the Invertedhammer with NO space
if( m1[b] ) PlotText( "1" , b, L[ b ]-1-dist[1], colorRed );
if( m2[b] ) PlotText( "2" , b, L[ b ]-1.4-dist[1], colorRed );
if( b > 11 )
[COLOR="Red"][SIZE="2"]if (m2[b])
PlotText( "_m" , b, L[ b ]-1-dist[1], colorgold );
}[/SIZE][/COLOR]
Plot( C, ""+Interval(2), styleCandle );
for( i = 1; i < 3; i++ )
{
TimeframeSet( i*in1Minute );
up = C > O;
TimeframeRestore();
[COLOR="Red"]VarSet( "M" + i, TimeFrameExpand( up, i*in1Minute , expandPoint ) );
// Doesn't M2 = TimeFrameExpand( up, 2*in1Minute , expandPoint );[/COLOR]
M = VarGet( "M" + i );
for( b = 0; b < BarCount; b++ )
{
if(M[b] ) PlotText(" "+(i), b, L[b]-1-(i), colorRed);
if (M2[b])
{
PlotText( "" , b, y[ b ], colorRed );
}
}
}
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
Plot( C, ""+Interval(2), styleCandle );
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
dt = DateTime();
SetBarsRequired( -2, -2 );
expandmode=expandPoint;
TimeframeSet( in1Minute ); // TimeframeSet(i * in1Minute);
up = C > O;
M1 = TimeFrameExpand( up, in1Minute , expandPoint );
TimeframeRestore();
TimeframeSet( 2*in1Minute );
up = C > O;
M2 = TimeFrameExpand( up, 2*in1Minute , expandPoint );
TimeframeRestore();
dist = 0.1*ATR(1);
for( b = 0; b < BarCount; b++ )
{
//------ yellow is the Invertedhammer with NO space
if( m1[b] ) PlotText( "1" , b, L[ b ]-1-dist[1], colorRed );
if( m2[b] ) PlotText( "2" , b, L[ b ]-1.4-dist[1], colorRed );
if( b > 11 )
[COLOR="Red"][SIZE="2"]if (m2[b])
PlotText( "_m" , b, L[ b ]-1-dist[1], colorgold );
}[/SIZE][/COLOR]
Plot( C, ""+Interval(2), styleCandle );
for( i = 1; i < 3; i++ )
{
TimeframeSet( i*in1Minute );
up = C > O;
TimeframeRestore();
[COLOR="Red"]VarSet( "M" + i, TimeFrameExpand( up, i*in1Minute , expandPoint ) );
// Doesn't M2 = TimeFrameExpand( up, 2*in1Minute , expandPoint );[/COLOR]
M = VarGet( "M" + i );
for( b = 0; b < BarCount; b++ )
{
if(M[b] ) PlotText(" "+(i), b, L[b]-1-(i), colorRed);
if (M2[b])
{
PlotText( "" , b, y[ b ], colorRed );
}
}
}
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
for( i = 1; i < 10; i++ )
{
[B]VarSet( "C"+i, Ref( C, -i ) );
Plot( VarGet( "C"+i ), "C"+i, colorRed );
//Plot( VarGet( "C"+i ), " ", colorRed ); //works same way
}[/B]
Plot( C, ""+Interval(2), styleCandle );
for( i = 1; i < 3; i++ )
{
TimeframeSet( i*in1Minute );
up = C > O;
TimeframeRestore();
VarSet( "M" + i, TimeFrameExpand( up, i*in1Minute , expandPoint ) );
// [SIZE="3"][B]same way as example it generate M2 = TimeFrameExpand( up, 2*in1Minute , expandPoint );[/B][/SIZE]
// Doesn't M2 = TimeFrameExpand( up, 2*in1Minute , expandPoint );
//[COLOR="RoyalBlue"][SIZE="3"]Then you must VarGet the string for each variable.[/SIZE][/COLOR]
// [B]I've written [COLOR="royalblue"]VarGet( "M" + i );[/COLOR] [/B] as below
M = VarGet( "M" + i );
for( b = 0; b < BarCount; b++ )
{
if(M[b] ) PlotText(" "+(i), b, L[b]-1-(i), colorRed);
if (M2[b])
//[COLOR="royalblue"][SIZE="3"]M2[b] is an element of every candle array [/SIZE][/COLOR]
// should i write Varget("M"+2); ?
{
PlotText( "" , b, y[ b ], colorRed );
}
}
}
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
for( i = 1; i < 10; i++ )
{
[B]VarSet( "C"+i, Ref( C, -i ) );
Plot( VarGet( "C"+i ), "C"+i, colorRed );
//Plot( VarGet( "C"+i ), " ", colorRed ); //works same way
}[/B]
Plot( C, ""+Interval(2), styleCandle );
for( i = 1; i < 3; i++ )
{
TimeframeSet( i*in1Minute );
up = C > O;
TimeframeRestore();
VarSet( "M" + i, TimeFrameExpand( up, i*in1Minute , expandPoint ) );
// [SIZE="3"][B]same way as example it generate M2 = TimeFrameExpand( up, 2*in1Minute , expandPoint );[/B][/SIZE]
// Doesn't M2 = TimeFrameExpand( up, 2*in1Minute , expandPoint );
//[COLOR="RoyalBlue"][SIZE="3"]Then you must VarGet the string for each variable.[/SIZE][/COLOR]
// [B]I've written [COLOR="royalblue"]VarGet( "M" + i );[/COLOR] [/B] as below
M = VarGet( "M" + i );
for( b = 0; b < BarCount; b++ )
{
if(M[b] ) PlotText(" "+(i), b, L[b]-1-(i), colorRed);
if (M2[b])
//[COLOR="royalblue"][SIZE="3"]M2[b] is an element of every candle array [/SIZE][/COLOR]
// should i write Varget("M"+2); ?
{
PlotText( "" , b, y[ b ], colorRed );
}
}
}
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );