Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int Bull=0;
- int Bear=0;
- void OnTick()
- {
- MqlRates InfoPrecio[];
- ArraySetAsSeries(InfoPrecio,true);
- CopyRates(Symbol(),Period(),0,4,InfoPrecio);
- if(InfoPrecio[1].open<InfoPrecio[1].close
- && InfoPrecio[2].open<InfoPrecio[2].close
- && InfoPrecio[3].open<InfoPrecio[3].close)
- Bull=Bull +1;
- if(InfoPrecio[1].open>InfoPrecio[1].close
- && InfoPrecio[2].open>InfoPrecio[2].close
- && InfoPrecio[3].open>InfoPrecio[3].close)
- Bear=Bear+1;
- Comment("\n\nBear: ",Bear,
- "\n\nBull: ",Bull
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment