Registered User Joined: 4/5/2014 Posts: 4
|
I am tring to create a line to do back test.
Goal is:
Entry is made at price C
StopLoss (SL) is C - y (y is calulated before entry and does not change)
So:
If C>C1 then SL=C-y
else SL=SL
I can get this work as a yes - no but cannot get a line. Is this possible?
Thanks
|
Registered User Joined: 1/28/2005 Posts: 6,049
|
Im not sure I understand what you are asking but you could try:
ABS(C>C1)*(SL)
Plotted as a dot on the price scale.
Thanks
|
Registered User Joined: 1/28/2005 Posts: 6,049
|
Whoops I missed the "else"
Something like this maybe:
Abs(C>C1)*(C-y)+ABS(C<=C1)*(SL)
Thanks
|