Is there a way to rename an existing trade?

Questions about MultiCharts and user contributed studies.
Sinatra Fan
Posts: 17
Joined: 04 Jan 2013
Been thanked: 1 time

Is there a way to rename an existing trade?

Postby Sinatra Fan » 29 Apr 2021

So, I'm trying to develop my first strategy that scales in and out. I've been able to develop a signal that scales out with no problems but struggling to get one that scales in. One of the problems I have is that when you close out a trade... I believe it's always FIFO (First in first out). Which would mean that my first trade in will always be the first to close correct? Herein lies my problem.

Let's say that my initial entry for a long position is L1, with subsequent positions being L2, L3, L4, L5. I only want to have a maximum of 5 positions. So lets say I open up positions L1, L2 and L3. If I want to scale out, according to FIFO rules, I would have to close out L1 and L2 right? If I have to do this, then for me to scale in on the left over open position L3, I would have to keep adding numbers to this. How do I reconcile this? Do I simply don't name the positions? Can I close out L2 and L3 instead of L1?

Thanks for your help

User avatar
Svetlana MultiCharts
Posts: 645
Joined: 19 Oct 2017
Has thanked: 3 times
Been thanked: 163 times

Re: Is there a way to rename an existing trade?

Postby Svetlana MultiCharts » 05 May 2021

Hello Sinatra Fan,

Please use “from entry” expression in the exit.
from entry.png
(88.69 KiB) Not downloaded yet


Return to “MultiCharts”