/********************************
Alexis C. Montenegro © May 2003
*********************************/
/************************************************** ******************************************
This EFS writes the OHLC, Net and Net% values for the current bar at the bottom of the chart.
With intraday intervals the Net and Net% correspond to the Daily values. With all other
intervals they compare the current Close against the prior period of the same interval.
If the current close is higher than the previous, the text will show in blue, if lower in red
if unchanged in dark grey.
The number of decimals shown can be modified through Edit Studies. The default is 2 and can
be changed in Line 30.
The horizontal position of the text can be modified through Edit Studies (increasing the
number moves it to the right and decreasing it to the left). The default is 25 and can be
changed in Line 35.
This script works with all time frames. If used with intraday intervals one must have
getPrevOHLC.efs in the OHLC subfolder of the Formulas folder.
This EFS requires build 571 or higher and is enabled for auto-update (checkVersion)
************************************************** *******************************************/
function preMain() {
setPriceStudy(true);
setStudyTitle("OHLC");
setShowCursorLabel(false)
checkVersion(2,"http://share.esignal.com/ContentRoot/ACM%20Test/Formulas/OHLC-2.efs")
var fp1 = new FunctionParameter("Decimals", FunctionParameter.NUMBER);
fp1.setLowerLimit(0);
fp1.setUpperLimit(6);
fp1.setDefault(2);
var fp2 = new FunctionParameter("Position", FunctionParameter.NUMBER);
fp2.setLowerLimit(0);
fp2.setUpperLimit(50);
fp2.setDefault(25);
}
function main(Decimals,Position) {
if (isIntraday() == true)
var vX = callFunction("/OHLC/getPrevOHLC.efs","main", "Close");
else if (isIntraday() == false)
var vX = close(-1);
var vY = close()-vX;
var vZ = (vY/vX)*100
if (close() > vX)
drawTextRelative(Position, 0, "O: "+open().toFixed(Decimals)+" H: "+high().toFixed(Decimals)+" L: "+low().toFixed(Decimals)+" C: "+close().toFixed(Decimals)+" Net: "+vY.toFixed(Decimals)+" Net%: "+vZ.toFixed(1), Color.blue, null, Text.RELATIVETOLEFT|Text.BOLD|Text.RELATIVETOBOTTO M, "MS Sans Serif", 10, 1);
else if (close() < vX)
drawTextRelative(Position, 0, "O: "+open().toFixed(Decimals)+" H: "+high().toFixed(Decimals)+" L: "+low().toFixed(Decimals)+" C: "+close().toFixed(Decimals)+" Net: "+vY.toFixed(Decimals)+" Net%: "+vZ.toFixed(1), Color.red, null, Text.RELATIVETOLEFT|Text.BOLD|Text.RELATIVETOBOTTO M, "MS Sans Serif", 10, 1);
else if (close() == vX)
drawTextRelative(Position, 0, "O: "+open().toFixed(Decimals)+" H: "+high().toFixed(Decimals)+" L: "+low().toFixed(Decimals)+" C: "+close().toFixed(Decimals)+" Net: "+vY.toFixed(Decimals)+" Net%: "+vZ.toFixed(1), Color.grey, null, Text.RELATIVETOLEFT|Text.BOLD|Text.RELATIVETOBOTTO M, "MS Sans Serif", 10, 1);
return ;
}
A ME INTERESSA SOLAMENTE CHE MI RIPORTI IL VALORE DELLA MEDIA ESPONENZIALE A 20 PERIODI NELL'ULTIMA CANDELA(FRAME 5 MINUTI) (funzione caricata per la ema : c:\esignal\formulas\advanced\mesa software\eMESA1.efs)
CHI E' PRATICO.. A MUOVERSI IN QUESTO LINGUAGGIO DI PROGRAMMAZIONE CHE PER ME E' ARABO ...grazie
Alexis C. Montenegro © May 2003
*********************************/
/************************************************** ******************************************
This EFS writes the OHLC, Net and Net% values for the current bar at the bottom of the chart.
With intraday intervals the Net and Net% correspond to the Daily values. With all other
intervals they compare the current Close against the prior period of the same interval.
If the current close is higher than the previous, the text will show in blue, if lower in red
if unchanged in dark grey.
The number of decimals shown can be modified through Edit Studies. The default is 2 and can
be changed in Line 30.
The horizontal position of the text can be modified through Edit Studies (increasing the
number moves it to the right and decreasing it to the left). The default is 25 and can be
changed in Line 35.
This script works with all time frames. If used with intraday intervals one must have
getPrevOHLC.efs in the OHLC subfolder of the Formulas folder.
This EFS requires build 571 or higher and is enabled for auto-update (checkVersion)
************************************************** *******************************************/
function preMain() {
setPriceStudy(true);
setStudyTitle("OHLC");
setShowCursorLabel(false)
checkVersion(2,"http://share.esignal.com/ContentRoot/ACM%20Test/Formulas/OHLC-2.efs")
var fp1 = new FunctionParameter("Decimals", FunctionParameter.NUMBER);
fp1.setLowerLimit(0);
fp1.setUpperLimit(6);
fp1.setDefault(2);
var fp2 = new FunctionParameter("Position", FunctionParameter.NUMBER);
fp2.setLowerLimit(0);
fp2.setUpperLimit(50);
fp2.setDefault(25);
}
function main(Decimals,Position) {
if (isIntraday() == true)
var vX = callFunction("/OHLC/getPrevOHLC.efs","main", "Close");
else if (isIntraday() == false)
var vX = close(-1);
var vY = close()-vX;
var vZ = (vY/vX)*100
if (close() > vX)
drawTextRelative(Position, 0, "O: "+open().toFixed(Decimals)+" H: "+high().toFixed(Decimals)+" L: "+low().toFixed(Decimals)+" C: "+close().toFixed(Decimals)+" Net: "+vY.toFixed(Decimals)+" Net%: "+vZ.toFixed(1), Color.blue, null, Text.RELATIVETOLEFT|Text.BOLD|Text.RELATIVETOBOTTO M, "MS Sans Serif", 10, 1);
else if (close() < vX)
drawTextRelative(Position, 0, "O: "+open().toFixed(Decimals)+" H: "+high().toFixed(Decimals)+" L: "+low().toFixed(Decimals)+" C: "+close().toFixed(Decimals)+" Net: "+vY.toFixed(Decimals)+" Net%: "+vZ.toFixed(1), Color.red, null, Text.RELATIVETOLEFT|Text.BOLD|Text.RELATIVETOBOTTO M, "MS Sans Serif", 10, 1);
else if (close() == vX)
drawTextRelative(Position, 0, "O: "+open().toFixed(Decimals)+" H: "+high().toFixed(Decimals)+" L: "+low().toFixed(Decimals)+" C: "+close().toFixed(Decimals)+" Net: "+vY.toFixed(Decimals)+" Net%: "+vZ.toFixed(1), Color.grey, null, Text.RELATIVETOLEFT|Text.BOLD|Text.RELATIVETOBOTTO M, "MS Sans Serif", 10, 1);
return ;
}
A ME INTERESSA SOLAMENTE CHE MI RIPORTI IL VALORE DELLA MEDIA ESPONENZIALE A 20 PERIODI NELL'ULTIMA CANDELA(FRAME 5 MINUTI) (funzione caricata per la ema : c:\esignal\formulas\advanced\mesa software\eMESA1.efs)
CHI E' PRATICO.. A MUOVERSI IN QUESTO LINGUAGGIO DI PROGRAMMAZIONE CHE PER ME E' ARABO ...grazie
Comment