logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
viking4020  
#1 Posted : Monday, December 26, 2016 9:41:09 PM(UTC)
viking4020

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 10/16/2009(UTC)
Posts: 33
Location: Redcliffe, QLD Australia

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
I would like to place a line (representing the trade entry value) on a chart. The line is to start from a certain date (purchase date) and is to have a certain colour and line type. I also want to place another indicator, a trailing stop loss, starting from the same date, but with a different colour and line type. I have tried using barssince, fml and fmlvar indicators. No success but just feel I need a start or method to achieve this. Not able to post code as not currently home. This sort of relates to previous posts about lines starting on a defined date and colouring of multiple indicators in one formula.
MS Support  
#2 Posted : Tuesday, January 3, 2017 5:58:36 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,934

Thanks: 85 times
Was thanked: 154 time(s) in 150 post(s)
The coloring would not be possible via formula, but you can use ValueWhen to start a value from a certain date, such as: ValueWhen(1,Year() > 2015,170) You can of course add additional criteria other than the Year() function but the main point is that the line (170) will begin from that point on the chart forward.
viking4020  
#3 Posted : Wednesday, January 4, 2017 2:00:57 AM(UTC)
viking4020

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 10/16/2009(UTC)
Posts: 33
Location: Redcliffe, QLD Australia

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
Thanks MS Support... I'll try it when I get back home and give you feedback. ... Viking4020
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.