semplificazione

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #95996 quote
    andrea trevisan
    Participant
    Average

    per semplificare un codice tipo : low < low[1] and low < low[2] and low < low[3] posso unirlo in un unico comando?

    es low < low[1] and low[2] and low[3]

    #95998 quote
    robertogozzi
    Moderator
    Master

    È il low più basso degli ultimi 4:

    If low = lowest[4](low) then....
    #96001 quote
    robertogozzi
    Moderator
    Master

    Diverso se tu volessi low < low[1] and low[1] < low[2] and low[2] < low[3], allora potresti scrivere:

    If summation[3](low < low[1]) = 3 then ...

    In ogni caso le condizioni non si possono abbreviare come avresti voluto fare te

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

semplificazione


ProOrder: Trading Automatico & Backtesting

New Reply
Author
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 04/10/2019
Status: Active
Attachments: No files
Logo Logo
Loading...