What code is required to limit what ASK or BID price my EA can make purchase for.

 

What code is required to limit what ASK or BID price my EA can make purchase for.

I am looking at PRICE_MODE but dont understand how use the proper syntax. I mnot clear that this is the code that should be used. My goal is to prevent PAIR purchases that are more than a certain price.

Thanks in advance for any assistence.

 
if (Bid > certainPrice) return;
Reason: