I'm developing a strategy that will A) Look to see if there is a squeeze in play, B) Look at the direction of the squeeze, and C) Go long or short depending on conditions A and B. Is there something like that?
Currently my code looks as such:
protected override void OnBarUpdate()
{
if (Oscillator_RSqueeze(SqueezeStyleB.PBFSqueeze).PMo mentumUp[0] < 0 && Oscillator_RSqueeze(SqueezeStyleB.PBFSqueeze).PMom entumUp[1] < Oscillator_RSqueeze(SqueezeStyleB.PBFSqueeze).PMom entumUp[0])
{
EnterLong(Size, "Long");
}
Essentially I have it first looking to see if Momentum is below 0 and to buy at the nadir of negative momentum to try to catch any uptrend. It looks back 1 bar (on a range chart). Alternatively, I could do Squeeze.StyleB.PBFSqueeze.SqueezeOn == 1, but I do not know where to go from there to look at my aforementioned conditions. Help is very much appreciated.
Thanks

Comment