I have two criteria that are part of the same strategy. They are similar but different enough that I have defined two separate ‘def’ in my strategy code. One entry is often “better” than the other (‘A’ is better than ‘B’), but in the right circumstances, it’s the other way around.
def EntryA = a + b + c…;
def EntryB = x + y + z…;
My question is then broken into two parts:
1. Can I customize the AddOrder code to look for EntryA first and then only enter EntryB as a secondary criteria (i.e. when EntryA criteria is not met)?
Not sure if the standard ‘If’ statement does this prioritization by default, based on the order it is written.
2. Can I customize the text shown on the chart when the order is opened (to call out EntryA or EntryB?
I want to distinguish which entry “fired” so I can make a decision.
As always – thank you!
Marked as spam
Please log in to post questions.