No Trend Strategy

No Trend Strategy

This strategy uses the “TrendNoTrend indicator” (see in the library).
Once the “No Trend” phase has been identified (beta = 0), swing trading will take place: BUY MIN and SELL MAX. To do this you can use, for example, a SmoothedStochastic.
A simple SuperTrend [3,10] follows the position.
It seems to have positive results on different indices and different time frames, after optimization of the observation period.

 

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Nicolas • 09/18/2018 #

    Thank you for sharing this strategy. Although I think the optimization should be done with Walk Forward to test its robustness, I salute the work and the idea. This strategy deserves to attract more attention than in a topic “lost” in the forum, it has its place in the library 🙂
    PS: I changed your illustration picture with another one (it was too small 🙂 )

  2. Teddy Coronak • 09/18/2018 #

    Merci pour cette stratégie. comment remplacez les variables par les valeurs fixes ?
    à quel endroit dois je remplacer ? c’est le pro order qui me le demande.

    • FULVIO09 • 09/18/2018 #

      At line 15 establish the value of “period”. For example: AA = 180

  3. FULVIO09 • 09/18/2018 #

    Sorry for lines 39 and 62 we need to set the ABS value:
    39 ST = ABS ((LOWEST [10] (LOW)) – OPENBUY) / PXT
    62 ST = ABS (OPENSELL- (HIGHEST [10] (HIGH))) / PXT

  4. Teddy Coronak • 09/18/2018 #

    Bonjour merci BEAUCOUP !!!
    cela fonctionne!!!

  5. Dymjohn • 09/18/2018 #

    Good piece of work. I’ve tried trading in live but always falls over suggesting I haven’t loaded enough bars. I changed code to set DEFPARAM to 2000 and still suggests not enough bars on the 10 minute time frame. Any ideas as to what might be wrong? The period of linear regression is set to 240.

    • FULVIO09 • 09/18/2018 #

      I ran the strategy on differents instruments and timeframes and I never encountered problems. Sorry but I have no idea how to solve your problem.

  6. POLLO • 09/18/2018 #

    ciao Fulvio continua a dirmi di sostituire le variabili. Come posso risolvere?
    scusa ma sono ignorante in materia

    • FULVIO09 • 09/18/2018 #

      Con il file notrendstrategy.itf che hai scaricato puoi eseguire un probacktest sullo strumento finanziario e timeframe che preferisci e trovare il valore della variabile “period” che ti dà la migliore performance.
      Se vuoi avviare l’autotrading proorder sullo strumento e time frame prescelto devi fissare alla linea 15 il valore di period (ad es. AA = 180) e cliccare sull’icona a forma di chiave inglese in alto a destra “ottimizzazione variabili” cancellare le variabili da ottimizzare (clicca sulla x rossa).

  7. kuroobi • 09/18/2018 #

    FULVIO09 • 25 days ago #

    At line 15 establish the value of “period”. For example: AA = 180

    avatar
    FULVIO09 • 25 days ago #

    Sorry for lines 39 and 62 we need to set the ABS value:
    39 ST = ABS ((LOWEST [10] (LOW)) – OPENBUY) / PXT
    62 ST = ABS (OPENSELL- (HIGHEST [10] (HIGH))) / PXT

    Même après cette manipulation , ça ne fonctionne pas pour moi .
    Pouvez vous expliquer en détail ?

    • FULVIO09 • 09/18/2018 #

      Avec le file notrendstrategy.itf, vous pouvez exécuter un probacktest sur l’instrument financier et la période que vous préférez et trouver la valeur de la variable “period” qui vous offre les meilleures performances.
      Si vous souhaitez démarrer le processus de négociation automatique sur l’instrument et la période choisie, vous devez fixer la valeur de period à la ligne 15 (par exemple AA = 180) et cliquer sur l’icône en forme de clé en haut à droite “optimisation variables” effacer la variable “period” à optimiser (cliquez sur la x rouge).

    • Johann • 09/18/2018 #

      Hi @FULVI09,
      I understand the instructions however I’m not too sure how to determine the “period” that generate the best performance, you mentioned 180 in the previous post, could you kindly explain where you got it from and what method you use to determine the “period” that generate the best performance.
      Thanks for your contribution and looking forward to read your response.
      Regards,
      Johann.

  8. kuroobi • 09/18/2018 #

    Parfait , merci beaucoup .

  9. Juan Salas • 09/18/2018 #

    Hi FULVIO09,

    Nice piece of work. It seems to work very well. Does only work for INDEXES?? Have you tried it on commodities or FOREX???
    Many thanks,

  10. Player8520 • 09/18/2018 #

    Hello,

    It doesn’t work with me either.
    However, I changed AA to 180 on line 15, added the abs functions to the 2 lines indicated 39 and 62, preloaded 2000 bars and deleted the variable to be optimized.

    Has anyone found the fault since?

    Thank you.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+10 more likes

Related users ' posts
MikeGC I don't know if you have used the variables a and b to optimise the parameters for the Super...
gianpiero75 I have not optimized, I multiplied the parameters for 6 (5,8), to use them on the 4  hoursTF...
bertrandpinoy bonjour Mike j utilise TrendChaser V2.0 et quand il prend position cela ne programme pas le ...
Doctrading Hello,  The strategy should be improved, no doubt. But it was just one of my ideas, which h...
ALEALE Yes Nicolas is very difficult, macro economic data can destroy any work!!  
styrke depends which.. I personally think that it's much more easier to trade on XBTUSD, try to co...
David Thanks for the explanation Nicolas.
freecat1899 Hello, I wanted to create a percent ADR based on this indicator, so I wrote this code that I...
revstrat At first glance, I see this mistake. You shouldn't average the highs and the lows. You shoul...
eisi If i switch between different Markets, the Backgroundcolour will appear where it should not...
datageek How can I get alerts on colour change?
NAMBO40 Hello, I would like to add a 25 period SMA moving average. It's possible?
s00071609 Hi, could you please suggest, what this codes gives, lowest[b](rsi[a]) -- just trying to us...
Nicolas lowest[b](rsi[a]) returns the lowest values of the RSI of "a" periods, over the last "b" per...
s00071609 Hi, what would be the code to get the price for last bullish DTOSC cross over. I am looking ...
Doctrading I forgot to write at the beginning :  a = 50 b = 50 These are intermediate levels Sorry
DerPat Thank you. This one could be an aid in my current research on stochastics.
Pelayo it is possible that in line 12 we should put seuilinf=-b, thaks for all
GraHal Ooops got that excited I sent that last one twice! ha (and can't delete it, sorry) I got it...
Eric n = 3  dont forget to allow 3 contract in proorder
UkCoopDownUnder Tried EURUSD GMT and GMT -1, as far back as I can go, Nov 2018 on 15mn Tf, 22% loss
avatar
Anonymous We try to enter before that the market actually turn. We try to anticipate it. In which way ...
dwgfx David-1984 are you saying that you've already factored in the spread within the code?  If y...
avatar
Anonymous no, not in teh code... only in the backtest. The entry is only between 8/22 so the spread fo...
Doctrading It works on ProRealTime CFD, but backtest begins since May 2014
alex224 Hola Andres, buen trabajo. Algun problema por usar la estrategia con acciones en time frame ...
Andres Hola Alex, no lo he probado en otros timeframes, pero con esta configuración específica no c...
Doctrading
9 years ago
gianlox What markets did you feel ? Thanks..
wanjpt Doctrading, could you code an alert when the supertrend touches price for various timeframes...
JSTAR PRODUCTIONS Hi there DocTrading, I have run this Screener and it only seems to screem When trend line to...
Henry
9 years ago
SuperTrend
SuperTrend
4
Indicators
Nicolas Exit and relaunch PRT should fix this behavior.
verdi55 Thank you. After a restart, it is somewhat faster; however, it still takes about 3 minutes t...
Nicolas Good! thanks for sharing your own code! Please do so with other ones if you think you can im...
Nicolas
9 years ago
lokbuscas Or in weekly??
Nicolas I don't know, you should make your own studies.
lokbuscas Ok thanks Nico
Nicolas
9 years ago
trabucaire Hello, what does it mean the 20 and 40 number on this code ? Thank you !
robertogozzi I modified it to make parameters customizable and to Draw a Grey candlestick when a range is...
Nicolas
9 years ago
Vinks_o_7 great, thanks Nicolas !
Vinks_o_7 argh...still nothing even with 10 000 bars on daily or hourly basis...
Vinks_o_7 ok now : had to refresh the indicator.

Top