Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Youtube--> https://www.youtube.com/watch?v=1_CNdRH6a9M
- int Doji=0;
- void OnTick()
- {
- MqlRates InfoPrecio[];
- ArraySetAsSeries(InfoPrecio,true);
- CopyRates(Symbol(),Period(),0,2,InfoPrecio);
- if(InfoPrecio[1].open<InfoPrecio[1].close //Bull
- && ((InfoPrecio[1].high - InfoPrecio[1].close) > (InfoPrecio[1].close - InfoPrecio[1].open))
- && ((InfoPrecio[1].open - InfoPrecio[1].low) > (InfoPrecio[1].close - InfoPrecio[1].open))
- ||
- InfoPrecio[1].open>InfoPrecio[1].close //Bear
- && ((InfoPrecio[1].high - InfoPrecio[1].open) > (InfoPrecio[1].open - InfoPrecio[1].close))
- && ((InfoPrecio[1].close - InfoPrecio[1].low) > (InfoPrecio[1].open - InfoPrecio[1].close))
- )
- Doji=Doji + 1;
- Comment("\n\nDoji: ",Doji);
- }
Advertisement
Add Comment
Please, Sign In to add comment