I seem to have got the data back for the moment but a lot of panes are now missing.
Copy the file broker.newcharts from your backup to your AB directory.
I seem to have got the data back for the moment but a lot of panes are now missing.
All you need to do is:
1. Closing AmiBroker
2. Deleting Broker.Master
3. Restarting AmiBroker
It will re-build the database from stock files. First start of AB will be a little bit slower becasue of rebuilding process.
As for 64-bit vs. 32.bit plugins.
64-bit plugins don't belong to 32-bit plugins folder of Program Files (x86) because that's the directory of AB 32-bit.
Also 32-bit plugins don't work in 64-bit AB.
32-bit to 32-bit and 64-bit to 64-bit. Apples to apples and oranges to oranges.
The method described re-creates the symbols only. If data was lost before then it will not re-invent data.
Are your panes back?
Plot( C, ""+Interval(2), styleCandle );
for( i = 1; i <4 ; i++ )
{
VarSet( "M" + i, i);
M = VarGet( "M" + i );
for( b = 0; b < BarCount; b++ )
{
if(M[b] ) PlotText(" "+(i), b, L[b]-1-(i), colorAqua);
}
}
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
EnableScript("JScript");
<%
function getArrayLength( a ) {
x = VBArray( a ).toArray();
for ( y = 0; y < x.length; y += 1 ) {
if ( x[y] == undefined ) break;
}
return y;
}
%>
function arrCount( arr ) {
scr = GetScriptObject();
a = 0;
if ( !IsNull( BeginValue( arr ) ) ) a = scr.getArrayLength( arr );
return a;
}
Greetings --
All arrays are the same length -- the length of the primary data series. There are BarCount elements. AmiBroker is "zero-based." The indexes of the array elements run from 0 to BarCount-1.
Best, Howard
Plot( C, ""+Interval(2), styleCandle );
for( i = 1; i <4 ; i++ )
{
VarSet( "M" + i, i);
M = VarGet( "M" + i );
for( b = 0; b < BarCount; b++ )
{
if(M[b] ) PlotText(" "+(i), b, L[b]-1-(i), colorAqua);
}
}
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
Greetings --
Referring to: "I'm trying to count array length of [ for( i = 1; i <4 ; i++ ); ]
custom loop of numbers, as we are not counting number of bars"
The emphasized line in the post asking for help was: "Does anyone have experience with array length ? "
-------------
My response was that all arrays in AmiBroker are the same length -- a statement that is true.
Whenever an array is created in an afl program, it is also that same length, and its initial element always has an index of 0.
This line of code: for( i = 1; i <4 ; i++ ); does create a sequence of 1, 2, 3 for the variable i. It is unclear from the sample code or image posted how "i" is used.
Can you post an explanation of what the code should do?
Best regards, Howard
Plot( C, ""+Interval(2), styleCandle );
for( i = 1; i <4 ; i++ )
{
TimeFrameSet(i*in1Minute );
rs = RSI(14);
TimeFrameRestore();
VarSet( "M"+ i, TimeFrameExpand( rs, i*in1Minute , expandPoint ) );
M = VarGet( "M" + i );
for( b = 0; b < BarCount; b++ )
{
if(M[b] ) PlotText(" "+(i), b, L[b]-1-(i), colorAqua);
}
}
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
for( k = 1; k <= n; k++ ) { // TF loop
....
......
for( i = fvb; i <= lvb; i++ ) { // visible chart area loop
....
}
}
shape2 = 0;
shape3 = 0;
for( i = fvb; i <= lvb; i++ ) {// visible chart area loop
getvar = ....;
switch( getvar ) {
case 2: ....
case 3: ....
default: break;
}
}
PlotShapes( shape2 * shapeSmallCircle, colorWhite, 0, L, n*-35 );
PlotShapes( shape3 * shapeSmallCircle, colorYellow, 0, L, n*-35 );
The previous post's picture is showing if minimum number is two but you want to plot when max number of true conditions is equal to two or three or four. That can be done too.
Code:for( k = 1; k <= n; k++ ) { // TF loop .... ...... for( i = fvb; i <= lvb; i++ ) { // visible chart area loop .... } } shape2 = 0; shape3 = 0; for( i = fvb; i <= lvb; i++ ) {// visible chart area loop getvar = ....; switch( getvar ) { case 2: .... case 3: .... default: break; } } PlotShapes( shape2 * shapeSmallCircle, colorWhite, 0, L, n*-35 ); PlotShapes( shape3 * shapeSmallCircle, colorYellow, 0, L, n*-35 );
SetBarsRequired(-2,-2);
Plot( C, ""+Interval(2), styleCandle );
for( i = 1; i <4 ; i++ ) { // TF loop
TimeFrameSet(i*in1Minute );
rs = RSI(14);
TimeFrameRestore();
VarSet( "M"+ i, TimeFrameExpand( rs, i*in1Minute , expandPoint ) );
M = VarGet( "M" + i );
fvb = Status("FirstVisibleBar");
lvb = Status("LastVisibleBar");
for( b = fvb; b <= lvb; b++ ) { // visible chart area loop
if(M[b] ) PlotText(" "+(i), b, L[b]-1-(i), colorAqua);
}
}
/*
shape2 = 0;
shape3 = 0;
for( b = fvb; b <= lvb; b++ ) {// visible chart area loop
getvar = VarGet( "M" + i ); ;
if( getvar == 2 ) {
//if(Sum([i,2]))PlotShapes( shapeCircle*m , colorAqua, 0, H, 45 );
}
}
PlotShapes( shape2 * shapeSmallCircle, colorWhite, 0, L, n*-35 );
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
*/
for( i = fvb; i <= lvb; i++ ) {// visible chart area loop
getvar = ....;
switch( getvar ) {
case 2: ....
PlotShapes( shape2 * shapeSmallCircle, colorWhite, 0, L, n*-35 );
for( b = fvb; b <= lvb; b++ ) {// visible chart area loop
getvar = VarGet( "M" + i ); ;
if( getvar == 2 ) {
//if(Sum([i,2]))PlotShapes( shapeCircle*m , colorAqua, 0, H, 45 );
}
}
sum via VarSet/VarGet without using sum() function .Sum is not used here anyway. You have to sum via VarSet/VarGet. That one is done in the nested loop. Then the result is called in second loop.
cnt = 0;
for( i = 0; .... )
cnt++;
cnt = 0;
for( i = 0; .... )
cnt++;
Greetings --
Referring to: "I'm trying to count array length of [ for( i = 1; i <4 ; i++ ); ]
custom loop of numbers, as we are not counting number of bars"
The emphasized line in the post asking for help was: "Does anyone have experience with array length ? "
-------------
My response was that all arrays in AmiBroker are the same length -- a statement that is true.
Whenever an array is created in an afl program, it is also that same length, and its initial element always has an index of 0.
This line of code: for( i = 1; i <4 ; i++ ); does create a sequence of 1, 2, 3 for the variable i. It is unclear from the sample code or image posted how "i" is used.
Can you post an explanation of what the code should do?
Best regards, Howard
Plot( C, ""+Interval(2), styleCandle );
for( i = 1; i <4 ; i++ )
{
TimeFrameSet(i*in1Minute );
rs = RSI(14);
TimeFrameRestore();
VarSet( "M"+ i, TimeFrameExpand( rs, i*in1Minute , expandPoint ) );
M = VarGet( "M" + i );
for( b = 0; b < BarCount; b++ )
{
if(M[b] ) PlotText(" "+(i), b, L[b]-1-(i), colorAqua);
}
}
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
Hello. That bearcount/bullcount indicator looks interesting. It appears to override a reversal at times which suggests some type of after event adjustment (future look). Is it derived from ADX on Pro Real Time? Could you set out the indicator logic as I would like to reproduce it in Amibroker. Please.As Expected and nicely signalled on the flush sub 5
https://www.aussiestockforums.com/forums/attachment.php?attachmentid=68254&d=1474985601
Hello and welcome to Aussie Stock Forums!
To gain full access you must register. Registration is free and takes only a few seconds to complete.
Already a member? Log in here.