Percentuale di ritracciamento da open.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #240263 quote
    Mauro 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ález
    Moderator
    Master

    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.

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ález
1 year, 2 months ago.

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