Welcome to the BEST forum for traders

Did you know we're sharing tons of exclusive content here?
Our community is growing quickly. Take a look around and say "Hello".

Expire of entry after +2%

Sep 2, 2021 - 2:50 PM

Viewed 411 times

https://best-trading-indicator.com/community/bti/forums/4180/topics/25790 COPY
  • Hallo,

    ich möchte gern meine Strategie so starten, +2% über Entry. Ich habe das nicht hingekriegt.

    Danke
    BG

    0
  • Hi BG

    Sorry, I don't understand what you meant and I used Google Translate for your german message.

    If you want to go long + 2% from the candle close value of your entry, I'd do something like this

    condition_long = valuewhen(condition, close, 0)
    long_plus_2_percent = condition_long  * 1.02
    
    // create limit order
    
    if high > long_plus_2_percent 
       strategy.entry("Long", ...)
    
    ``
    
    0
CONTENTS