IDNR4 + HULL
- This topic has 3 replies, 2 voices, and was last updated 1 year ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
Forums › ProRealTime forum Italiano › Supporto ProOrder › IDNR4 + HULL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
DEFPARAM CumulateOrders = false Defparam Flatbefore=080000 Defparam Flatafter=220000 ONCE M = 115.0 ONCE A = 31.0 MyAdx = Adx [ 14 ] >= A HullMA = average[ M ,7](close) Bullish = HullMA > HullMA[1] and HULLMA[1] < HULLMA[2] Bearish = HullMA < HullMA[1] and HULLMA[1] > HULLMA[2] ID = high<high[1] and low>low[1] NR4 = range<range[1] and range<range[2] and range<range[3] if ID and NR4 then count = 0 hh = highest[4](high) ll = lowest[4](low) endif If StrategyProfit <> StrategyProfit[1] then count = count + 1 endif if count < 3 then If not LongOnMarket And Bullish And MyAdx THEN BUY 1 SHARE AT hh STOP Elsif not ShortOnMarket And Bearish And MyAdx THEN SELLSHORT 1 SHARE AT ll STOP Endif SET TARGET PROFIT hh - ll set stop ploss 550 endif |
Salve, ciao Roberto
puoi verificare la validita’ e la logica del TS
su WALL STREET 200k a 2 minuti?
Grazie
Mi sembra sovraottimizzato. Sul 2 minuti pè oerfetto, ma già passando al 15 minuti la performance cala drasticamente (anche se leggermento positivo). Sul grafico ad 1 ora è perdente.
Seppure ogni timeframe ha necessità di opportune ottimizzazioni, non dovrebbero esservi differenze così grandi.
Inoltre ha uno stop loss molto alto.
Ciao Roberto
vorrei una HULLMA con uno spostamento di 2 periodi,
come sarebbe modificato il codice relativo
Dove c’è HullMA metti HullMA[2] r dove c’è HullMA[2] metti HullMA[3]. Ovviamente non sulla prima riga.