COSTRUZIONE INDICATORE PER ANALISI CICLICA CON VISUAL TRADER (3 lettori)

NAKATA

Nuovo forumer
Solospread e' possibile che tu possa postare il ts di ----TS VOLUMI------.Grazie per ieri e per tutto quello che riuscite a realizzare. Complimenti.
 

solospread

Forumer storico
Che strano a me da' ingresso ieri alle 10.35 da 17460, mentre a te da ingresso poco prima delle 16 da 17430, chissà come mai.
:rolleyes:
Con chi hai l'abbonamento? Io ho Directa e abbiamo verificato che Intesa Trade ha un minuto di differenza sui dati. può darsi sia quello il motivo visto che la differenza di prezzo di entrata è minima ma l'orario è molto diverso.Adesso posto il listato che ho usato cosi ci togliamo il dubbio. ormai ne avrò memorizzati una cinquantina e magari ho fatto confusione, ma non credo.
Codice:
//TS RANGE SOLOSPREAD 5 minuti
var:miavar(0),val1,val2,r(0),RR,mioatr1,RR1,RR2,zona1,RR3,RR4,RR6,zona2,RR5,RR7,mioatr3,DDD;
Var:miavar(0),AA,BB,CC,zona1,DD,EE,FF,CB,Vol1,mioval, WW,ENT,mioatr1,mioatr2,ent1;
mioatr1 = rsi(C,14,s);
mioatr2 = rsi(C,50,s);
 ENT = C> Mov(C,5,E) AND C>Mov(C,300,E) AND Crossover(mioatr1,mioatr2) AND Mov(V,30,E)> Mov(V,240,E) AND Mov(C,30,E)> Mov(C,240,E) AND V> Mov(V,5,E);
 ENT1 = C<Mov(C,5,E) AND C<Mov(C,300,E) AND Crossover(mioatr2,mioatr1) AND Mov(V,30,E)< Mov(V,240,E) AND Mov(C,30,E)< Mov(C,240,E) AND V< Mov(V,5,E);
AA = HHV(H,5)+30;
BB = LLV(L,5)+30;
CC = HHV(H,20);
DD = LLV(L,20);
EE =CC-BB;
FF= AA-DD;
if ENT = true then
DDD = 100;
else
DDD= 10;
endif;
zona1=CreateViewport(300,true,true);
plotChart(EE,zona1,blue,solid,1);  	
plotChart(FF,zona1,red,solid,1);
//************************************************************************
if  ent = true then enterlong(Nextbar,atopen);endif;
if  ENT1 = true then entershort(nextbar,atopen);endif;

mioatr3 = atr(C,21);
 RR = (r[1]+r[2]);
 RR1 =(H-l)*V[1]/V*r*3000;
 RR3 = LLV(L,10);
 RR4 = HHV(H,10);
 RR5 =HHV(C,10);
 RR7 =LLV(O,10);
 //*****************************************************************************
 if RR1[1] > 10 and C > C[1] and C[1]< C[2] then
   RR2 = rr1+50;
   else
   RR2 = 0;
   endif;
  if RR1[1] > 10 and C < C[1] and C[1] > C[2] then
  RR2 = RR1-50;
  else
  RR2 = 0;
  endif;
  if (H-C) > (C-L)and B = true and R > mioatr3*2  then  //MOTORE DEL TS
  RR6 = 100;
  else
  RR6 = 0;
  endif;
  if (H-C) <(C-L)and W = TRUE and B[1] = true and R > mioatr3*1.5 then
  RR7 = 100;
  else
  RR7 = 0;
  endif;

//****************************************************************************************
if RR6[2] > 50 and C > C[1] and L > L[1] or H > H[1] then entershort(Nextbar,atopen);endif;
if RR6[2] > 70 and C < C[1] and H < H[1] or L < L[1] then enterlong (Nextbar,atopen);endif;
if RR7[1] > 70 and C > c[1] and RR2[1] > 70 and C > c[2] then entershort(NextBar,AtOpen); endif;
if RR7[1] > 70 and C < c[1] and RR2[1] > 70 and C < c[2] then enterlong(NextBar,AtOpen); endif;
installstoploss(INPERC,1.5,"STOP");
//****************************************************************************************
 

anonimus08

Forumer storico
Con chi hai l'abbonamento? Io ho Directa e abbiamo verificato che Intesa Trade ha un minuto di differenza sui dati. può darsi sia quello il motivo visto che la differenza di prezzo di entrata è minima ma l'orario è molto diverso.Adesso posto il listato che ho usato cosi ci togliamo il dubbio. ormai ne avrò memorizzati una cinquantina e magari ho fatto confusione, ma non credo.
Codice:
//TS RANGE SOLOSPREAD 5 minuti
var:miavar(0),val1,val2,r(0),RR,mioatr1,RR1,RR2,zona1,RR3,RR4,RR6,zona2,RR5,RR7,mioatr3,DDD;
Var:miavar(0),AA,BB,CC,zona1,DD,EE,FF,CB,Vol1,mioval, WW,ENT,mioatr1,mioatr2,ent1;
mioatr1 = rsi(C,14,s);
mioatr2 = rsi(C,50,s);
 ENT = C> Mov(C,5,E) AND C>Mov(C,300,E) AND Crossover(mioatr1,mioatr2) AND Mov(V,30,E)> Mov(V,240,E) AND Mov(C,30,E)> Mov(C,240,E) AND V> Mov(V,5,E);
 ENT1 = C<Mov(C,5,E) AND C<Mov(C,300,E) AND Crossover(mioatr2,mioatr1) AND Mov(V,30,E)< Mov(V,240,E) AND Mov(C,30,E)< Mov(C,240,E) AND V< Mov(V,5,E);
AA = HHV(H,5)+30;
BB = LLV(L,5)+30;
CC = HHV(H,20);
DD = LLV(L,20);
EE =CC-BB;
FF= AA-DD;
if ENT = true then
DDD = 100;
else
DDD= 10;
endif;
zona1=CreateViewport(300,true,true);
plotChart(EE,zona1,blue,solid,1);      
plotChart(FF,zona1,red,solid,1);
//************************************************************************
if  ent = true then enterlong(Nextbar,atopen);endif;
if  ENT1 = true then entershort(nextbar,atopen);endif;
 
mioatr3 = atr(C,21);
 RR = (r[1]+r[2]);
 RR1 =(H-l)*V[1]/V*r*3000;
 RR3 = LLV(L,10);
 RR4 = HHV(H,10);
 RR5 =HHV(C,10);
 RR7 =LLV(O,10);
 //*****************************************************************************
 if RR1[1] > 10 and C > C[1] and C[1]< C[2] then
   RR2 = rr1+50;
   else
   RR2 = 0;
   endif;
  if RR1[1] > 10 and C < C[1] and C[1] > C[2] then
  RR2 = RR1-50;
  else
  RR2 = 0;
  endif;
  if (H-C) > (C-L)and B = true and R > mioatr3*2  then  //MOTORE DEL TS
  RR6 = 100;
  else
  RR6 = 0;
  endif;
  if (H-C) <(C-L)and W = TRUE and B[1] = true and R > mioatr3*1.5 then
  RR7 = 100;
  else
  RR7 = 0;
  endif;
 
//****************************************************************************************
if RR6[2] > 50 and C > C[1] and L > L[1] or H > H[1] then entershort(Nextbar,atopen);endif;
if RR6[2] > 70 and C < C[1] and H < H[1] or L < L[1] then enterlong (Nextbar,atopen);endif;
if RR7[1] > 70 and C > c[1] and RR2[1] > 70 and C > c[2] then entershort(NextBar,AtOpen); endif;
if RR7[1] > 70 and C < c[1] and RR2[1] > 70 and C < c[2] then enterlong(NextBar,AtOpen); endif;
installstoploss(INPERC,1.5,"STOP");
//****************************************************************************************

Difatti ecco la differenza, quello che avevi pubblicato era il Range 5m senza la modifica, l'ho ripreso e inserito, sarebbe quello di pag. 216.

//TS RANGE SOLOSPREAD 5 minutivar:miavar(0),val1,val2,r(0),RR,mioatr1,RR1,RR2,zona1,RR3,RR4,RR6,zona2,RR5,RR7;mioatr1 = atr(C,21); RR = (r[1]+r[2]); RR1 =(H-l)*V[1]/V*r*3000; RR3 = LLV(L,10); RR4 = HHV(H,10); RR5 =HHV(C,10); RR7 =LLV(O,10); //***************************************************************************** if RR1[1] > 10 and C > C[1] and C[1]< C[2] then RR2 = rr1+50; else RR2 = 0; endif; if RR1[1] > 10 and C < C[1] and C[1] > C[2] then RR2 = RR1-50; else RR2 = 0; endif; if (H-C) > (C-L)and B = true and R > mioatr1*2 then //MOTORE DEL TS RR6 = 100; else RR6 = 0; endif; if (H-C) <(C-L)and W = TRUE and B[1] = true and R > mioatr1*1.5 then RR7 = 100; else RR7 = 0; endif;//****************************************************************************************if RR6[2] > 50 and C > C[1] and L > L[1] or H > H[1] then entershort(Nextbar,atopen);endif;if RR6[2] > 70 and C < C[1] and H < H[1] or L < L[1] then enterlong (Nextbar,atopen);endif;if RR7[1] > 70 and C > c[1] and RR2[1] > 70 and C > c[2] then entershort(NextBar,AtOpen); endif;if RR7[1] > 70 and C < c[1] and RR2[1] > 70 and C < c[2] then enterlong(NextBar,AtOpen); endif;installstoploss(INPERC,1.5,"STOP");//****************************************************************************************zona1=CreateViewport(300,true,true);zona2 = CreateViewport(300,true,true);plotchart(RR7,zona1,red,solid,1);plotchart(RR6,zona2,blue,solid,1);//plotchart(RR7,zona2,red,solid,1);__________________
 

Eurofighter

Nuovo forumer
ciao solospread...ciao a tutti...
volevo chiederti se ti mando un ts via pm ci dai un'occhiata..io lo uso principalmente su azionario...fammi sapere te ne sarei grato...
 

Users who are viewing this thread

Alto