Connect Entry Price with lows  [SOLVED]

Questions about MultiCharts and user contributed studies.
Jonny473
Posts: 68
Joined: 04 Apr 2016
Has thanked: 5 times
Been thanked: 1 time

Connect Entry Price with lows

Postby Jonny473 » 05 Jan 2017

Happy new year everyone:

Short question regarding the "storage" of a specific value (entryprice):

Lets say I want to implement a Stop Loss based on the low of the last 10 bars, once I entered a position:

Sell("Stop") all shares next bar at (Lowest(Low, 10)[1]) stop;

This code works but I dont want the Stop Loss to "move" as I am in a position adapting the stop of the low of the last 10 bars, it shall always be that fixed low from my entryprice- how do I do that?

Best regards
Jonas

User avatar
Angelina MultiСharts
Posts: 260
Joined: 28 Dec 2016
Has thanked: 28 times
Been thanked: 66 times

Re: Connect Entry Price with lows

Postby Angelina MultiСharts » 17 Jan 2017

Hello Jonny473,

Please find an example attached.
Attachments
StaticStopPrice.pla
(1.86 KiB) Downloaded 283 times

Jonny473
Posts: 68
Joined: 04 Apr 2016
Has thanked: 5 times
Been thanked: 1 time

Re: Connect Entry Price with lows  [SOLVED]

Postby Jonny473 » 19 Jan 2017

Thanks Angelina


Return to “MultiCharts”