Insider 3000 - Forums
Insider 3000 - Forums
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help
 Aiuti, consigli, dubbi ...
 crazione dell' RVI
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

stoploss
Nuovo Utente

26 Posts

Posted - 26 March 2006 :  17:30:20  Show Profile  Reply with Quote
Vorrei creare un nuovo indicatore, il Relative Vigor Index (RVI):

RVI = (ciusura - apertura) / (max - min)

è possibile?
qualcuno sa aiutarmi? (sono estremamente ignorante in materia)
grazie

SupportoTecnico
Forum Admin

1261 Posts

Posted - 26 March 2006 :  17:38:24  Show Profile  Reply with Quote
Certo che si può utilizzando il linguaggio di programmazione di Insider 3000.. e direi che la cosa è proprio banale!

Devi costruire un indicatore utente. Per farlo devi utilizzare la finestra di "Analisi" => "Gestione indicatori utente"

Il codice per costruirlo è:


Function Main()
Return (Close - Open) / (High - Low)
EndFunction

Go to Top of Page

stoploss
Nuovo Utente

26 Posts

Posted - 27 March 2006 :  12:40:01  Show Profile  Reply with Quote
chiedo scusa, ma mi sono sbagliato. Avrei bisogno di sapere come scrivere il seguente indicatore:

RVI = (valore odierno + 2*valore[1] +2*valore[2] +valore[3])/6

dove
valore odierno = (chiusura-apertura)/(max-min)
[1] = (chiusura-apertura)/(max-min) della barra precedente
[2] = (chiusura-apertura)/(max-min) di 2 barre prima
[3] = (chiusura-apertura)/(max-min) di 3 " "

spero tu mi possa aiutare.
grazie mille
Go to Top of Page

SupportoTecnico
Forum Admin

1261 Posts

Posted - 27 March 2006 :  14:27:33  Show Profile  Reply with Quote

Anche questo è molto semplice:


Function Main()
Dim dValoreOdierno As Numeric
Dim dValore1 As Numeric
Dim dValore2 As Numeric
Dim dValore3 As Numeric

dValoreOdierno = (Close - Open) / (High - Low)
dValore1 = (Close(-1) - Open(-1)) / (High(-1) - Low(-1))
dValore2 = (Close(-2) - Open(-2)) / (High(-2) - Low(-2))
dValore3 = (Close(-3) - Open(-3)) / (High(-3) - Low(-3))

Return (dValoreOdierno + 2 * dValore1 + 2 * dValore2 + dValore3) / 6

EndFunction
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Insider 3000 - Forums © Copyright 2003-2016 Tradersoft s.r.l. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07