@Detwo,
How to put the trend check.
I know Buy = (Cross (C, 1.1R1) AND Cross (C,R1)) is a crude methof of applying a filter. But if use Buy = Cross (C,1.1R1), then first time the signal formed is alright. But if the price goes above R1, or opens above R1, and comes till 1.1 R1 (and not R1), and again goes above it, then once again Ami takes it as a Buy signal. This is because Ami is actually treating 1.1R1 as my reference line, and not simply R1. This is what I am trying avoid. As I want the price to form a Buy only and only if it crosses R1, with a filter of 0.1.
Another thing that I amtrying to do is take the Buy signal when the Buy signal crosses 1.1 R1, and not when the price closes above 1.1R1. Do you know how to code that?
Thanks
How to put the trend check.
I know Buy = (Cross (C, 1.1R1) AND Cross (C,R1)) is a crude methof of applying a filter. But if use Buy = Cross (C,1.1R1), then first time the signal formed is alright. But if the price goes above R1, or opens above R1, and comes till 1.1 R1 (and not R1), and again goes above it, then once again Ami takes it as a Buy signal. This is because Ami is actually treating 1.1R1 as my reference line, and not simply R1. This is what I am trying avoid. As I want the price to form a Buy only and only if it crosses R1, with a filter of 0.1.
Another thing that I amtrying to do is take the Buy signal when the Buy signal crosses 1.1 R1, and not when the price closes above 1.1R1. Do you know how to code that?
Thanks