Ordine tramite segnale grafico

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #124674 quote
    biusicbiusic
    Participant
    New

    Ciao Ragazzi,

    Sono nuovo sia del forum che della materia quindi probabilmente sto chiedendo una banalità.

    Vorrei entrare long quando il prezzo supera il massimo di un segnale creatosi in precedenza sul grafico:

    Data una candela “n” la precedente e la successiva devono avere un massimo inferiore

    Trovata la candela n entrare a mercato long quando il prezzo supera il massimo di n, a prescindere che n sia 5 o 10 candele precedenti.

    In caso si formino 2 candele con caratteristiche come “n” considerare solo la più recente in ordine temporale.

    Spero di essere stato chiaro e non aver fatto troppo casino. Allego un immagine.

    Grazie in anticipo Ciao!!!!!

    Picco.png Picco.png
    #124690 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:
    [scode]
    Defparam CumulateOrders = false
    Once Segnale = 0
    Once Entrata = 0
    Segnale = high < high[1] And high[2] < high[1]
    If Segnale = 1 Then
    Entrata = high[1] + 1 * pipsize
    Else
    Segnale = Segnale[1]
    Entrata = Entrata[1]
    Endif
    If Segnale Then
    Buy 1 Contract at Entrata Stop
    Endif
    [/scode]
    (non l’ho provato)

    Nicolas thanked this post
Viewing 2 posts - 1 through 2 (of 2 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

Ordine tramite segnale grafico


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
biusic @biusic Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
6 years, 6 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 04/05/2020
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...