Norm.Sash 26 posts msg #98449 - Ignore Norm.Sash |
1/5/2011 10:50:04 PM
Is there a way to draw a verticle line on a plot? Something like
Draw Verticle Line at 20 days
or
Draw Verticle Line at userVariable days
|
Kevin_in_GA 4,599 posts msg #98483 - Ignore Kevin_in_GA |
1/7/2011 2:26:56 PM
Not really. However, if you use the offset or "days ago" function, the period of time since that date is colored differently on the SF chart, effectively giving you a vertical line at the color boundary.
|
Norm.Sash 26 posts msg #98500 - Ignore Norm.Sash |
1/8/2011 12:51:14 PM
Yes, you are right, I can use OFFSET or DAYS AGO and it will display a banded color. However, that doesn't work when there is a variable time frame.
For example, if I create a filter looking for a MACD crossover and would like a date line drawn whereever that crossover occurs. I can't use the generic OFFSET because it isn't something applied to the entire script. And I can't set it to a variable and then use it with DAYS AGO becasue the DAYS AGO function doesn't accept a variable as a parameter.
It would be great if SF would add a VERTICLE LINE capability, and also the ability to use variables for parameter input.
|
djones000buck 206 posts msg #120323 - Ignore djones000buck modified |
5/31/2014 11:47:23 PM
POP... Okay now we can add notes and screw with everyone else's opinion on a stock.... Lol.. And you draw the line we want to draw and even put a label on it...
What's the odds of giving us the ability to draw our own vertical line based on a trigger event or alert.. meaning using the count functionality on a display beneath the chart and being able to draw the vertical line on the price plot....
notes via logic..such as:
Set{addnote, condition1, color "green", note "buy"}
Set{addnote, condition2, color "red", note "sell"}
I'd also like to have the ability to shade an area between two horizonta/vertical lines...
To the effect of:
Set{shadehorizontal, (upperlimit,lower limit,color)}
Set{shadevertical, (upper limit,lower limit, color)}
|
hopeter 3 posts msg #161557 - Ignore hopeter modified |
2/6/2025 10:19:47 PM
Following up on this - can this feature make it to the roadmap? I'm backtesting a strategy that postulates exiting at 2 weeks after entry, and while I can see the "future" period shaded with blue background, it also would be nice to be able to draw a vertical line X number of bars out forth. It gets rather tedious to count 10 bars squinting at a chart for every stock pick..
|
xarlor 590 posts msg #161561 - Ignore xarlor |
2/7/2025 9:05:12 AM
Not sure this will be implemented as it's going on 11 years since the request.
You can accomplish something similar by setting up your filter with everything "2 weeks ago". Then use the set and count trick to draw tick marks. This essentially draws a tick at your exit.
For example, this draws a tick mark for entry of a golden cross strategy - ma(50) crossing above ma(200). It then draws an exit tick mark exactly 2 weeks after the cross. If you need help doing the same for your strategy, post your filter.
|