Determining trade symbol

 

Is there a command for the EA to determine which symbol it's currently attached to?

For instance, is there a way it to determine that it's on the USD/GBP chart?

I'd like for the EA to calculate stoploss at 2% of the account balance, but the stoploss would be different for different currencies, so first it would be nice if the EA could figure out which currency it has to calculate for so it could determine the correct formula.

Thanks for your help.

Dave Church

 
Symbol()