Simple Coding Help - No Promise.

Romeo1998

Well-Known Member
Dear friend houmansat,
this code will buy when
1) rsi touches support line
2) rsi crosses below the support line
this code will sell when
1) rsi touches the resistance line
2) rsi crosses above the resistance line
i have shown white arrows on chart for buy n sell conditions :happy:
this code can be used to scan, explore n backtest too :happy:
here is the code :happy:
Code:
_SECTION_BEGIN("RSI ");
SetChartOptions(0,0,chartGrid30|chartGrid70);
periods = Param( "Periods", 14, 1, 200, 1 );
a = RSI(periods);
Plot( a, _DEFAULT_NAME(), ParamColor( "Color", colorYellow ), ParamStyle("Style",styleThick)  );

/*RSI Trendlines and Wedges*/
G=0;// set G=1, 2, 3, ... to see previous Resistance trendlines
GG=0;// set G=1, 2, 3, ... to see previous Support trendlines
x = Cum(1);
per = Param("Sensitivity",30,1,1000,1); // sensitivity calibration
s1=a;
s11=a;
pS = TroughBars( s1, per, 1 ) == 0;
endt= LastValue(ValueWhen( pS, x, 1+GG ));
startt=LastValue(ValueWhen( pS, x, 2+GG ));
dtS =endt-startt;
endS = LastValue(ValueWhen( pS, s1, 1+GG ) );
startS = LastValue( ValueWhen( pS, s1, 2+GG ));
aS = (endS-startS)/dtS;
bS = endS;
trendlineS = aS * ( x -endt ) + bS;// the Support trendline equation
Plot(IIf(x>startt-6 AND TRENDLINES>0 AND TRENDLINES<100,trendlineS,null),"Support",IIf(as>0,5,4),8);
pR = PeakBars( s11, per, 1 ) == 0;
endt1= LastValue(ValueWhen( pR, x, 1+G ));
startt1=LastValue(ValueWhen( pR, x, 2+G ));
dtR =endt1-startt1;
endR = LastValue(ValueWhen( pR, s11, 1+G ) );
startR = LastValue( ValueWhen( pR, s11, 2 +G ));
aR = (endR-startR)/dtR;
bR = endR;
trendlineR = aR * ( x -endt1 ) + bR;// the Resistance trendline equation
Plot(IIf(x>startT1-6 AND TRENDLINER>0 AND TRENDLINER<100,trendlineR,null),"Resistance",IIf(Ar>0,5,4),8);
Ascwedge=Ar>0.5 AND As>sqrt(2)*Ar AND trendlineR>trendlineS;
Descwedge= As<-0.5 AND As>Ar/sqrt(2) AND trendlineR>trendlineS;

Sell=Short=x>startT1-1 AND TRENDLINER>0 AND TRENDLINER<100 AND Cross(a,trendliner) OR a==trendliner;
Buy=Cover=x>startt-1 AND TRENDLINES>0 AND TRENDLINES<100 AND Cross(trendlines,a) OR a==trendlines;

Filter= Buy OR Sell;
Plotshapes(Buy*shapeUpArrow,colorwhite,0,a,-12);
Plotshapes(Sell*shapedownArrow,colorwhite,0,a,-12);
AddColumn(IIf(Buy,BuyPrice,Null)," RSI Buy Signal ", 1.2,colorblack,IIf(Buy,colorGreen,-1));
AddColumn(IIf(Sell,SellPrice,Null)," RSI Sell Signal ",1.2,colorblack,IIf(Sell,colorred,-1));
:happy:
 
Last edited:

ocil

Well-Known Member
Dear Romeo,
I am facing a strange issue when I use the trading bridge. below code fire, many buy or sell signal until candle closed. It should fire one buy or sell signal after candle close.
I have used:-

Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
Short=ExRem(Short,Cover);
Cover=ExRem(Cover,Short);
and

Buy = Ref(Buy,-1);
Sell = Ref(Sell,-1);
Short = Ref(Short,-1);
Cover = Ref(Cover,-1);

Pls help on this issue.
Thanks


Dear friend ocil,
finally i have understood ur question :happy:
here is the required code :happy:
Code:
// first candle in intraday timeframe
dn = DateNum();
newday = dn != Ref( dn, -1 );

// first candle's close
f1 = ValueWhen( newday, C );

// PV's value for first candle
p1 = ValueWhen( newday, PV );

Buy = COVER = C > H1  AND symbolplus AND f1 > p1;
Short = Sell = C < L1 AND symbolminus AND f1 < p1;
:happy:
 

Romeo1998

Well-Known Member
Dear friend ocil,
i have not yet done auto trading using amibroker ( if God wills, will surely be doing it in future :rolleyes: )
and i do not know anything abt pi bridge software :pompus:
another person who was using pi bridge software n amibroker for auto trading had also faced the same problem as yours
the complete n detailed solution for that problem is given here :happy:
https://tradingqna.com/t/how-to-stop-continuous-buy-sell-signal-from-pibridge-thru-amibroker/3036
after reading this solution i realized that i do not know anything abt static variables in amibroker :D
will have to study abt it :D
 
Last edited:
Dear friend ocil,
i have not yet done auto trading using amibroker ( if God wills, will surely be doing it in future :rolleyes: )
and i do not know anything abt pi bridge software :pompus:
another person who was using pi bridge software n amibroker for auto trading had also faced the same problem as yours
the complete n detailed solution for that problem is given here :happy:
https://tradingqna.com/t/how-to-stop-continuous-buy-sell-signal-from-pibridge-thru-amibroker/3036
after reading this solution i realized that i do not know anything abt static variables in amibroker :D
will have to study abt it :D
Dear Friend VijKrish (Ya, I know),
Plz find a Multi Methods applied Sup/Res Based Buy/Sell Exploration AFL,
Thank you, Regards.
 

Romeo1998

Well-Known Member
Dear friend Loveenajyothi,
i used this code for exploration and it works well :happy:
if there is no volume data , then nothing is shown in exploration :D ( to fix that, somme n somme2 values will have to be edited ) :D
for symbols with volume data, everything worked fine :happy:
Triggers column gives the number of indicators triggered
here is the code :happy:
Code:
/* Minimum Price and 14 day Avg Volume Values for Filter */
minPrice = 3; //change as needed
minVol = 50000; //change as needed

VolAvg = MA( V, 14 );
VolumeIdx = V / VolAvg;
AvgRange = Sum( abs(O-C),15 )/15;

/* Candle Codes */
White = IIf((C>O) AND ((C-O)>=0.8*(H-L)),1,0) AND (C-O)>AvgRange;
Black = IIf((C<O) AND ((O-C)>=0.8*(H-L)),1,0) AND (O-C)>AvgRange;
Doji = IIf(abs(O-C)<=0.1*(H-L),1,0);

/* Dark Cloud Cover [Bear] */
DCC = IIf(Ref(White, -1) AND Black AND C<=Ref(((H+L)/2),-1)
AND O>Ref(C,-1), 1,0);

/* Piercing Line [Bull] */
PL = IIf(Ref(Black, -1) AND White AND C>=Ref(((H+L)/2),-1)
AND O<Ref(C,-1), 1,0);

/* Evening Doji Star [Bear] */
EDS = IIf(Ref(White, -2) AND Ref(Doji, -1) AND Black AND
C<=Ref(((H+L)/2),-2), 1,0);

/* Morning Doji Star [Bull] */
MDS = IIf(Ref(Black, -2) AND Ref(Doji, -1) AND White AND
C>=Ref(((H+L)/2),-2), 1,0);

/* Hammer [Bull] */
HAM = IIf( (H-L > 1.5*AvgRange) AND (C > (H+L)/2) AND (O > C) AND
(VolumeIdx > 2), 1, 0);

/* Bearish Engulfing */
BRE = IIf(Black AND Ref(White, -1) AND (C < Ref(O, -1)) AND (O > Ref(C, -1)), 1,0);

/* Bullish Engulfing */
BLE = IIf(White AND Ref(Black, -1) AND (C > Ref(O,-1)) AND (O < Ref(C,-1)), 1,0);

/* Stochastics 14-4 */

ss = MA(StochK(14),4);
StochBuy = IIf(ss<=20, 1, 0);
StochSell = IIf(ss>=80, 1, 0);

/* TDREI */
HighMom = H - Ref( H, -2 );
LowMom = L - Ref( L, -2 );
Cond1 = ( H >= Ref( L,-5) OR H >= Ref( L, -6 ) );
Cond2 = ( Ref( H, -2 ) >= Ref( C, -7 ) OR Ref( H, -2 ) >= Ref( C, -8 ) );
Cond3 = ( L <= Ref( H, -5 ) OR L <= Ref( H, -6) );
Cond4 = ( Ref( L, -2 ) <= Ref( C, -7 ) OR Ref( L, -2 ) <= Ref( C, -8 ) );
Cond = ( Cond1 OR Cond2 ) AND ( Cond3 OR Cond4 );
Num = IIf( Cond, HighMom + LowMom, 0 );
Den = abs( HighMom ) + abs( LowMom );
TDREI = 100 * Sum( Num, 5 )/Sum( Den, 5 ) ;
tdreiBuy = IIf(TDREI<=-95, 1, 0);
tdreiSell = IIf(TDREI>=95, 1, 0);

/* KUP */
KUP=EMA((H+L+C)/3,10)+EMA(H-L,10);
KDOWN=EMA((H+L+C)/3,10)-EMA(H-L,10);
kupBuy = IIf(Cross(C,KDOWN), 1, 0);
kupSell = IIf(Cross(KUP,C), 1, 0);

/*RSI*/
vrsi= RSI(14);
rsiBuy = IIf(Cross(vrsi,30), 1, 0);
rsiSell = IIf(Cross(70,vrsi), 1, 0);

/*MFI*/
mfiBuy = IIf(Cross(MFI(),30), 1, 0);
mfiSell = IIf(Cross(70,MFI()), 1, 0);

/*STO2*/
lookback = 14;
buyrange = 30;
sellrange = 70;
stochKworkaround = StochK(14);
stochDworkaround = EMA( StochK(14), 5);
sto2Buy = IIf(StochK(14) < buyrange AND Cross(stochKworkaround, stochDworkaround), 1, 0);
sto2Sell = IIf(StochK(14) > sellrange AND Cross(stochDworkaround, stochKworkaround), 1, 0);

/* %R, ema 9 and divergences */

R=-100*((HHV(High,14)-Close))/(HHV(High,14)-LLV(Low,14));
DIVR=(R-Ref(R,-1))*(C-Ref(C,-1));
DIVB=IIf((DIVR<0) AND (R-Ref(R,-1))>0 AND (Ref(R,-1)<-90),-100,0);
DIVB1=IIf((DIVR<0) AND (R-Ref(R,-1))>0 AND (Ref(R,-1)<-90),-80,0);
DIVS=IIf((DIVR<0) AND (R-Ref(R,-1))<0 AND (Ref(R,-1)>-10),-20,0);
divBuy = IIf(DIVB==-100, 1, 0);
divSell = IIf(DIVS==-20, 1, 0);

/*KST*/

KST = (MA(ROC(Close,10),10) * 1) +
(MA(ROC(Close,15),10) * 2) +
(MA(ROC(Close,20),10) * 3) +
(MA(ROC(Close,30),15) * 4);
kstBuy = IIf(Cross(KST , MA(KST, 109)), 1, 0);
kstSell = IIf(Cross(MA(KST , 120), KST), 1, 0);

/*COP*/
copBuy = IIf((EMA( ROC( MA( C, 22 ), 250 ), 150 ) / 100) < 0, 1, 0);

/*SMASH*/
numDays = 3; // Consider smash Day if closed above/below previous numDays highs/lows
closeInDayRangePct = 0.25; // Smash day close should be in the high/low %% of the day range
smashDayDown = Close < LLV (Ref (Low, -1), numDays) AND Close < Open AND Close < (Low + closeInDayRangePct * (High - Low));
smashDayUp = Close > HHV (Ref (High, -1), numDays) AND Close > Open AND Close > (High - closeInDayRangePct * (High - Low));
// Enter in the direction opposite to the smash day if the very next day price moves opposite the smash day.
smashBuy = IIf(Ref (smashDayDown, -1) AND High > Ref (High, -1), 1, 0);
smashSell = IIf(Ref (smashDayUp, -1) AND Low < Ref (Low, -1), 1, 0);

/*CHAIKIN MONEY FLOW*/
ICH = Sum(((( C-L )-( H-C )) / ( H-L ))*V, 21 ) / Sum(V,21);
LCH = LLV( ICH, 255 );
top = (LCH/2);
chkBuy = Cross (ICH, top);
chkSell = Cross (0, ICH);

/*number of buy signals --- give weight to your favorite ones with a coefficient. */
somme= PL + MDS + HAM + BLE + tdreiBuy + kupBuy + rsiBuy + (2*mfibuy) + sto2Buy + (2*divBuy) + kstBuy + copBuy + (2*smashBuy) + chkBuy;

/*number of sell signals. */
somme2 = BRE + DCC + EDS + tdreiSell + kupSell + rsiSell + mfiSell + sto2Sell + divSell + divSell + kstSell + smashSell + chkSell;

/*Guru comment*/
"number of buy indicators triggered: " + WriteVal (somme) ;
//"Aujourd'hui, les signaux haussiers suivants ont t dclenchs: ";

/* Exploration Columns for Sorting */

NumColumns = 29;

Column0 = V;
Column1 = VolumeIdx;
Column2 = somme;
Column3 = PL;
Column4 = MDS;
Column5 = BLE;
Column6 = HAM;
Column7 = BRE;
Column8 = DCC;
Column9 = EDS;
Column10 = tdreiBuy;
Column11 = tdreiSell;
Column12 = kupBuy;
Column13 = kupSell;
Column14 = rsiBuy;
Column15 = rsiSell;
Column16 = mfiBuy;
Column17 = mfiSell;
Column18 = sto2Buy;
Column19 = sto2Sell;
Column20 = divBuy;
Column21 = divSell;
Column22 = kstBuy;
Column23 = kstSell;
Column24 = copBuy;
Column25 = smashBuy;
Column26 = smashSell;
Column27 = chkBuy;
Column28 = chkSell;

Column0Name = "Volume";
Column1Name = "Vol Idx";
Column2Name = "triggers";
Column3Name = "PCL[up]";
Column4Name = "MDS[up]";
Column5Name = "BLE[up]";
Column6Name = "HAM[up]";
Column7Name = "BRE[dn]";
Column8Name = "DCC[dn]";
Column9Name = "EDS[dn]";
Column10Name = "TDREI[up]";
Column11Name = "TDREI[dn]";
Column12Name = "KUP[up]";
Column13Name = "KUP[dn]";
Column14Name = "RSI[up]";
Column15Name = "RSI[dn]";
Column16Name = "MFI[up]";
Column17Name = "MFI[dn]";
Column18Name = "ST2[up]";
Column19Name = "ST2[dn]";
Column20Name = "DIV[up]";
Column21Name = "DIV[dn]";
Column22Name = "KST[up]";
Column23Name = "KST[dn]";
Column24Name = "COP[up]";
Column25Name = "SMH[up]";
Column26Name = "SMH[dn]";
Column27Name = "CHK[up]";
Column28Name = "CHK[dn]";

Column0Format = 1.0;
Column1Format = 1.1;
Column2Format = 1.1;
Column3Format = 1.2;
Column4Format = 1.0;
Column5Format = 1.0;
Column6Format = 1.0;
Column7Format = 1.0;
Column8Format = 1.0;
Column9Format = 1.0;
Column10Format = 1.0;
Column11Format = 1.0;
Column12Format = 1.0;
Column13Format = 1.0;
Column14Format = 1.0;
Column15Format = 1.0;
Column16Format = 1.0;
Column17Format = 1.0;
Column18Format = 1.0;
Column19Format = 1.0;
Column20Format = 1.0;
Column21Format = 1.0;
Column22Format = 1.0;
Column23Format = 1.0;
Column24Format = 1.0;
Column25Format = 1.0;
Column26Format = 1.0;
Column27Format = 1.0;
Column28Format = 1.0;

Filter = somme OR somme2;
original code is available here :D
http://www.traderji.com/community/threads/against-all-odds.49709/
:happy:
 
Last edited:

Romeo1998

Well-Known Member
Dear friend doss186,
try this modified code :happy:
Code:
function FillRun( dir, num, changedir )
{
global i, j, modified, dt, RKC, RKO, RKD, RKH, RKL;
for ( x = 1; x <= num AND j < BarCount - 1; x++ )
{
j++;
extra = ( changedir AND x == 1 ) * dir;
RKC[ j ] = RKC[ j - 1 ] + dir + extra;
RKO[ j ] = RKC[ j - 1 ] /*+ IIf( modified, 0, extra )*/;
RKD[ j ] = dt[ i ];
RKH[ j ] = High[ i - 1 ];
RKL[ j ] = Low[ i - 1 ];
}
}
SetChartOptions(1,chartShowArrows,chartShowDates,0);
Brick = Param( "Brick Size", 10, 1, 100, 1 );
r = 2;
CF = ceil( C / Brick );
CR = floor( C / Brick );
j = 0;
RKC[j] = CF[0];
RKO[j] = CF[0] + 1;
RKD = 0;
RKH = 0;
RKL = 0;
dt = DateNum();
dir = -1;
for ( i = 1; i < BarCount - 1; i++ )
{
if ( j >= BarCount )
break;
if ( CF[i] <= RKC[j] - 1 AND dir < 0 )
{
num = RKC[j] - CF[i];
FillRun( dir, num, False );
}
else
if ( CR[i] >= RKC[j] + r AND dir < 0 )
{
num = CR[i] - RKC[j];
dir = 1;
FillRun( dir, num, True );
}
else
if ( CR[i] >= RKC[j] + 1 AND dir > 0 ) // Continue Up
{
num = CR[i] - RKC[j];
FillRun( dir, num, False );
}
else
if ( CF[i] <= RKC[j] - r AND dir > 0 ) // Change up to down
{
num = RKC[j] - CF[i];
dir = -1;
FillRun( dir, num, True );
}
}
delta =  BarCount - 1 - j;
RKC = Ref( RKC, -delta );
RKO = Ref( RKO, -delta );
RKD = Ref( RKD, -delta );
RKH = Ref( RKH, -delta );
RKL = Ref( RKL, -delta );
C = RKC * Brick;
O = RKO * Brick;
H =  Max( C, O );
L = Min( C, O );
Plot( C, "", IIf( C > O, colorGreen, colorRed ), styleCandle );
xnum = floor( RKD / 1000 );
XChange = IIf( xnum != Ref( xnum, -1 ), 1, Null );
MonthNames = "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec";
Title = Name() + StrFormat( " - 20%06.0f", RKD % 1000000 ) + " - Renko Chart : Last Value = " + RKC * Brick + " H: " + RKH + " L: " + RKL + ", Brick Size = " + Brick;
original code is available here :D
http://www.wisestocktrader.com/indicators/4414-modified-renko-chart
:happy:
 
Last edited:

doss186

Well-Known Member
Dear friend doss186,
try this modified code :happy:
Code:
function FillRun( dir, num, changedir )
{
global i, j, modified, dt, RKC, RKO, RKD, RKH, RKL;
for ( x = 1; x <= num AND j < BarCount - 1; x++ )
{
j++;
extra = ( changedir AND x == 1 ) * dir;
RKC[ j ] = RKC[ j - 1 ] + dir + extra;
RKO[ j ] = RKC[ j - 1 ] /*+ IIf( modified, 0, extra )*/;
RKD[ j ] = dt[ i ];
RKH[ j ] = High[ i - 1 ];
RKL[ j ] = Low[ i - 1 ];
}
}
SetChartOptions(1,chartShowArrows,chartShowDates,0);
Brick = Param( "Brick Size", 10, 1, 100, 1 );
r = 2;
CF = ceil( C / Brick );
CR = floor( C / Brick );
j = 0;
RKC[j] = CF[0];
RKO[j] = CF[0] + 1;
RKD = 0;
RKH = 0;
RKL = 0;
dt = DateNum();
dir = -1;
for ( i = 1; i < BarCount - 1; i++ )
{
if ( j >= BarCount )
break;
if ( CF[i] <= RKC[j] - 1 AND dir < 0 )
{
num = RKC[j] - CF[i];
FillRun( dir, num, False );
}
else
if ( CR[i] >= RKC[j] + r AND dir < 0 )
{
num = CR[i] - RKC[j];
dir = 1;
FillRun( dir, num, True );
}
else
if ( CR[i] >= RKC[j] + 1 AND dir > 0 ) // Continue Up
{
num = CR[i] - RKC[j];
FillRun( dir, num, False );
}
else
if ( CF[i] <= RKC[j] - r AND dir > 0 ) // Change up to down
{
num = RKC[j] - CF[i];
dir = -1;
FillRun( dir, num, True );
}
}
delta =  BarCount - 1 - j;
RKC = Ref( RKC, -delta );
RKO = Ref( RKO, -delta );
RKD = Ref( RKD, -delta );
RKH = Ref( RKH, -delta );
RKL = Ref( RKL, -delta );
C = RKC * Brick;
O = RKO * Brick;
H =  Max( C, O );
L = Min( C, O );
Plot( C, "", IIf( C > O, colorGreen, colorRed ), styleCandle );
xnum = floor( RKD / 1000 );
XChange = IIf( xnum != Ref( xnum, -1 ), 1, Null );
MonthNames = "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec";
Title = Name() + StrFormat( " - 20%06.0f", RKD % 1000000 ) + " - Renko Chart : Last Value = " + RKC * Brick + " H: " + RKH + " L: " + RKL + ", Brick Size = " + Brick;
original code is available here :D
http://www.wisestocktrader.com/indicators/4414-modified-renko-chart
:happy:
You are a great soul, satisfying every request of people. Thanks a lot. Keep the sprit young boy. I called you young boy because of that 1998 and I'm 1970.
 

cloudTrader

Well-Known Member
Dear friend doss186,
try this modified code :happy:
Code:
function FillRun( dir, num, changedir )
{
global i, j, modified, dt, RKC, RKO, RKD, RKH, RKL;
for ( x = 1; x <= num AND j < BarCount - 1; x++ )
{
j++;
extra = ( changedir AND x == 1 ) * dir;
RKC[ j ] = RKC[ j - 1 ] + dir + extra;
RKO[ j ] = RKC[ j - 1 ] /*+ IIf( modified, 0, extra )*/;
RKD[ j ] = dt[ i ];
RKH[ j ] = High[ i - 1 ];
RKL[ j ] = Low[ i - 1 ];
}
}
SetChartOptions(1,chartShowArrows,chartShowDates,0);
Brick = Param( "Brick Size", 10, 1, 100, 1 );
r = 2;
CF = ceil( C / Brick );
CR = floor( C / Brick );
j = 0;
RKC[j] = CF[0];
RKO[j] = CF[0] + 1;
RKD = 0;
RKH = 0;
RKL = 0;
dt = DateNum();
dir = -1;
for ( i = 1; i < BarCount - 1; i++ )
{
if ( j >= BarCount )
break;
if ( CF[i] <= RKC[j] - 1 AND dir < 0 )
{
num = RKC[j] - CF[i];
FillRun( dir, num, False );
}
else
if ( CR[i] >= RKC[j] + r AND dir < 0 )
{
num = CR[i] - RKC[j];
dir = 1;
FillRun( dir, num, True );
}
else
if ( CR[i] >= RKC[j] + 1 AND dir > 0 ) // Continue Up
{
num = CR[i] - RKC[j];
FillRun( dir, num, False );
}
else
if ( CF[i] <= RKC[j] - r AND dir > 0 ) // Change up to down
{
num = RKC[j] - CF[i];
dir = -1;
FillRun( dir, num, True );
}
}
delta =  BarCount - 1 - j;
RKC = Ref( RKC, -delta );
RKO = Ref( RKO, -delta );
RKD = Ref( RKD, -delta );
RKH = Ref( RKH, -delta );
RKL = Ref( RKL, -delta );
C = RKC * Brick;
O = RKO * Brick;
H =  Max( C, O );
L = Min( C, O );
Plot( C, "", IIf( C > O, colorGreen, colorRed ), styleCandle );
xnum = floor( RKD / 1000 );
XChange = IIf( xnum != Ref( xnum, -1 ), 1, Null );
MonthNames = "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec";
Title = Name() + StrFormat( " - 20%06.0f", RKD % 1000000 ) + " - Renko Chart : Last Value = " + RKC * Brick + " H: " + RKH + " L: " + RKL + ", Brick Size = " + Brick;
original code is available here :D
http://www.wisestocktrader.com/indicators/4414-modified-renko-chart
:happy:
Hi Romeo ,

I really appreciate your humble attitude of reaching out to others for help. Kudos. :)

Regarding this Renko AFL , I tried it with Bar Replay function as I have tick data for Banknifty Futures. The Bar replay acts like a Real Time environment with 1 second timestamp. So I thought that the current bar will move as per price change just like it happens with the conventional Candlestick. What I found that the Bar was not moving and getting printed after the level breach of 10 bricks.

So I wanted to inquire that is this AFL meant to function like that or you modified it for the current bar moving as per price change like the Ninja Trader Renko functions ?

Thanks.
 

Similar threads