ExtraTrend Automated algo

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #175000 quote
    murre87
    Participant
    Senior

    Hi.
    I am a beginner, and have just bought my first indicator.
    I would like to ask for help creating a strategy-file based on two indicators .

    The indicators: 

    1. Extratrend – https://market.prorealcode.com/product/extratrend-an-indicator-for-technical-traders-and-chartists/
    2. Screener pour afficher les débuts de tendance de l’indicateur ExtraTrend conforme Ichimoku – https://www.prorealcode.com/topic/extratrend-exemples-de-codage-screeners-et-programmation-personnalisee/page/3/#post-171211
    //****************************************************************
    //Screener pour afficher les débuts de tendance de l'indicateur ExtraTrend conforme Ichimoku
    //****************************************************************
    //Conditions ExtraTrend hausse
    myTrend, ignored, myExpansion = CALL "ExtraTrend"[0, 0, 0, 0, 0](close)
     
    uptrend = myTrend <> myExpansion //ExtraTrend bande bleue
     
    newUpTrend = uptrend and not uptrend[1] //nouvelle tendance haussière (bande bleue)
     
    if newUpTrend then
    signal = 1
    else
    signal = 0
    endif
     
    //Conditions de volume
    conditionVolume = Average[20](volume) > 10000
     
    //Conditions Ichimoku
    TENKAN     = (highest[9](high) + lowest[9](low))/2
    KIJUN      = (highest[26](high) + lowest[26](low))/2
    LS         = close
    SSA        = (tenkan[26]+kijun[26])/2
    SSB        = (highest[52](high[26])+lowest[52](low[26]))/2
     
    conditionSSASSB  = close > SSA AND close > SSB
    conditionKIJUN   = close > KIJUN
    conditionsTENKAN = close > TENKAN
    conditionsLS     = LS > KIJUN[26] AND LS > high[26] //LS au-dessus des prix et de la Kijun
    //Pour être encore plus restrictif avec LS au-dessus du nuage : LS > SSA[26] AND LS > SSB[26]
     
    //Lancement screener
    screener[newUpTrend AND conditionVolume AND conditionSSASSB AND conditionKIJUN AND conditionsTENKAN AND conditionsLS] (signal as "Trend")

    Thanks in advance. Maybe Procoders like robertogozzi grahhl or Nicolas can help me?

    #175003 quote
    robertogozzi
    Moderator
    Master

    There you go (of course I couldn’t check it as I don’t have that indicator):

    //Conditions ExtraTrend hausse
    myTrend, ignored, myExpansion = CALL "ExtraTrend"[0, 0, 0, 0, 0](close)
     
    uptrend = myTrend <> myExpansion //ExtraTrend bande bleue
     
    newUpTrend = uptrend and not uptrend[1] //nouvelle tendance haussière (bande bleue)
     
    if newUpTrend then
    signal = 1
    else
    signal = 0
    endif
     
    //Conditions de volume
    conditionVolume = Average[20](volume) > 10000
     
    //Conditions Ichimoku
    TENKAN     = (highest[9](high) + lowest[9](low))/2
    KIJUN      = (highest[26](high) + lowest[26](low))/2
    LS         = close
    SSA        = (tenkan[26]+kijun[26])/2
    SSB        = (highest[52](high[26])+lowest[52](low[26]))/2
     
    conditionSSASSB  = close > SSA AND close > SSB
    conditionKIJUN   = close > KIJUN
    conditionsTENKAN = close > TENKAN
    conditionsLS     = LS > KIJUN[26] AND LS > high[26] //LS au-dessus des prix et de la Kijun
    //Pour être encore plus restrictif avec LS au-dessus du nuage : LS > SSA[26] AND LS > SSB[26]
     
    //Long Conditions
    CondL = newUpTrend AND conditionVolume AND conditionSSASSB AND conditionKIJUN AND conditionsTENKAN AND conditionsLS
    IF CondL THEN
       BUY 1 CONTRACT AT MARKET
    ENDIF
    SET STOP   pLOSS 100
    SET TARGET pPROFIT 300
    #175009 quote
    murre87
    Participant
    Senior

    This forum is amazing. Thanks alot robertogozzi

    I think its strange that backtest say no orders på equity-curve does. Look att the image

    1.jpg 1.jpg
    #175011 quote
    snucke
    Participant
    Veteran

    Because the trade has not been closed yet

    murre87 and robertogozzi thanked this post
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

ExtraTrend Automated algo


General Trading: Market Analysis & Manual Trading

New Reply
Author
author-avatar
murre87 @murre87 Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by snucke
4 years, 6 months ago.

Topic Details
Forum: General Trading: Market Analysis & Manual Trading
Language: English
Started: 08/10/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...