Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // https://youtu.be/eL6PiBH4c9s
- //Coloca lineas entre 2 valores max y min dando un valor de distancia entre ellos
- input double Minimo=1.2;
- input double Maximo=1.4;
- input double Valor=0.01;
- input color Color_Linea=clrOlive;
- //input ENUM_TIMEFRAMES Time= PERIOD_D1;
- void OnInit()
- {
- if(Minimo>Maximo) Alert("Valores Min Max erroneos!");
- for(double a= Minimo;a<=Maximo;a=a+Valor)
- {
- DibujarLinea(rand(),a);
- }
- ExpertRemove();
- }
- void DibujarLinea(string Linea, double Posicion)
- {
- ObjectCreate(Symbol(),Linea,OBJ_HLINE,0,0,Posicion);
- ObjectSetInteger(0,Linea,OBJPROP_COLOR,Color_Linea);
- ObjectSetInteger(0,Linea,OBJPROP_WIDTH,1);
- // ObjectSetInteger(0,Linea,OBJPROP_TIMEFRAMES,PERIOD_D1);
- }
Advertisement
Add Comment
Please, Sign In to add comment