XavierAndreu

Líneas Cíclicas

May 4th, 2022
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. // youtube: https://youtu.be/XokVR2HyYwg
  2.  
  3. datetime Tiempo1 = D'2022.01.05 00:00';
  4. datetime Tiempo2 = D'2022.01.15 00:00';
  5.  
  6. void OnStart()
  7. {
  8. /* ESTE ES OTRO METODO DONDE OBTENER EL VALOR TEMPORAL
  9. MqlRates InfoPrecio[];
  10. ArraySetAsSeries(InfoPrecio,true);
  11. CopyRates(Symbol(),PERIOD_CURRENT,0,Incio+Final,InfoPrecio);
  12. */
  13. LineasCiclicas(rand()+rand());
  14. }
  15.  
  16. void LineasCiclicas(string identificador)
  17. {
  18. ObjectCreate(0,identificador,OBJ_CYCLES,0,Tiempo1,0,Tiempo2,0);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment