maverickmitch
Member
This should do it for you.Hey all,
I really enjoying on demand trading with FW_DPO_mobo, those arrows and the cloud changing from green to red is very helpful, but I don't have time to sit and watch my 2 hour candles all day. Is there any way to create an alert with the thinkScript on the mobo indicator when the arrow changes from up to down or vice versa? I'm at a loss.
Any help would be greatly appreciated.
def BottomBandUp;
def Break_Down = FW_DPO_MOBO().BreakDownArrow;
def Break_Out = FW_DPO_MOBO().BreakOutArrow;
if Break_Out is true {
BottomBandUp = yes;
} else if Break_Down is true {
BottomBandUp = no;
} else {
BottomBandUp = BottomBandUp[1];
}
def BB_Buy = BottomBandUp;
#RED
def BottomBandDown;
def Breakdown = FW_DPO_MOBO()."breakdownArrow";
def Breakout = FW_DPO_MOBO().BreakOutArrow;
if Breakdown is true {
BottomBandDown = yes;
} else if Breakout is true {
BottomBandDown = no;
} else {
BottomBandDown = BottomBandDown[1];
}
def BB_Sell = BottomBandDown;
plot buy = BB_Buy and !BB_Buy[1];
plot sell = BB_Sell and !BB_Sell[1];
Buy.setpaintingStrategy(paintingStrategy.BOOLEAN_ARROW_UP);
Sell.setpaintingStrategy(paintingStrategy.BOOLEAN_ARROW_DOWN);
Alert(Buy[1], "BUY", Alert.BAR, Sound.Bell);
Alert(Sell[1], "Sell", Alert.BAR, Sound.Bell);