stop loss sul massimo o sul minimo della candela precedente

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

    Salve, qualcuno mi può dire il codice da inserire in un programma per impostare lo stop loss sul massimo o sul minimo della candela precedente.

    Grazie

    #108969 quote
    robertogozzi
    Moderator
    Master

    Sul massimo:

    StopLoss = abs(close - high[1])  //calcola differenza di prezzo
    SET STOP LOSS StopLoss           //setta lo SL in differenza di prezzo
    SET STOP LOSS StopLoss / pipsize //setta lo SL in Pips

    Sul minimo:

    StopLoss = abs(close - low[1])   //calcola differenza di prezzo
    SET STOP LOSS StopLoss           //setta lo SL in differenza di prezzo
    SET STOP LOSS StopLoss / pipsize //setta lo SL in Pips
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

stop loss sul massimo o sul minimo della candela precedente


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Toto1992 @toto1992 Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 10/01/2019
Status: Active
Attachments: No files
Logo Logo
Loading...