| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Indicator Request https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4019 |
Page 2 of 7 |
| Author: | SteveHopwood [ Wed Dec 31, 2014 5:05 pm ] |
| Post subject: | Indicator Request |
Hehe. Opps. I was doing gormless to international standards last night. You need someone to captain your National Gormless side, then look no further. <Ignores cries of, "Yes, we know."> The solution could not be simpler. We were both confusing the bars highest price with its opening time. Interested bystanders, the kind of logic knicker-in-a-twist state that Angat and I got ourselves into is the state that most beginner coders find themselves in all the time. Nice when we solve the problem though. Solution attached. |
|
| Author: | Reaper [ Wed Dec 31, 2014 5:37 pm ] |
| Post subject: | Indicator Request |
Thank you, that's the first part pretty much done. Pretty much exactly what I wanted for the primary vertical bar. The only thing I can see is an auto-accuracy feature where it auto adjusts to the nearest minute of the high regardless of what timeframe is entered by the user. So if the user goes down in Empty4 to a lower timeframe it adjusts. It can currently do this if I set extern TimeFrame to 1M and set lookbackbars to like 250,000, but seems like a very inefficient way. Anyway don't worry if its more complicated than its worth. Cheers for the sorting out my first part. Will go for dinner and look into part 2. Thanks again both of you. HNY! ![]() |
|
| Author: | milanese [ Wed Dec 31, 2014 6:09 pm ] |
| Post subject: | Indicator Request |
Cheers and have a great new year!!! Tommaso |
|
| Author: | Reaper [ Wed Dec 31, 2014 7:35 pm ] |
| Post subject: | Indicator Request |
This is where I'm at currently. I tried to copy Tommaso function + i+10 code to my script, but I just don't know enough to get anywhere yet. I'll try again later, but in case you're bored feel free to give it a whack. So I need a repeatable vertical line "AlphaLine" that counts X e.g. 10 from the primary line and prints a vertical line then counts 10 bars more and prints another vertical line and so on. |
|
| Author: | Reaper [ Thu Jan 01, 2015 2:43 pm ] |
| Post subject: | Indicator Request |
Code: Select all This is what I have so far to try and get the repeating part to function. Feels like im getting closer but not there yet.. |
|
| Author: | milanese [ Thu Jan 01, 2015 4:33 pm ] |
| Post subject: | Indicator Request |
try if the attached one does what you want.. Cheers Tommaso |
|
| Author: | Reaper [ Thu Jan 01, 2015 5:24 pm ] |
| Post subject: | Indicator Request |
Ah wow, I think that is it. I'll test it properly in a bit and try and learn from what you did too. Thanks for this. Was a great new years day present ! <3 |
|
| Author: | Reaper [ Fri Jan 02, 2015 10:33 am ] |
| Post subject: | Indicator Request |
How difficult would it be to embed the Heikin Ashi indicator into Angats_VLines and have it activated with an extern bool? I tried it using an if statement around a copy n paste of the whole indicator and it said something like cant use an If statement on a global scope. Damn! xD I take it if its possible it has to be properly embedded. I guess I can try it but do bool if statements work in the init and oncalculate methods? And is it also possible to hardcode a tpl into the indicator? Cheers |
|
| Author: | milanese [ Fri Jan 02, 2015 10:48 am ] |
| Post subject: | Indicator Request |
it could be embedded sure, but you must explain, what you exactly want to do the HeikenAshi, with copy paste it will not work, the easiest way for you would be using an iCustom call, how to do that, you can read there ---> http://docs.mql4.com/indicators/icustom Basicly something like ... Code: Select all Tommaso |
|
| Author: | Reaper [ Fri Jan 02, 2015 2:05 pm ] |
| Post subject: | Indicator Request |
Interesting, thank you, I'll give that a shot. |
|
| All times are UTC | Page 2 of 7 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|