public void loop(){
		
		double delta = System.currentTimeMillis();
		DecimalFormat df = new DecimalFormat("#.000");
		
		while(true){
				delta = System.currentTimeMillis();
				try {
					
					if(!jf.isVisible() && s.ticks > 10 && s.START_PRICE != 0 && s.MAX_PRICE != 0){
							jf.setExtendedState(JFrame.MAXIMIZED_BOTH);
							jf.setVisible(true);
							Boot.jfSplash.setVisible(false);
					}
					
					if(!Paused){
						s.updateShare();
						jf.setTitle("Stocker - " + s.getSymb() + " - " + df.format(s.prices[rticks-1]) + "/" + s.MAX_PRICE);
						jtext_price.setText("Price:" + df.format(s.prices[rticks-1]));
						jtext_tick.setText("T" + rticks + "/" + s.prices.length);
						jtext_replay.setText("Tick: " + jslider_replay.getValue());
						
						COL_WIDTH = jslider_hor.getValue();
						COL_HEIGHT = jslider_ver.getValue();
						sensitivity = jslider_sensitivty.getValue();
						
						jtext_hor.setText("Hor: " + COL_WIDTH);
						jtext_ver.setText("Ver: " + COL_HEIGHT);
						
						//SETTING CLOCK
						Date date = new Date();
						SimpleDateFormat clock = new SimpleDateFormat("HH:mm:ss");	
						jtext_clock.setText(clock.format(date));
						//////////////////////////////////////////////////////////////
						if(s.prices[rticks-1] != s.prices[rticks-2]){
							jtext_change.setText(df.format(s.prices[rticks-1]-s.prices[rticks-2]));
						}
						
					} else {
						jf.setTitle("Stocker - PAUSED");
						jtext_tick.setText("PAUSED");
					}
					
					
					if(limitdata){
						System.out.println("TICK - " + (long) ((long)(jslider_update.getValue() * 100.0)-(System.currentTimeMillis()-delta)));
						Thread.sleep((long) ((long)(jslider_update.getValue() * 100.0)-(System.currentTimeMillis()-delta)));		
					}
			} catch(Exception e){}
		}
	}