Thread: Market Profile
View Single Post
  #3 (permalink)  
Old 25th September 2011, 17:47
Enivid's Avatar
Enivid Enivid is online now
Administrator
 
Join Date: Nov 2008
Posts: 1,539
Thanks: 18
Thanked 20 Times in 16 Posts
Default

Yes, I am the coder of this indicator (not the author because Market Profile indicator was created by J. Peter Steidlmayer before I was born).

You can easily tweak the indicator to remove object deletion simply by removing one line of code from it.

For MQL4, find and remove:
MQL4 Code:
ObjectsDeleteAll(0, OBJ_RECTANGLE);

For MQL5, find and remove:
MQL5 Code:
ObjectsDeleteAll(0, 0, OBJ_RECTANGLE);

But the result won't be very good, since the objects just won't fit on a larger timescale. But you can try it if you think that you need it.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote