TS TREND FOLLOWING

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #160792 quote
    Gaspare
    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
    robertogozzi
    Moderator
    Master

    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.

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 robertogozzi
5 years ago.

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