TS TREND FOLLOWING

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

    Salve, ciao Roberto

    si puo’ avere un sistema che entra long alla rottura del massimo della candela precedente con ordine stop +1 pip

    e al contrario entra short alla rottura del minimo precedente con ordine stop -1 pip.

    per chiudere la posizione si inserisce stop e target, oppure fai tu che di certo avrai una idea migliore

    Grazie

    #160798 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    DEFPARAM CumulateOrders = false
    IF Not OnMarket THEN
       BUY       1 Contract AT high[1] + (1 * pipsize) STOP
       SELLSHORT 1 Contract AT low[1]  - (1 * pipsize) STOP
       SET TARGET pPROFIT 100
       SET STOP   pLOSS   50
    ENDIF
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

TS TREND FOLLOWING


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, 7 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 02/09/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...