Participez aux échanges de la file de discussion concernant ADIDAS AG
Annonce
Réduire
Aucune annonce.
Ads
Réduire
Adidas ag
Réduire
X
-
STPMT sur eSignal
Bonjour,
Je voulais savoir si il est possible de programmer la formule du STPMT (celle du manuel Trader les futures d'EricLefort) sur eSignal.
Si oui je suis interessé pour savoir comment la mettre en place.
D'avance merci.
Xavier
Commentaire
-
Bonjour xavier,
Il s'agit d'une moyenne pondérée de 4 stochastiques, donc amha très simple à programmer si tu trouves quelqu'un qui connait ne serait-ce qu'un tout petit peu le language utilisé par e-signal.
N'existe-t-il pas un forum US sur la programmation e-signal où tu pourrais poser la question?
Commentaire
-
Bonjour Anaphrais,
Clair que ça ne doit pas etre trop complique, je n'ai pas encore consulter les forums eSignal esperant trouve ici qqun qui aurait déjà mis en place le STPMT sur eSignal.
Je vois qu'il est dispo sur PRT en standard maintenant, bravo.
Je suis off market qques jours, donc un peu de temps pour parcourir en détail ton manuel.
Xavier
Commentaire
-
Bonjour ,
un exemple de stpmt sur esignal .
Il y a un forum en francais sur le site esignal.
bon courage .
function preMain () {
setStudyTitle ("STPMT");
setCursorLabelName("STPMT",0);
setCursorLabelName("moyenne STPMT",1);
setCursorLabelName("STO(14,9)",2);
setDefaultBarFgColor(Color.blue,0);
setDefaultBarFgColor(Color.red,1);
setDefaultBarFgColor(Color.black,2);
addBand(25,PS_SOLID,1,Color.red);
addBand(75,PS_SOLID,1,Color.red);
}
var study1 = null;
var study2 = null;
var study3 = null;
var study4 = null;
var study5 = null;
var nKsmoothing = 1;
var nKLength1 = 5;
var nDLength1 = 3;
var nKLength2 = 14;
var nDLength2 = 3;
var nKLength3 = 45;
var nDLength3 = 14;
var nKLength4 = 75;
var nDLength4 = 20;
var nKLength5 = 14;
var nDLength5 = 9;
var nArray = new Array ();
function MMA (stpmt ) {
var nBarState = getBarState();
var mstpmt = 0;
var dSum = 0;
if (nBarState == BARSTATE_NEWBAR) for (i=0;i < 8;++i) nArray = nArray[i+1];
nArray = stpmt ;
for (i=0;i < 9;++i) dSum += nArray;
mstpmt = dSum / 9;
return mstpmt
}
function main() {
if (study1 == null) study1 = new StochStudy(nKLength1,nKsmoothing,nDLength1);
if (study2 == null) study2 = new StochStudy(nKLength2,nKsmoothing,nDLength2);
if (study3 == null) study3 = new StochStudy(nKLength3,nKsmoothing,nDLength3);
if (study4 == null) study4 = new StochStudy(nKLength4,nKsmoothing,nDLength4);
if (study5 == null) study5 = new StochStudy(nKLength5,nKsmoothing,nDLength5);
var vD1 = study1.getValue (StochStudy.SLOW);
if (vD1 == null) return;
var vD2 = study2.getValue (StochStudy.SLOW);
if (vD2 == null) return;
var vD3 = study3.getValue (StochStudy.SLOW);
if (vD3 == null) return;
var vD4 = study4.getValue (StochStudy.SLOW);
if (vD4 == null) return;
var vD5 = study5.getValue (StochStudy.SLOW);
if (vD5 == null) return;
var stpmt = ((4.1 * vD1) + (2.5 * vD2) + vD3 + (4 * vD4)) / 11.6
mstpmt = MMA (stpmt);
return new Array(stpmt,mstpmt,vD5);
}
Commentaire
Commentaire