ADX compreso tra due valori

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #48032 quote
    R05
    Participant
    Veteran

    Buonasera a tutti, vorrei chiedervi, gentilmente, come posso fare per dire al sistema di prendere solo quelle operazioni che hanno come ADX un valore compreso tra 25 e 40.

    Vi ringrazio.

    #48034 quote
    R05
    Participant
    Veteran

    Anzi gentilissimi forse ho risolto. Dovrebbe essere il seguente codice:

    ca1 = ADX[14] >= 25
    ca2 = ADX[14] <= 40

    Dovrebbe darmi solo i valori compresi tra 25 e 40 e non tutti quelli sopra 25 e tutti quelli sotto 40. Dal backtest sembra corretto.

    #48035 quote
    robertogozzi
    Moderator
    Master
    AdxVal = ADX[14]
    IF AdxVal < 20 OR AdxVal > 35 THEN ....

    Roberto

    #48038 quote
    R05
    Participant
    Veteran

    Ok grazie

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

ADX compreso tra due valori


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
R05 @r05 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by R05
8 years, 4 months ago.

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