XavierAndreu

Linea Horizontal

Apr 28th, 2022
675
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. //https://youtu.be/LbGXksLq-yM
  2.  
  3. void OnStart()
  4. {
  5. DibujarLinea(rand()+rand(),1.1);
  6. DibujarLinea(rand()+rand(),1.2);
  7. DibujarLinea(rand()+rand(),1.3);
  8. DibujarLinea(rand()+rand(),1.0);
  9. }
  10.  
  11. void DibujarLinea(string Identificador, double Posicion)
  12. {
  13. ObjectCreate(NULL,Identificador ,OBJ_HLINE,0,0,Posicion);
  14. ObjectSetInteger(0,Identificador ,OBJPROP_COLOR,clrRed);
  15. ObjectSetInteger(Symbol(),Identificador ,OBJPROP_WIDTH,1);
  16. ObjectSetInteger(_Symbol,Identificador,OBJPROP_STYLE,STYLE_DASH);
  17. ObjectSetInteger(NULL,Identificador,OBJPROP_TIMEFRAMES,OBJ_PERIOD_D1 + OBJ_PERIOD_H1);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment