Need Syntax for Floating Line Array at Current Price of the candle.

pkgmtnl

Well-Known Member
#1
Dear Friends,
I need Syntax for continuous Plotting of Floating horizontal line (dash or firm) at Current Price at candle.
Can any1 help?
 

casoni

Well-Known Member
#2
Dear Friends,
I need Syntax for continuous Plotting of Floating horizontal line (dash or firm) at Current Price at candle.
Can any1 help?
Like this !!
ex=Param("extend",2,0,5,1);
Plot(LastValue(C),"",2,1,0,0,ex);
 

pkgmtnl

Well-Known Member
#3
Like this !!
ex=Param("extend",2,0,5,1);
Plot(LastValue(C),"",2,1,0,0,ex);
Thnx SIr,
But, it did not work.
I actually intend to plot a horizontal line at Current Price, which shall move (up & down) with movement of price.
It would be like Horizontal bar of Cross Hair.
Or
Price Line similar to that happen in MT4 for Current price.

Thanks.
 
Last edited:

sr114

Well-Known Member
#4
Thnx SIr,
But, it did not work.
I actually intend to plot a horizontal line at Current Price, which shall move (up & down) with movement of price.
It would be like Horizontal bar of Cross Hair.
Or
Price Line similar to that happen in MT4 for Current price.

Thanks.
use this for ur requirement

Code:
_SECTION_BEGIN("Price Line"); 

PriceLineColor=ParamColor("PriceLineColor",ColorRGB(82,82,82));
PriceLevel = ParamField("PriceField", field = 3 ); 

Daysback = Param("Bars Back",25,10,90,1); 
FirstBar = BarCount - DaysBack; 
YY = IIf(BarIndex() >= Firstbar,EndValue(PriceLevel),Null); 

Plot(YY,"",PriceLineColor,ParamStyle("LineStyle",styleLine|styleNoTitle|styleNoLabel|styleThick,maskAll)); 

bC = BarCount;
lineSL = yy;
StartXre = LastValue( ValueWhen( yy, 1 ) );
EndYre = LastValue( ValueWhen( yy, yy ) );
PlotText( "" + NumToStr(EndYre,1.2) , bc + 1, EndYre , colorWhite, colorBlack);

 _SECTION_END();
rgds
 

pkgmtnl

Well-Known Member
#5
use this for ur requirement

Code:
_SECTION_BEGIN("Price Line"); 

PriceLineColor=ParamColor("PriceLineColor",ColorRGB(82,82,82));
PriceLevel = ParamField("PriceField", field = 3 ); 

Daysback = Param("Bars Back",25,10,90,1); 
FirstBar = BarCount - DaysBack; 
YY = IIf(BarIndex() >= Firstbar,EndValue(PriceLevel),Null); 

Plot(YY,"",PriceLineColor,ParamStyle("LineStyle",styleLine|styleNoTitle|styleNoLabel|styleThick,maskAll)); 

bC = BarCount;
lineSL = yy;
StartXre = LastValue( ValueWhen( yy, 1 ) );
EndYre = LastValue( ValueWhen( yy, yy ) );
PlotText( "" + NumToStr(EndYre,1.2) , bc + 1, EndYre , colorWhite, colorBlack);

 _SECTION_END();
rgds
Thanks Very Much Sir,
It worked....
 

KelvinHand

Well-Known Member
#8
Thankyou sir.
I understand you must be playing with codes quite well.
Can u advise on some Auto Trading Plugin, I tried KAKA's one but some how could not be through.

Thanks.
I'm not the best person to advice you the Auto Trade Plug-In, as i don't do or use autotrade.

Best person who i think of for you to consult is Rajandran R (from http://www.wisestocktrader.com/indicators/4490-autotrade-control-for-nest-now :: [email protected]) of marketcalls.

PHP:
Does Marketcalls Provides Assistance for Autotrading?
Currently we are not providing assisting clients doing in autotrading segment. If you have any autotrading queries you can mail to [email protected]


From his website: Looklike a lot parts may affect your execution, your datafeed, data format, proper setup of your amibroker to auto-trade...etc.
See whether below help you.

* Understanding Autotrading in NSE Future markets
http://www.marketcalls.in/algo-trading/understanding-autotrading-nse-future-markets.html

* Video Tutorial On How to Extract Data from Nest Trading Terminal to Amibroker using Nest RTD
http://www.marketcalls.in/amibroker/nestrtd-nestnow-amibroker-feeder-open-source-gpl.html


Good Luck to you.
 
Last edited:

Similar threads