SuperTrend and Commodity Channel Index Strategy

SuperTrend and Commodity Channel Index Strategy

Hi all,

It’s my first contribution.

Simple code that works with “Supertrend” and “Commodity Channel Index” Indicators.

Run on: standard Crude Oil contract (Oil US Crude)
Timeframe: 30 Min
Period from 21-Dic-2015 to 22-Oct-2016: best result with this parameters
Spread: 3

I didn’t try with real money but considering that it works with only 2 indicators, I think it should be no problem.
Never close deal on zero bar.
For verify and testing it, you can activate Supertrend on the price chart.
Try to activate Reinvest Capital with RISK Param=44 on the same period.
Adjust parameters for different Timeframe or others products.
Some suggestions for improving the code?

 

 

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 • 10/23/2016 #

    Thank you Dany to contribute to our prorealtime code library 🙂
    Even since 200k bars testing were not so great than the last year result, strategy isn’t so bad at all. An intraday strategy is hard to achieved on commodities and you have made it with current indicators with their default parameters. Well done. I’m looking forward for your next contribution.  

  2. Philippo • 10/23/2016 #

    Thanks, have downloaded and will check it tomorrow

  3. Philippo • 10/23/2016 #

    Supertrend looks really cool! I will post something once it’s worth consideration. Thanks Dany 🙂

  4. Philippo • 10/23/2016 #

    Hi, a couple of suggestions:
    use CROSS OVER and CROSS UNDER with CCI, this way you catch the beginning of the move and can open up to the possibility of cumulate orders
    once surfing the super trend, find new entry points like when the CCI makes V shape, again with cumulation.
     
    cheers

    • DANY • 10/23/2016 #

      Thanks for your suggestions Philippo. Sounds good…. I’ll try as soon as possibile.
      Have a nice day.

  5. demoz • 10/23/2016 #

    Did anyone test this live?

    • DANY • 10/23/2016 #

      I did it on demo account; it’s too dangerous for mea and I can not resist psychologically  …., but it’s perfectly aligned to backtest, so you can try it in order to verify the performance in the last 40 days … 🙂 About 5.000 euros
      Have a nice gain !

    • demoz • 10/23/2016 #

      How can a demo account be dangerous?
      Did you have it run live (on a demo account for example) for let’s say, a month or so?

    • DANY • 10/23/2016 #

      Yes, I mean that I tried on a demo account for 2 months and it had work fine, like the BackTesting, but there are a lot of consecutive losses.If you start in a wrong way and you take immediately all the consecutive losses, it’s hard to recover them. So, I suggest you to consider this thing and to test well before take a decision to use it.
      It does work very well with an high volatility.
      Ciao.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Doctrading
8 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
8 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
8 years ago
Adaptive CCI
Adaptive CCI
4
Indicators
Stef Thanks @Saud. Enjoyed the article.
Newbie I've tried to modify this so I can display on 1min chart with the 5 min chart variant as a s...
Nicolas No, just create 2 different indicators in this case, one with the timeframe(5 minutes) and o...
Nicolas
8 years ago
Sniper T3-CCI
Sniper T3-CCI
0
Indicators
Nicolas Why not, but a stock screener for what conditions?
Dimi.A Whenever the yellow CCI line goes "outside" the bands. Which will alert us of possible rever...
Nicolas ok why not, please add a request in the appropriate forum section, many thanks.

Top