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)
It appears to me that a signal ending with with something of the form:
If Condition1 and Condition2 and Condition3 and Condition4
Then
Sell (or Buy)...
Is functionally equivalent to :
If Condition1 and Condition2
Then
If Condition3 and Condition4
Then
Buy (or Sell)...
So if I have this right, in either layout Condition 1, 2 and 3 and 4 must be true simultaneously for a signal to be generated.
What I want to do is create a signal that is tiered so that when the first group of conditions are true they will act as a permanent ON trigger (which will remain ON even if the conditions are no longer all true)to allow the program to wait for a second group of conditions to become true which finally execute the Buy or Sell.
Is this possible? Thanks
Can you help answer these questions from other members on NexusFi?
Here the `firstCondition` variable is either `Condition1 and Condition2` or the previous bar value (`firstCondition[1]`). That means that, when the previous bar value was true, `firstCondition` will be true for this bar also.
Because the `firstCondition` variable is created with an initial value of `false`, it can only become true when `Condition1 and Condition2` are true. But then it will keep its `true` value because of `firstCondition[1]`.
Thanks for the idea After considerable work I couldn't get the code to execute. Something hiding in there the software didn't like. But I changed direction bit and ended up with a signal I like. When I have time I will work look at it again.
One question- Was your suggestion a new idea you thought of in response to my question, or a general layout you have used in a working signal? Thanks again.