Hi,

I have an indicator PCQ that has levels of -100, -75, -50, -25, 0 , 25, 50, 75 
100. I want to use the indicator to scale in and out of a single stock. 
I want to Buy when PCQ goes positive with the  % of equity equal to the value 
of PCQ. So, if PCQ goes from -50 to +25, I want to cover my short at -50%  and 
then go long 25%.
Basically, I want to scale in or out of the position when PCQ changes levels, 
and have a % investment long or short equal to the PCQ level. So, if PCQ goes 
from +25 to +75, I want to scale from 25% long to 75% long.
I have tried to use setpositionsize and sigscaleIn and sigscaleOut in buy and 
sell rules, but I clearly don't understand how to do this. I have wasted 
several days on this.
Can this be done with arrays or do I need to loop? I could not find any 
examples.
Any suggestions on how to do this would be much appreciated.

Regards,
Dan Allen

Reply via email to