Insider 3000 - Forums
Insider 3000 - Forums
Home | Profile | Active Topics | Members | Search | FAQ
 All Forums
 Problemi con "Insider 3000 versione 3"
 Problemi col linguaggio di programmazione
 tradurre

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert Email Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   
   

T O P I C    R E V I E W
luca71-4 Posted - 04 August 2003 : 11:05:47
OR C<Ref(C-ATR(6)*1.2,-1)

6   L A T E S T    R E P L I E S    (Newest First)
SupportoTecnico Posted - 06 August 2003 : 10:53:40
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




luca71-4 Posted - 06 August 2003 : 10:30:30
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





SupportoTecnico Posted - 05 August 2003 : 20:36:26
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


SupportoTecnico Posted - 04 August 2003 : 19:21:25
Stiamo studiando il codice. Vedremo di pubblicarlo nei prossimi giorni

luca71-4 Posted - 04 August 2003 : 15:53:11
Allora non ci sono ho bisogno anche di programmare l'indicatore mi aiutate?


SupportoTecnico Posted - 04 August 2003 : 13:14:11
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))


Insider 3000 - Forums © Copyright 2003-2016 Tradersoft s.r.l. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07