XavierAndreu

Linea Tendencia

Apr 29th, 2022
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. // Youtube : https://youtu.be/S8_2qYW_ciI
  2.  
  3. datetime Tiempo1 = D'2017.06.31 00:00';
  4. double Precio1 =1.6;
  5. datetime Tiempo2 = D'2020.03.31 00:00';
  6. double Precio2 =1;
  7.  
  8. void OnStart()
  9. {
  10. LineaTendencia(rand()+rand(),Tiempo1,Precio1,Tiempo2,Precio2);
  11. }
  12.  
  13. void LineaTendencia(string identificador,
  14. datetime tiempo1,
  15. double precio1,
  16. datetime tiempo2,
  17. double precio2)
  18. {
  19. ObjectCreate(NULL,identificador,OBJ_TREND,0,tiempo2,precio2,tiempo1,precio1);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment