Conditional entry/exit name
Author: mgreco19
Creation Date: 5/7/2020 3:32 PM
profile picture

mgreco19

#1
Hi, how would I go about naming the condition that a trade entered/exited on when there are multiple conditions? I'd like to be able to differentiate which condition was triggered instead of "Group1".

CODE:
Please log in to see this code.
profile picture

Eugene

#2
Hi,

Important: if you're tweaking a Rule-based strategy converted into code, altering the entry name in a multi-condition script can break it.

If it's not the case and in general, you can customize it like this:
CODE:
Please log in to see this code.
profile picture

mgreco19

#3
I see what you mean since I'm trying to tweak a rule-based strategy. The condition that is triggered shows up in the entry name and exit name columns when reviewing trades but the results of the backtest are drastically different.

CODE:
Please log in to see this code.
profile picture

Eugene

#4
Right, as expected. But if you wish to move further, wouldn't something else be required besides the repeating code fragment that you've already shown? Like the complete code, for example.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).