Hello all!
I have been using the Awesome Oscillator paired with the TTM Squeeze Pro for a while now and have been having good success with swing trading. I would like to tweak the Awesome Oscillator script a bit and was hoping someone could help me out. Here is the default code:
I primarily swing trade using the 1Y 1D timeframe. I have attached a screenshot below. You can see where I highlighted the date 5/29 . What I want to do is offset or move the bars back 1 space on the Awesome Oscillator only. My goal is to have the first red bar match exactly with the first dark blue bar on the TTM Squeeze Pro. Please let me know if you need any more info or extended explanation.
FYI: I realize not all use cases will work like this, but I have a system already in place for false positives.
I have been using the Awesome Oscillator paired with the TTM Squeeze Pro for a while now and have been having good success with swing trading. I would like to tweak the Awesome Oscillator script a bit and was hoping someone could help me out. Here is the default code:
Rich (BB code):
#
# Charles Schwab & Co. (c) 2007-2025
#
declare lower;
declare zerobase;
plot AO = Average(hl2, 5) - Average(hl2, 34);
plot Zero = 0;
AO.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
AO.SetLineWeight(3);
AO.DefineColor("Up", Color.UPTICK);
AO.DefineColor("Down", Color.DOWNTICK);
AO.AssignValueColor(if AO > AO[1] then AO.color("Up") else if AO < AO[1] then AO.color("Down") else GetColor(1));
Zero.SetDefaultColor(GetColor(5));
I primarily swing trade using the 1Y 1D timeframe. I have attached a screenshot below. You can see where I highlighted the date 5/29 . What I want to do is offset or move the bars back 1 space on the Awesome Oscillator only. My goal is to have the first red bar match exactly with the first dark blue bar on the TTM Squeeze Pro. Please let me know if you need any more info or extended explanation.
FYI: I realize not all use cases will work like this, but I have a system already in place for false positives.