Percentuale di ritracciamento da open.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #240263 quote
    Mauro MMauro M
    Participant
    New

    Non riesco a codificare questa idea. Vorrei entrare short con queste condizioni.

    1 che ieri la candela deve essere positiva

    2  che la candela di ieri chiuda dal suo  massimo meno open ad una percentuale <= del 60%. Quindi il range non deve essere massimo meno minimo ma quello indicato( massimo – open).

    3 entrata ad open di oggi

    Chiaramente viceversa per operazioni long.

    Grazie

    #240288 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Ciao. Ecco qua (è necessario aggiungere come uscire)

    c1=close>open
    distmax=high-open
    distclose=close-open
    c2=distclose<0.6*distmax
    
    if not onmarket and c1 and c2 then
    sellshort 1 contract at market
    endif
    robertogozzi thanked this post
Viewing 2 posts - 1 through 2 (of 2 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

Percentuale di ritracciamento da open.


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Mauro M @mauro-m Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Iván GonzálezIván González
1 year, 10 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 11/12/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...