Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I have managed to draw a horizontal line using sc.UseTool and DRAWING_HORIZONTALLINE
Does anyone know how to draw 2 additional lines that mirror the first line - one being +50 ticks away and the other being -50 ticks away?
Can you help answer these questions from other members on NexusFi?
Im adding it as a user drawn drawing so that I can drag it around the chart. I dont like the built in risk reward tool that Sierra has so I want to create my own.
Needs to be adjustable entry, exit and target parameters. I tried implementing another sc.UseTool(Tool) instance but that didnt work. I dont know if you can add a bunch of different tools like 3 seperate horizontal lines and then just add them using the one sc.UseTool(Tool).
Problem is that I cant debug and step through the code. The help file is also a tsunami of confusing text written by a schizzo
For what you want to do your function would need to call 3 separate horizontal line tools. Easy enough. This is not the problem though.
The main problem is that they are not going to move as one unit that you can drag & drop around the screen.
Each drawing tool has built in levels that define that tool. the Horizontal Line Tool is built as a single line, therefore you
would need 3 separate UseTools. However even if you did this and gave them the same line number they still are not going to move
as a single unit, only one of the lines would move.
You are going to need to use another tool that has multiple levels built in. This will allow you to move the tool as one unit.
Based on your example, as long as your target and stop are equal distance the ideal candidate would be the parallel lines/rays with
one retracement level set at 50% (your entry level). Another candidate could be the rectangle tool with the midpoint checked.
Basically any tool that would provide multiple visual levels with a low, middle, high.
I suggest looking at and playing around with the parallel lines example.
What if I added the first line at the last bar and then the other two lines reference that first one. It all depends if one tool can reference the price level of another tool.....surely? There is a built in study called "Study Subgraph Add" which does just this but how would I incorporate this into my code?