Simple Coding Help - No Promise.

Please help me acheive this.This is a very very simple requirement. Whenever we hover the mouse on a candle.the data box pops up for a few seconds.It shows Date,time,open,high,low,close.I want Volume to appear here along with those things. I know this box is called "Price Tool tip box"
or Price Interpretation in new version. I would appreciate if you can give the code for both old way and new way to make vol information appearing that box when we hover the mouse over candles.
 
Hi Happy Ji

Need a favor. I want to get mode instead of getting buy sell signals.
1601030105628.png
Like this.

_SECTION_BEGIN("JNSAR");

Period = Param("Length",5,5,100,1);

// JNSAR = (5 days HEma+5Days CEma+5Days LEma)/15

isum = (Sum(EMA(High,Period),Period) + Sum(EMA(Low,Period),period) + Sum(EMA(Close,Period),period));

jnsar = round(isum/15);

Buy = Cross(Close, jnsar);
Sell =Cross(jnsar,Close);

color = IIf(C>jnsar,colorCustom13,colorBlack);

Plot(jnsar,"JNSAR",color,styleDashed|styleNoLine|styleNoLabel);

AddColumn(Buy, "Buy", 1.0);
AddColumn(Sell, "Sell",1.0);


_SECTION_END();
 
Hi Happy Ji

Need a favor. I want to get mode instead of getting buy sell signals.
View attachment 44336 Like this.

_SECTION_BEGIN("JNSAR");

Period = Param("Length",5,5,100,1);

// JNSAR = (5 days HEma+5Days CEma+5Days LEma)/15

isum = (Sum(EMA(High,Period),Period) + Sum(EMA(Low,Period),period) + Sum(EMA(Close,Period),period));

jnsar = round(isum/15);

Buy = Cross(Close, jnsar);
Sell =Cross(jnsar,Close);

color = IIf(C>jnsar,colorCustom13,colorBlack);

Plot(jnsar,"JNSAR",color,styleDashed|styleNoLine|styleNoLabel);

AddColumn(Buy, "Buy", 1.0);
AddColumn(Sell, "Sell",1.0);


_SECTION_END();
I made some modifications and got it.Thank youn all
 
Hi,
I need a scanner to scan stocks that are outside previous day range. I want to run this scanner at 9.30- 9.45 am.

Also is it possible to have a auto running scanner to scan all the F&O stocks every 15min and alert when any of them breaks the previous day high or low.

Thanks
Pallavi
 

Romeo1998

Well-Known Member
Hi,
I need a scanner to scan stocks that are outside previous day range. I want to run this scanner at 9.30- 9.45 am.

Also is it possible to have a auto running scanner to scan all the F&O stocks every 15min and alert when any of them breaks the previous day high or low.

Thanks
Pallavi
this will be helpful :)
Code:
Filter = L< TimeFrameGetPrice("L",inDaily,-1) OR H> TimeFrameGetPrice("H",inDaily,-1);
AddColumn(C,"Close",1.2);

in analysis settings, apply to ur watchlist or all symbols.... and range must be 1 recent bar.. n explore...
1601896698292.png


to auto repeat scan/explore, check auto-repeat scan/explore, enter AR interval n then click on explore :)
1601896905117.png


good luck :)
 
this will be helpful :)
Code:
Filter = L< TimeFrameGetPrice("L",inDaily,-1) OR H> TimeFrameGetPrice("H",inDaily,-1);
AddColumn(C,"Close",1.2);

in analysis settings, apply to ur watchlist or all symbols.... and range must be 1 recent bar.. n explore...
View attachment 44430

to auto repeat scan/explore, check auto-repeat scan/explore, enter AR interval n then click on explore :)
View attachment 44431

good luck :)
Thanks a lot, Will check tomorrow in live market.
 
Hello happy ji..

I need help in exploration...

When am Exploring in Live market... Scripts not coming in realtime as time shown in Exploration..(coming late)

Need help so scripts get explore on time...

Thanx you in advance


Formula for AFL below


_SECTION_BEGIN("EMA");

Range1=Optimize("range1",13,1,20,1);
Range2=Optimize("range2",34,1,125,1);

Buy=Cover = Cross((EMA(Close,range1)),(EMA(Close,range2)));
Sell =Short= Cross(EMA(Close,range2),(EMA(Close,range1)));
//Short = Sell;



Buy = Cross((EMA(Close,range1)),(EMA(Close,range2)));
Sell = Cross(EMA(Close,range2),(EMA(Close,range1)));
Short=Cover=0;

AlertIf( Buy, "SOUND C:\\Windows\\Media\\notify.wav", "Audio alert", 2 );
AlertIf( Sell, "SOUND C:\\Windows\\Media\\tada.wav", "Audio alert", 2 );

// plot expanded average

Plot(EMA( Close,range1), "MV1", colorBlue );
Plot(EMA( Close,range2), "MV2", colorRed );

// plot arrows
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorBlue, colorRed ), 0, IIf( Buy, Low, High ) );

_SECTION_END();

Filter =1;
Filter = Buy OR Sell;
AddColumn(Buy,"Buy",1);
AddColumn(Sell,"Sell",1);


_SECTION_BEGIN("Price1");
SetChartOptions(0,chartShowArrows|chartShowDates);
_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", colorYellow ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();

_SECTION_BEGIN("RSI Divergence");
//------------------------------------------------------------------------------
//
// Formula Name: RSI Divergence
// Level: medium
// Flags: indicator
// Formula URL:
// Details URL:
//
//------------------------------------------------------------------------------
//
// + scanner
//
//------------------------------------------------------------------------------

/*---------------------------------------------------
RSI Divergence
--------------------------------------------------------*/

GraphXSpace=7;
n=Param("% Reverse ",20,0,100,1);

Buy=Sell=0;
Var = Zig(RSI(), n);
t= Trough(RSI(), n, 1);
p= Peak(RSI(), n, 1);
x[0] =Var[0];
price[0] = C[0];
j=0;

// bearish divergence
for ( i=0; i<BarCount; i++)
{
if(Var == p)
{

j++;
x[j] =Var;
price[j] =C;
if(x[j] <x[j-1] && price[j-1]< price[j])
Sell =1;
}
}

// bullish divergence
for ( i=0; i<BarCount; i++)
{
if(Var == t)
{
j++;
x[j] =Var;
price[j] =C;
if(x[j] >x[j-1] && price[j]<price[j-1])
Buy =1;
}
}

Plot(Var, "", 39);
PlotShapes ( IIf(Sell, shapeSmallCircle, shapeNone), colorRed, 0 , Var,0);
PlotShapes( IIf(Buy, shapeSmallCircle, shapeNone), colorBrightGreen, 0, Var,0);

Title ="RSI Divergence" ;
_SECTION_END();

_SECTION_BEGIN("TEMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 200, 1, 10 );
Plot( TEMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

Filter =1;
Filter = Buy OR Sell;
AddColumn(Buy,"Buy",1);
AddColumn(Sell,"Sell",1);

Buy = Open == Low;

Sell = Open == High;

Noise = High > Close;

AddColumn(Open,"Open");
AddColumn(Close,"Close");
AddColumn(High,"High");
AddColumn(Low,"Low");

Filter= (Buy OR Sell) AND Noise;

AddColumn(IIf(Buy,Open,Null)," open=low ", 6.2,1.2,colorGreen);
AddColumn(IIf(Sell,Open,Null)," open= high ",6.2,1.2,colorOrange);


Q = Param( "% Change", 2, 0.1, 10, 0.1 );
Z = Zig( C , q ) ;
HH = ( ( Z < Ref( Z, -1 ) AND Ref( Z, -1 ) > Ref( Z, -2 ) ) AND (Peak( z, q, 1 ) > Peak( Z, q, 2 ) ) );
LH = ( ( Z < Ref( Z, -1 ) AND Ref( Z, -1 ) > Ref( Z, -2 ) ) AND (Peak( Z, q, 1 ) < Peak( Z, q, 2 ) ) );
HL = ( ( Z > Ref( Z, -1 ) AND Ref( Z, -1 ) < Ref( Z, -2 ) ) AND (Trough( Z, q, 1 ) > Trough( Z, q, 2 ) ) );
LL = ( ( Z > Ref( Z, -1 ) AND Ref( Z, -1 ) < Ref( Z, -2 ) ) AND (Trough( Z, q, 1 ) < Trough( Z, q, 2 ) ) );
GraphXSpace = 5;
dist = 0.5 * ATR( 20 );

for ( i = 0; i < BarCount; i++ )
{
if ( HH )
PlotText( "HH", i, H[ i ] + dist, colorRed );

if ( LH )
PlotText( "LH", i, H[ i ] + dist, colorRed );

if ( HL )
PlotText( "HL", i, L[ i ] - dist, colorBrightGreen );

if ( LL )
PlotText( "LL", i, L[ i ] - dist, colorBrightGreen );

}

Filter=HH OR HL OR LH OR LL;
AddColumn(RSI(2),"RSI",1.2);
AddColumn(Close,"PRICE",1.2);
AddColumn(HH,"HH");
AddColumn(LH,"LH");
AddColumn(HL,"HL");
AddColumn(LL,"LL");
AddColumn(V,"volume",1.0);
AddColumn (ADX(), "ADX", 1.2 );


1601982809362.png

1601982809362.png
 
Anyone has any idea on how to sort data in between amibroker arrays?

I have code that has few pivot type arrays which are computed at beginning of day based on previous day highs and lows.

On monday, if I were to order the array from lowest to highest based on their values for the day, they list may be A1, A2, A3, A4, A5, A6, A7, A8
On tuesday, if I were to order the array from lowest to highest based on their values for the day, they list may be A1, A2, A3, A6, A7, A5, A4, A8

What I mean to see A1 will always be lowest and A8 will always be highest but remaning 6 arrays can appear in any sequence.

Does amibroker have any facility to sort them in-situ?
 

Similar threads