Is this possible in MQL5 to do the following?

 

I am a new learner of MQL5 and I want to do the following but I am not sure it is possible in MQL5:

1. Get the price of a sticker every time it has a new price (more or less get the "real time" price" or prices of the last two or three update).

2. Write an EA that runs/loops every time the price of the sticker update. 

3. Write an function/sub routine that is triggered to run whenever a buy/sell limit/stop is triggered.

Any help will be highly appreciated.

Thanks,

 
  1. OnTick runs on every new price. Remember the previous ones.
  2. OnTick does that on every new price.
  3. OnBookEvent does that. Perhaps you should read the manual.
 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893