Adapter un code pour ajouter Srtop, limite et time out

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #69545 quote
    deletedaccount180226
    Participant
    New

    BOnjour à tous

    Bon 1er mai!

    Je me permets de solliciter votre aide afin d’adapter le code ci-dessous afin que lorsque j’entre en position:

    J’ai un objectif de +5pips, une limite de 10 et un time-out de 5 minutes. J’ai essayé par moi-même mais ca ne fonctionne pas, je suppose que je dois le faire sur les trois dernieres lignes uniquement mais bon…

    //basic definitions
    conversion=(highest[9](high)+lowest[9](low))/2
    base=(highest[26](high)+lowest[26](low))/2
    //conditions for conversion/base positioning
    c10=conversion > base
    c11=conversion crosses over base
    c12=conversion < base
    c13=conversion crosses under base
    //spanA and spanB future value
    spanA=(conversion+base)/2
    spanB=(highest[52](high)+lowest[52](low))/2
    //spanA and spanB present value
    maxspan=max(spanA[26],spanB[26])
    minspan=min(spanA[26],spanB[26])
    //conditions for future span A and B positioning
    c20=spanA > spanB
    c21=spanA crosses over spanB
    c22=spanA < spanB
    c23=spanA crosses under spanB
    //conditions for present span A and B positioning
    c30=close>maxspan
    c31=close crosses over maxspan
    c32=close<minspan
    c33=close crosses under minspan
    //conditions for lag line positioning
    maxspanlag=max(spanA[52],spanB[52])
    minspanlag=min(spanA[52],spanB[52])
    c40=close>maxspanlag
    c41=close crosses over maxspanlag
    c42=close<minspanlag
    c43=close crosses under minspanlag
     
    clong1=c11 and c20 and c30 and c40
    clong2=c10 and c21 and c30 and c40
    clong3=c10 and c20 and c31 and c40
    clong4=c10 and c20 and c30 and c41
     
    cshort1=c13 and c22 and c32 and c42
    cshort2=c12 and c23 and c32 and c42
    cshort3=c12 and c22 and c33 and c42
    cshort4=c12 and c22 and c32 and c43
     
    long=clong1 or clong2 or clong3 or clong4
    short=cshort1 or cshort2 or cshort3 or cshort4
    
    GRAPH long
    GRAPH short
    buy at -close limit

    Merci par avance à tous

    #69551 quote
    robertogozzi
    Moderator
    Master

    Bonjour, les 3 dernières lignes étaient juste pour répondre à votre autre requête sur ProScreener “comment faire le backtest d’un screener”.

    Ils sont inutiles (surtout la dernière ligne) pour une stratégie.

    Je suis désolé je ne peux pas vous aider parce que je n’ai jamais utilisé Ichimoku et je ne connais pas bien la langue (j’utilise le traducteur Google). J’avais répondu à votre question sur ProScreener juste parce qu’elle était très courte et rapide.

    Quelqu’un d’autre peut certainement vous aider mieux que moi.

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

Adapter un code pour ajouter Srtop, limite et time out


ProOrder : Trading Automatique & Backtests

New Reply
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
7 years, 10 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 05/01/2018
Status: Active
Attachments: No files
Logo Logo
Loading...