| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| MTF indicator help https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5633 |
Page 1 of 2 |
| Author: | c1borg [ Mon Mar 04, 2019 7:15 am ] |
| Post subject: | MTF indicator help |
I am diving in to Empty4 and having some success but stuck on something thats probably easy for you coders out there. I have an indicator which works on current chart timeframe, however I want to make it MTF, in otherwords set a fixed time frame which is different from the chart timeframe. I have added Code: Select all Code: Select all Code: Select all Any help/guidance appreciated Indicator(s) attached |
|
| Author: | eRIKb81 [ Mon Mar 04, 2019 10:38 am ] |
| Post subject: | MTF indicator help |
My first guess is it has to do with the line Code: Select all This is how the example code looks: Code: Select all |
|
| Author: | c1borg [ Mon Mar 04, 2019 11:15 am ] |
| Post subject: | MTF indicator help |
I see what you are saying and that might be a problem with the indicator output to TDesk I hadnt thought of. If I put a version set at 1H (the top one) in the picture and the other at 4H (the bottom one) I get the same histogram which cant be right? This code seems to be ok Code: Select all |
|
| Author: | eRIKb81 [ Mon Mar 04, 2019 11:32 am ] |
| Post subject: | MTF indicator help |
Hmm, just the TDJC indicator? I Get different results, H1 on top, H4 below. Try it with a fresh Empty4? |
|
| Author: | c1borg [ Mon Mar 04, 2019 11:39 am ] |
| Post subject: | MTF indicator help |
Ok think ive done it at least the indicators histograms are now different how do I display the indicator set timeframe on each indicator? |
|
| Author: | eRIKb81 [ Mon Mar 04, 2019 12:01 pm ] |
| Post subject: | MTF indicator help |
You could add something like Code: Select all |
|
| Author: | c1borg [ Mon Mar 04, 2019 12:18 pm ] |
| Post subject: | MTF indicator help |
Managed even better Code: Select all |
|
| Author: | c1borg [ Mon Mar 04, 2019 2:03 pm ] |
| Post subject: | MTF indicator help |
Another question, in order to stop flip flopping I have added this code. Code: Select all |
|
| Author: | tomele [ Mon Mar 04, 2019 5:09 pm ] |
| Post subject: | MTF indicator help |
Hi Nev. Although I don't have the time to help you with all your questions, here is a general tip for you. I did it this way when I started to code MQL4: Whenever you want to add something to your code, find another code that does what you imagine. Then read and work to understand this code. Study the MQL4 reference for each statement you don't fully understand. Now try to adapt the code to your needs, play with it and voila - suddenly there you go. Best wishes Thomas |
|
| Author: | c1borg [ Mon Mar 04, 2019 6:06 pm ] |
| Post subject: | MTF indicator help |
Good advice and funnily enough thats what seems to be happening, the indy is now working as expected and its really satisfying to do it yourself (with a little help) I will continue making some more tweaks. |
|
| All times are UTC | Page 1 of 2 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|