Heiken Ashi trading strategy

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #4614 quote
    Nicolas
    Keymaster
    Master

    Coded by request for Bob after his comment on this screener in the Library : http://www.prorealcode.com/prorealtime-market-screeners/bullish-and-bearish-heiken-ashi-screener/

    A simple automatic trading strategy with Heiken Ashi candles tests : GO LONG if a new green candle is detected after a previous red one and vice-versa. Please find code attached to this post topic.

    [attachment file=57758]

    Heiken-Ashi-trading-strategy.itf heiken-ashi-trading-strategy.png heiken-ashi-trading-strategy.png
    #4618 quote
    bobtrader
    Participant
    New

    Thanks Nicolas, I’ll start testing this now and let you know how it performs.

    Would you expect this to perform best on longer or shorter timeframes (I was thinking of using it on 5 min setting during regular trading hours of Dow 30)?

    Thanks again,

    Bob

    #4624 quote
    Nicolas
    Keymaster
    Master

    Of course it will be more effective on higher timeframe with good market moves. Heiken Ashi candles can also be “smoothed” with moving average values instead of OHLC candlestick values, that way you can be more longer in trade, let the profit run and can also filter the market noises.

    By the way, this is a simple strategy, I think you’ll find a lot of ways to improve it.

    #57751 quote
    Shitforbrains
    Participant
    Average

    Hi Nicolas,

    Beginners question here. Is it possible to add a 10 pip take profit to this code? So that if any open trade reaches 10 pips profit, the trade automatically closes.

    Thanks!

    #57760 quote
    Nicolas
    Keymaster
    Master

    Yes it’s possible, just add this line at the end of the code:

    set target pprofit 10
    #57761 quote
    Shitforbrains
    Participant
    Average

    Thanks a lot!

    #58804 quote
    Shitforbrains
    Participant
    Average

    Another question if you have the time. I’ve been looking for a code to determine the trading hours, for example: I only want the system to run between 08.45 – 10.00 (CET). Do you know what the code would look like for that?

    Thanks!

    #58842 quote
    GraHal
    Participant
    Master
    #58859 quote
    Shitforbrains
    Participant
    Average

    Ah, thanks GraHal!

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.

Heiken Ashi trading strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Nicolas @nicolas Keymaster
Summary

This topic contains 8 replies,
has 4 voices, and was last updated by Shitforbrains
8 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/30/2016
Status: Active
Attachments: 2 files
Logo Logo
Loading...