on chart event - doesnt work in tester. why?

 
faq says is possible use event in mql5. 
 
koko_moko: faq says is possible use event in mql5. 

The Strategy Tester can only handle custom chart events. Please reference the documentation for more details — Documentation on MQL5: MQL5 programs / Testing Trading Strategies

 
Fernando Carreiro #:

The Strategy Tester can only handle custom chart events. Please reference the documentation for more details — Documentation on MQL5: MQL5 programs / Testing Trading Strategies

" When testing in an EA, we can handle custom events using the OnChartEvent()  "

CHARTEVENT_OBJECT_CLICK counts? so it doesnt work. any  CHARTEVENT. 

mql5 is <removed by moderator>. how to force tester do some if i even cant select object in it?

Documentation on MQL5: Event Handling / OnChartEvent
Documentation on MQL5: Event Handling / OnChartEvent
  • www.mql5.com
OnChartEvent - Event Handling - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 

Forum on trading, automated trading systems and testing trading strategies

General rules and best practices of the Forum.

Alain Verleyen, 2018.08.03 23:18

Please be gentle and friendly on this forum.

  1. Please be polite when communicating on this website. Refrain from statements that may offend or insult other users.
  2. Negative discussions of any banking, brokerage and other financial institutions are not allowed.
  3. Any discussions about personal relations between the community members are not tolerated.
  4. Coarse language, advertising messages, spamming and flooding are forbidden.
  5. Repeated violation of the Rules, ignoring moderator's remarks and open disrespect for the website Administration will lead to an account termination.
  6. The website Administration may implement any changes to the Rules it deems necessary.

 
koko_moko #:" When testing in an EA, we can handle custom events using the OnChartEvent()  " CHARTEVENT_OBJECT_CLICK counts? so it doesnt work. any  CHARTEVENT.  mql5 is <removed by moderator>. how to force tester do some if i even cant select object in it?

No, mouse clicks do not count as "custom". Custom events are as follows:

  • CHARTEVENT_CUSTOM+n — custom event ID, where n is within the range from 0 to 65535. CHARTEVENT_CUSTOM_LAST contains the last acceptable custom event ID (CHARTEVENT_CUSTOM+65535)

Please refer to the documentation for more details ... Documentation on MQL5: Event Handling / OnChartEvent