20 lines
		
	
	
		
			No EOL
		
	
	
		
			328 B
		
	
	
	
		
			MQL5
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			No EOL
		
	
	
		
			328 B
		
	
	
	
		
			MQL5
		
	
	
	
	
	
struct TICK
 | 
						|
{
 | 
						|
private:
 | 
						|
  int PriceToInteger( const double Price ) const
 | 
						|
  {
 | 
						|
    return((int)(Price / _Point + 0.1));
 | 
						|
  }
 | 
						|
 | 
						|
public:
 | 
						|
  int bid;
 | 
						|
  int ask;
 | 
						|
 | 
						|
  void operator =( const MqlTick &Tick )
 | 
						|
  {
 | 
						|
    this.bid = this.PriceToInteger(Tick.bid);
 | 
						|
    this.ask = this.PriceToInteger(Tick.ask);
 | 
						|
 | 
						|
    return;
 | 
						|
  }
 | 
						|
}; |