novacane32000 331 posts msg #155885 - Ignore novacane32000 |
2/20/2021 7:56:07 PM
Need help adding an entry of .5 *ATR(6) to a filter.
I want to enter at .5 * ATR (6) of the high of the day.
This is not working
set{A, ATR(6)}
set{B, A * .5}
set{ entry, B + High}
|
nibor100 1,031 posts msg #155891 - Ignore nibor100 |
2/21/2021 1:00:06 AM
Your 3 lines seem to work in a filter once I add a filter criteria for SF to act on. (see sample filter below)
At first I though the space you have in front of the word entry was your problem but it seems to work with or without that space.
Ed S.
|
nibor100 1,031 posts msg #155893 - Ignore nibor100 |
2/21/2021 1:15:35 AM
and if you want to shorten it and filter at the same time....
Please note that you have to put the column label info before the filter part of the add column statement otherwise SF will label that column "High + B" instead of "Entry"
Ed S.
|
novacane32000 331 posts msg #155898 - Ignore novacane32000 |
2/21/2021 9:53:36 AM
Appreciate the help!
Just experimenting with better entries for breakouts.
|
nibor100 1,031 posts msg #155901 - Ignore nibor100 |
2/21/2021 11:05:25 AM
@novacane32000,
I just reread your first post in this thread and you have the following statement:
"I want to enter at .5 * ATR (6) of the high of the day."
which seems to imply a subtraction from the High of the day not an addition.
If that's what you are really after then my 2 filters don't achieve it.
Thanks,
Ed S.
|
novacane32000 331 posts msg #155911 - Ignore novacane32000 |
2/21/2021 4:40:20 PM
Ed
Your first filter is exactly what I wanted.
I’m taking 50 % of the ATR(6) then adding to the high for an entry point.
|