I was wondering if I could get some help with tweaking a pre-built rule. There's a rule that says "Price is higher by X% than it was a number of bars ago". Does anybody know an easy way to tweak the code so that the % is based on a particular intraday bar?
For example, rule = price is 0.5% higher than the 10:45 am bar.
Any help is greatly appreciated.
Size:
Color:
The rule does not lend itself to be "tweaked" easily. So this example should do it:
CODE:
Please log in to see this code.
Size:
Color:
Awesome, thank you very much Eugene for the help!
Size:
Color:
Glad to help.
Note: If you're trading only in active stocks guaranteed to have the 10:45 am bar you might want to change "false" to "true":
CODE:
Please log in to see this code.
Otherwise, the code falls back on the first bar after 10:45.
Size:
Color:
Good to know. thanks for the tip!
Size:
Color: