stop loss sul massimo o sul minimo della candela precedente

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #108968 quote
    Toto1992Toto1992
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
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

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 robertogozzirobertogozzi
6 years, 11 months ago.

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