XavierAndreu

Doji Normal

Dec 20th, 2022
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. //Youtube--> https://www.youtube.com/watch?v=1_CNdRH6a9M
  2.  
  3. int Doji=0;
  4.  
  5. void OnTick()
  6. {
  7.  
  8. MqlRates InfoPrecio[];
  9. ArraySetAsSeries(InfoPrecio,true);
  10. CopyRates(Symbol(),Period(),0,2,InfoPrecio);
  11.  
  12. if(InfoPrecio[1].open<InfoPrecio[1].close //Bull
  13. && ((InfoPrecio[1].high - InfoPrecio[1].close) > (InfoPrecio[1].close - InfoPrecio[1].open))
  14. && ((InfoPrecio[1].open - InfoPrecio[1].low) > (InfoPrecio[1].close - InfoPrecio[1].open))
  15.  
  16. ||
  17.  
  18. InfoPrecio[1].open>InfoPrecio[1].close //Bear
  19. && ((InfoPrecio[1].high - InfoPrecio[1].open) > (InfoPrecio[1].open - InfoPrecio[1].close))
  20. && ((InfoPrecio[1].close - InfoPrecio[1].low) > (InfoPrecio[1].open - InfoPrecio[1].close))
  21. )
  22.  
  23. Doji=Doji + 1;
  24.  
  25. Comment("\n\nDoji: ",Doji);
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment