Selezionare il più alto dei valori sugli ultimi 10 periodi"?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34433 quote
    Max
    Participant
    Average

    Qui di seguito una domanda inviata a ProRealTime :

    Come posso programmare con ProOrder la conzione : ” Selezionare il più alto dei valori sugli ultimi 10 periodi”?

    E un esempio di risposta :

    // Explanation: Highest[<x periods>](<variable>)
    
    highestRange = Highest[10](Range)
    If highestRange = Range then
       // Your code
    Endif
    #34460 quote
    robertogozzi
    Moderator
    Master

    Con RANGE selezioni quanto è gande una candela (corpo + ombre).

    Se vuoi il prezzo più alto devi usare HIGH, per il più basso LOW.

    Es.:

    highestPrice = Highest[10](high)
    If highestPrice = high then
       // Your code
    Endif
    #38230 quote
    Alessio
    Participant
    Senior

    Gentilmente mi sapete dire dove sbaglio. vorrei comprare quando il prezzo scende di 50 punti da massimo

    if not onmarket highestprice = Highest[10](high)-close>=50*pointsize
    If highestPrice = high then
    buy 1 contract at market
    endif

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

Selezionare il più alto dei valori sugli ultimi 10 periodi"?


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Max @max Participant
Summary

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

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