hi again
I have 1 minute database, I look inside at the “quote editor” window and 
the data looks like that sample here = 1.2658
Then I  press BarReplay to see what happen with this 2 following lines

BuyNot =!(Close % 0.0010);  WriteVal(BuyNot )+" = buyNot ";
BuyNormal = (Close % 0.0010);  WriteVal(BuyNormal)+" = BuyNormal";

The results are
BuyNot      : stay allways ZERO
BuyNormal   : return to ONE not only in every 10 ticks but also in other 
prices
for example ONE I have also at
1.2697,1.2689,1.2579,1.2557,1.2567,1.2558

and I don’t know what I am missing here?

Thank you
Panos


At 07:50 27-11-2009 27-11-2009, you wrote:
>
>
>Hi,
>
>I already gave the example in my last post.
>
>Buy = !(Close % 0.0010); // Evenly divisible by 0.0010
>
>That's all there is.
>
>What the operator does is return the remainder after doing a division. So, 
>in the above, you are dividing Close by 0.0010. If the result is evenly 
>divisible, the remainder will be 0. Using the 'not' operator (i.e. !) 
>against 0 will return 1. Therefore, you will Buy when Close is evenly 
>divisible by 0.0010, which is the same as buying at x.0010, x.0020, ...
>
>Mike
>
>

Reply via email to