Thread: Ask!
View Single Post
  #349 (permalink)  
Old 09-14-2006, 02:39 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Cool

Quote:
Originally Posted by tirou
HI CG,
Is it possible programatically to do the following action.
a. To delete an indicator from a chart.
b. Wait for "X" time.
c. Reload the Indicator.
d. Wait for "X" time.
e. Repeat from "a".
If it is possible, can you please post it in the forum. Thanks in advance.
This couldn't be coded with normal MQL4, you need to go to:
Send Keyboard keys to MetaTrader!
and
Programmatically Refresh your charts

The idea is to send keys to MetaTrader, the keys you might need:
Ctrl+I to open Indicator list window. Then Send the first letter of the Indicator's name key (For example: C for CCI). Then you have to send ALT_D to delete the indicator then send ESC key.

Hope it works!
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Reply With Quote