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

 All Forums
 Problemi con "Insider 3000 versione 3"
 Problemi col linguaggio di programmazione
 tradurre
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

luca71-4
Nuovo Utente

34 Posts

Posted - 04 August 2003 :  11:05:47  Show Profile  Reply with Quote
OR C<Ref(C-ATR(6)*1.2,-1)

SupportoTecnico
Forum Admin

1261 Posts

Posted - 04 August 2003 :  13:14:11  Show Profile  Reply with Quote
In Insider3000 non c'? per ora l'indicatore (ATR => Average True Range). Ovviamente lo puoi programmare tu ed utilizzarlo in altre parti del programma.

Quindi, fermo restando l'aver programmato il tuo indicatore ATR il pezzo di formula da te riportata si traduce nel seguente modo:

Or (Close < (Close( - 1) - Value(ATR(6), - 1) * 1.2))

Go to Top of Page

luca71-4
Nuovo Utente

34 Posts

Posted - 04 August 2003 :  15:53:11  Show Profile  Reply with Quote
Allora non ci sono ho bisogno anche di programmare l'indicatore mi aiutate?


Go to Top of Page

SupportoTecnico
Forum Admin

1261 Posts

Posted - 04 August 2003 :  19:21:25  Show Profile  Reply with Quote
Stiamo studiando il codice. Vedremo di pubblicarlo nei prossimi giorni

Go to Top of Page

SupportoTecnico
Forum Admin

1261 Posts

Posted - 05 August 2003 :  20:36:26  Show Profile  Reply with Quote
E' stato pubblicato nel nostro sito a questo indirizzo il codice per costruire l'Average True Range (ATR):

http://www.insider3000.com/insider/tastudio/default.asp?type=I


Go to Top of Page

luca71-4
Nuovo Utente

34 Posts

Posted - 06 August 2003 :  10:30:30  Show Profile  Reply with Quote
Complimenti per la tempestivit? nel creare l'indicatore l'ho inserito al volo .
Ora come lo integro nel TS ?

Opzioni comuni

Option OptInc(0.01 , 0.2 , 0.01)
Option OptMaxInc(0.01 , 0.3 , 0.01)
Dim pdPriceLong As Numeric

< Entra in acquisto >

Function Main()
If MoveAv(Close,1,"s")>MoveAv(Close,13,"s")Then
pdPriceLong=Close
Price Close
Return Sar(OptInc,OptMaxInc)<Low
Else
Endif
Return False
End Function

< Chiudi Posizioni In acquisto >

Function Main()
Dim bRes As Boolean
bRes = (MoveAv(Close, 1,"s")<MoveAv(Close, 13,"s"))
If bRes=False Then
bRes = (Close <=pdPriceLong - pdPriceLong * 0.04)
Endif
Return dRes
EndFunction

.........................................

Ora mi servirebbe aggiungere in chiudi posizioni in acquisto la funzione che in metastock sarebbe :
Or C<REF(C-ATR(5)*1.2 , -1)

GRAZIE





Go to Top of Page

SupportoTecnico
Forum Admin

1261 Posts

Posted - 06 August 2003 :  10:53:40  Show Profile  Reply with Quote
Era gi? scritta nei post precedenti:

Or (Close < (Close( - 1) - Value(MyATR(5), - 1) * 1.2))


Ovviamente se non hai chiamato l'indicatore MyATR scrivi al posto di MyATR nella formula qui sopra il vero nome che gli hai dato.


Quindi, ad esempio, potrebbe essere:

Function Main()
Dim bRes As Boolean
bRes = (MoveAv(Close, 1,"s")<MoveAv(Close, 13,"s"))
If bRes=False Then
bRes = (Close <=pdPriceLong - pdPriceLong * 0.04)
Endif
If bRes = False Then
bRes = (Close < (Close( - 1) - Value(MyATR(5), - 1) * 1.2))
EndIf
Return dRes
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