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)
Does anyone know of a way to have an exit signal based on the bar that caused the entry signal?
For example:
If the bar that caused the entry signal was size A (close minus open) then set the profit target equal to size B (open minus close * 2) of that specific bar though. That is the key, I have it so that it moves along looking at the last bar and doing that calculation, however, I need it to fix on the original bar.
Any ideas?
Thanks in advance
Can you help answer these questions from other members on NexusFi?
Logic being the target will continually update until you enter a position, presumably at bar open, then target will keep referring to the prior target figure until the position is closed. Anyone feel free to correct me if that is wrong or better way to do it.
Apologies - this is quite a bit over my head at the moment. The scripts that I am writing are a lot simpler.
Do I replace the SetProfitTarget line with this? If so I am getting the following errors:
The name "math" does not exist
The name "target" does not exist
Or do I need to define the following terms somewhere?
Thank a lot for your help,
Todd
The strategy is very short term in nature. It is only concerned with the most recent level of volatility and it should complete within 1-3 bars after the trade takes place (ideally). If we're in the middle of a strong move the target should be larger, if we're in a consolidation phase the target may be very small.