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)
Is there anyway to create a strategy that uses a drawobject?
This is what I want to do.
I have an indicator, that has a:
DrawArrowDown("arrowdn", true, TV, High[TV] + (5 * TickSize), Color.Gold);
Is there a way to trigger off the drawobject itself without looking at the code?
For example:
Say, "if DrawArrowDown is visible on the chart, then set a SellShort LMT order at High[TV]"
As I said, arrowdn MUST be visible because just saying SellShort LMT order at High[TV] returns a number everytime.
So it would be selling all the time.
Thanks in advance.
Can you help answer these questions from other members on NexusFi?
Dont think its possible to hook on the DrawObjects directly. Assuming you have access to the source of the indicator I would add a DataSeries which holds a value (maybe +1 for UpArrows / -1 for DownArrows) and expose this DataSeries.
Your Strategy can then hook on this DataSerie.
Ok, I have been tinkering:
I've created a bool that toggles true false, when its visible...
Now how do I make a strategy that accesses that bool and also sets a sellshort
Off of the value of a double called TV? My bool and double are under Onbarupdate()