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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34433 quote
    MaxMax
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    AlessioAlessio
    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.
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

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 AlessioAlessio
9 years, 3 months ago.

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