ordre d'achat et vente avec indicateur Pivot reversal strategy

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #138678 quote
    mohamedmohamed
    Participant
    Senior

    bonjour,

    je voudrai tester l’indicateur Pivot reversal strategy en automatique sur le time frame 1h, j ‘aurai besoin de votre aide pour coder ou écrire l’ordre d’achat et de vente.

    Je vous remercie d’avance pour votre aide

    cordialement

    //PRC_Pivot Reversal Strategy | indicator
    //14.02.2019
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    
    // --- settings
    leftp = 4
    rightp = 2
    // --- end of settings
    
    period=max(leftp,rightp)
    hh = highest[period](high)
    ll = lowest[period](low)
    
    if hh<>hh[1] then
    hhbar=barindex
    hhprice=high
    endif
    if ll<>ll[1] then
    llbar=barindex
    llprice=low
    endif
    
    if barindex-hhbar=rightp then
    drawtext("•",hhbar,hhprice) coloured(000,000,000)//168
    top=hhprice
    endif
    if barindex-llbar=rightp then
    drawtext("•",llbar,llprice) coloured(000,000,000)//168
    bottom=llprice
    endif
    
    atr=averagetruerange[AVTR]
    if high crosses over top and lastsig<=0 then
    drawarrowup(barindex,low-atr/2) coloured(30,144,255)
    lastsig=1
    endif
    if low crosses under bottom and lastsig>=0 then
    drawarrowdown(barindex,high+atr/2) coloured(255,48,48)
    lastsig=-1
    endif
    
    RETURN
    #138753 quote
    NicolasNicolas
    Keymaster
    Legend
    #138767 quote
    mohamedmohamed
    Participant
    Senior

    Je te remercie

    cdt

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

ordre d'achat et vente avec indicateur Pivot reversal strategy


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
mohamed @mohamed Participant
Summary

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

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 07/07/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...