Can't place text - example code does NOT work

Back to topics list To post a new topic, please log in or register
avatar
22
enjoysmath 2015.07.13 14:09
 

The example code for MQL4 can be found here:

 

 https://docs.mql4.com/constants/objectconstants/enum_object/obj_text

 

 What it does:  Absolutely nothing!!!!

Someone please help with displaying text at any time / price.  This should be an easy thing to do. 

avatar
22
enjoysmath 2015.07.13 14:26 #
 
I've tried cutting up the example code and even borrowing ideas from it seems to fail or crash the indicator.
avatar
Moderator
3427
GumRai 2015.07.13 14:59 #
 

Apart from int i being declared twice it works as it should. There is an error report when compiling it. Once the second declaration is removed, no problem.

Please note that it is a script, so copying and pasting into an indicator (as it is) will not work properly. 

avatar
13010
WHRoeder 2015.07.13 15:18 #
 
enjoysmath What it does:  Absolutely nothing!!!!
  1. I put the code, in a script, compiled, and ran
  2. What is does: Absolutely perfect!!!

    Click on the image.

avatar
22
enjoysmath 2015.07.13 22:39 #
 
Thanks got it to work.
Back to topics list  

To add comments, please log in or register