Deutsch

INDIZES

30.12.07 11:51
Re: INDIZES
 
  blackalex69 завсегдатай
в ответ Dagi-Dag 30.12.07 01:24, Последний раз изменено 30.12.07 11:52 (blackalex69)
В ответ на:
вот большой индекатор зашёл, но стрлочек и этих крестиков нету...

Чтобы стрелки появились, тебе надо вот этот код загнать. Только не в индикаторы а в ProBackTest

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// StochRSI Indikator
// p - Periode in Tagen ( 7 ist fuer DAX optimal )
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
p = 7
Value1 = RSI[p](Close) - Lowest[p](RSI[p](Close))
Value2 = Highest[p](RSI[p](Close)) - Lowest[p](RSI[p](Close))
IF Value2 <> 0 THEN
Value3 = Value1 / Value2
ENDIF
// StochRSI-Wert
storsi = ExponentialAverage[p](Value3)*100
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Awesome Oscillator AO (wir fuer die Trend-Ermittlung benoetigt )
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
AO=Average[5](MedianPrice)-Average[34](MedianPrice)
// Regel long
regel1 = storsi[1] <= 40 and storsi > storsi[1] and storsi[1] < storsi[2] and AO > 0
// Regel short
regel2 = storsi[1] >=70 and storsi < storsi[1] and storsi[1] > storsi[2] and AO < 0
ausstieg = 50
if not longonmarket and regel1 then
buy 100%capital at market thisbaronclose
stoplosslong = low * 0.997
endif
if longonmarket then
if storsi crosses over 70 then
sell 100%capital at market thisbaronclose
elsif close - entryquote >= ausstieg then
sell 100%capital at market thisbaronclose
elsif high crosses under stoplosslong then
sell 100%capital at market thisbaronclose
endif
endif
if not shortonmarket and regel2 then
sellshort 100%capital at market thisbaronclose
stoplossshort = high * 1.003
endif
if shortonmarket then
if storsi crosses under 30 then
exitshort 100%capital at market thisbaronclose
elsif entryquote - close >= ausstieg then
exitshort 100%capital at market thisbaronclose
elsif high crosses over stoplossshort then
exitshort 100%capital at market thisbaronclose
endif
endif

 

Перейти на