STRATEGIA IDNR4

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #153299 quote
    GaspareGaspare
    Participant
    Veteran

    Ciao Roberto, aiuto!!!!

    non capisco perchè la strategia apre solo posizioni long su qualsiasi TF

    e non capisco che variabili posso ottimizzare.

    Autore Nicolas 4 anni fa.

    Potresti aiutarmi?

    Grazie

    Se non chiedo troppo, puoi postare una strategia sul TURTLE SOUP?

    Grazie

    DEFPARAM CumulateOrders = false
    
    ID = high<high[1] and low>low[1]
    rang = range
    NR4 = rang<range[1] and rang<range[2] and rang<range[3]
     
    if ID and NR4 then
    test = 1
    hh = highest[4](high)
    ll = lowest[4](low)
    endif
     
    if test = 1 then
    BUY 1 SHARE AT hh  STOP
    SELL 1 SHARE AT ll  STOP
    endif
     
    if longonmarket then
    SELL AT ll  STOP
    test = 0
    elsif shortonmarket then
    EXITSHORT AT hh  STOP
    test = 0
    endif
    
    #153300 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Per il TURTLE SOUP se cerchi “turtle” troverai varie strategie, indicatori e screener.

    Sostituisci la linea 15 con:

    SELLSHORT 1 SHARE AT ll  STOP
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

STRATEGIA IDNR4


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Gaspare @gaspare Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 12/11/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...