XavierAndreu

Spike

Jan 6th, 2023
797
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. Youtube---> https://youtu.be/VKxZlMVJl8U
  2.  
  3. int Spike=0;
  4.  
  5. void OnTick()
  6. {
  7.  
  8. MqlRates InfoPrecio[];
  9. ArraySetAsSeries(InfoPrecio,true);
  10. CopyRates(Symbol(),Period(),0,2,InfoPrecio);
  11.  
  12. if(
  13. /////////SPIKE BULL////////
  14.  
  15. (InfoPrecio[1].close-InfoPrecio[1].open)*4 < InfoPrecio[1].high-InfoPrecio[1].close //SUP ALCISTA
  16.  
  17. && InfoPrecio[1].close-InfoPrecio[1].open > InfoPrecio[1].open-InfoPrecio[1].low //INF ALCISTA
  18. ||
  19. (InfoPrecio[1].open-InfoPrecio[1].close)*4 < InfoPrecio[1].high-InfoPrecio[1].open //SUP BAJISTA
  20.  
  21. && InfoPrecio[1].open-InfoPrecio[1].close > InfoPrecio[1].close-InfoPrecio[1].low //INF BAJISTA
  22.  
  23. || /////////SPIKE BEAR////////
  24.  
  25. (InfoPrecio[1].open-InfoPrecio[1].close)*4 < InfoPrecio[1].close-InfoPrecio[1].low //SUP BAJISTA
  26.  
  27. && InfoPrecio[1].open-InfoPrecio[1].close > InfoPrecio[1].high-InfoPrecio[1].open //INF BAJISTA
  28. ||
  29. (InfoPrecio[1].close-InfoPrecio[1].open)*4 < InfoPrecio[1].open-InfoPrecio[1].low //SUP ALCISTA
  30.  
  31. && InfoPrecio[1].close-InfoPrecio[1].open > InfoPrecio[1].high-InfoPrecio[1].close //INF ALCISTA
  32. )
  33.  
  34. Spike=Spike +1;
  35.  
  36. Comment("\n\nSpike: ",Spike
  37. );
  38. }
Advertisement
Add Comment
Please, Sign In to add comment