If may pricechange cond is

Pricechange=(Cg-Ref(Cg,-1))*100/Ref(Cg,-1);

I want to add a sell signal when price has fallen more than 4% 

This can be done as 

Sell=!Pricechange>4;or Sell=-Pricechange>4 ( 1. which one is correct?)

2. But i want to set the sell signal as even in cumulative pricechage;suppose 
in 4 cumulative days price has fallen 4% (not on a single day) then how to code 
that? or keeping the number of days open(like i can change the days number 4 or 
5 or as many as i want)?

Can anyone pls tell me?



Reply via email to