| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| How to add Account Number Based Lock for Indicator? https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4781 |
Page 1 of 2 |
| Author: | MicroSpiderfx [ Mon Jun 27, 2016 10:12 am ] |
| Post subject: | How to add Account Number Based Lock for Indicator? |
Hi, I wanted to add account number limitation in my Indicator . I am doing Code: Select all |
|
| Author: | renexxxx [ Mon Jun 27, 2016 10:31 am ] |
| Post subject: | How to add Account Number Based Lock for Indicator? |
You can do something like this in OnInit() of indicator: Code: Select all |
|
| Author: | arts [ Mon Jun 27, 2016 11:34 am ] |
| Post subject: | How to add Account Number Based Lock for Indicator? |
Or alternatively swap ExpertRemove() for ChartIndicatorDelete().. |
|
| Author: | MicroSpiderfx [ Mon Jun 27, 2016 12:33 pm ] |
| Post subject: | How to add Account Number Based Lock for Indicator? |
Thank you ... all of my master :hi: . Now its working |
|
| Author: | taipan [ Sat Aug 27, 2016 2:30 pm ] |
| Post subject: | How to add Account Number Based Lock for Indicator? |
Renexxxx, The coding seemed not to work with the latest Empty4 build 1010. Any update to make it work? I have compile errors. |
|
| Author: | renexxxx [ Sun Aug 28, 2016 7:33 am ] |
| Post subject: | How to add Account Number Based Lock for Indicator? |
Oh dear. There is not much code there, so I'm not sure what it is that could possibly be wrong. You didn't mention the compile error ... I have tested the attached code under 1010. Mind you, I didn't feel like "upgrading" to 1010... Anyway, it compiles and it works. Over to you. |
|
| Author: | taipan [ Sun Aug 28, 2016 11:34 am ] |
| Post subject: | How to add Account Number Based Lock for Indicator? |
Hi Renexxxx, The first image is where i inserted your code on the int init() routine of the indicator. 2nd image is the compiled error. See attached of my insertion of your code with compiled errors. Need further help on where to insert the code correctly. Thanks. |
|
| Author: | renexxxx [ Sun Aug 28, 2016 11:59 am ] |
| Post subject: | How to add Account Number Based Lock for Indicator? |
Send me the code and I will insert it for you. These screenshots don't help me much. I seems that you have inserted the code just willy nilly in the middle of the file. R. |
|
| Author: | taipan [ Sun Aug 28, 2016 4:15 pm ] |
| Post subject: | How to add Account Number Based Lock for Indicator? |
Renexxxx, I had sent you indicator via pm. Thanks. |
|
| Author: | tomele [ Sun Aug 28, 2016 7:22 pm ] |
| Post subject: | How to add Account Number Based Lock for Indicator? |
... and screwed the first line completely |
|
| All times are UTC | Page 1 of 2 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|