Indicators: Alligator Signal

 

Alligator Signal:

Buy and Sell arrows for Alligator signals.

AlligatorSignal GBPUSD M30

Author: Xuefei Xiong

 

please help where in this code indicator to put alert buy/sell correctly, I cant find the right place to put alert, maybe someone can better understand this indicator


sell alert

double PriceBid = MarketInfo(Symbol(), MODE_BID);

Alert(Period()," Sell  ",Symbol()," AT ", PriceBid ));


buy alert

double PriceAsk = MarketInfo(Symbol(), MODE_ASK);

Alert(Period()," Buy  ",Symbol()," AT ",  PriceAsk  )); 


idealy the alert only popup when signal status changes  when buy-become-sell or sell-become-buy, but its ok if alert shown in any buy/sell arrow creation.


Thank you

 
Please edit your post and use the code button (Alt+S) when pasting code.
EDIT your original post, please do not just post the code correctly in a new post.
Reason: