Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // https://youtu.be/ldvZB72SoPs
- int BandasdeBollinger=0;
- int OnInit()
- {
- BandasdeBollinger=iBands(_Symbol,PERIOD_CURRENT,14,0,2,PRICE_CLOSE);
- return(0);
- }
- void OnTick()
- {
- Comment( "B.Sup= ",IndicadorBandas(1),
- "\nMedia= ",IndicadorBandas(0),
- "\nB.Inf= ",IndicadorBandas(2)
- );
- }
- double IndicadorBandas(int Buffer)
- {
- double BandasArray[];
- ArraySetAsSeries(BandasArray,true);
- CopyBuffer(BandasdeBollinger,Buffer,0,2,BandasArray);
- return(NormalizeDouble(BandasArray[1],_Digits));
- }
Add Comment
Please, Sign In to add comment