Simple Coding Help - No Promise.

Hello ,
Yes , Here's the example [ 2 scripts]
.NSEI And NIFTY_F1
you can change script from parameter window also and you can add as many as you like depends on your [ pc / laptop ] screen size :)

tickerA = ParamStr( "TickerA", ".NSEI" );
tickerB = ParamStr( "TickerB", "NIFTY_F1" );


PlotForeign( tickerA, "\nChart of "+tickerA,ParamColor( "Price ColorA", colorWhite ), styleLine |styleOwnScale|styleNoLabel);
PlotForeign( tickerB, "\nChart of "+tickerB,ParamColor( "Price ColorB", colorGreen ), styleLine |styleOwnScale|styleNoLabel);

hope this is what you were looking for
I think one can simple use spread indicator on ami for the same
 
Hi you are right as both pic are not mine... anyway that not the point here
as you said to rewrite the code like EE = EMA ((c+o)/2,q);
can you help me on other line ie.,
Plot (EE,"EE",IIf(EE <= Ref(EE,-1),colorYellow,colorRed), styleThick);

so that one can get the line as shown in the second pic above..:thumb:
can some seniors too try help me out here on this???:confused::confused:
 

casoni

Well-Known Member
I think one can simple use spread indicator on ami for the same
Spead indicator shows
Difference (Symbol1-Symbol2) or Ratio (Symbol1/Symbol2)

but friendforevers0007 was asking to plot 2 diff securities ," READ his message
 

cellclinic

Well-Known Member
Could any one help me in finding below mentioned afl's or helping me to create them ???

Hello Friends ...

Can i any one help me finding INSIDE OUTSIDE BAR & PIN BAR AFL ???
 
Can anybody please confirm whether the below code is correct.

Code:
Buy=Cross(Close,Study( "RE" ));
Sell = Cross( Study( "SU" ), Close);
Short=Sell;
Cover=Buy;

PlotShapes( Buy * shapeUpTriangle + Sell * shapeDownTriangle, IIf( Buy, colorGreen, colorRed ), Offset = -1);

The above afl is not plotting / giving buy/sell signal when price crosses the study line.
Can anyone please help me to correct the afl?
 

amitrandive

Well-Known Member
The above afl is not plotting / giving buy/sell signal when price crosses the study line.
Can anyone please help me to correct the afl?
Try this , but first define the line from Right Click on the line and parameters to SU or RE

Code:
_SECTION_BEGIN("Price");
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", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();

_SECTION_BEGIN("Sound alarm on Trendline Break ");
////////////////////////////// Sound alarm on Trendline Break /////////////////////////////////////

BuySignal = Cross( Close, Study( "SU", GetChartID() ) );
SellSignal = Cross( Study( "SU", GetChartID() ), Close );
ShortSignal = Cross( Study( "RE", GetChartID() ), Close );
CoverSignal = Cross( Close, Study( "RE", GetChartID() ) );
PlotShapes( BuySignal* shapeUpTriangle + SellSignal * shapeDownTriangle, IIf( BuySignal, colorGreen, colorRed ), Offset = -1);
//AlertIf( BuySignal, "SOUND C:\\Windows\\Media\\Ding.wav", "Trendlinebreak alert on "+FullName() + "SheetNumber" + SheetNum, 1, 1+2+4+8, 20 ); //syntax for buy //signal
AlertIf( BuySignal, "SOUND C:\\Windows\\Media\\Ding.wav", "Trendlinebreak alert on "+FullName() , 1, 1+2, 10000 ); //Buy
AlertIf( SellSignal, "SOUND C:\\Windows\\Media\\Ding.wav", "Trendlinebreak alert on "+FullName() , 2, 1+2, 10000 ); //Sell
AlertIf( ShortSignal, "SOUND C:\\Windows\\Media\\Ding.wav", "Trendlinebreak alert on "+FullName() , 3, 1+2, 10000 ); //Short
AlertIf( Coversignal, "SOUND C:\\Windows\\Media\\Ding.wav", "Trendlinebreak alert on "+FullName() , 4, 1+2, 10000 ); //Cover
_SECTION_END();
 
hello to all


need an afl which plots with dotted horizontal lines the high and low of the day till 3pm ( for commodities)



i will see the ieod charts manually for at least 6 months so i need this to see charts manually
can a param option be introduced to select time from 3pm to time of my choice


rgds
 

Similar threads