• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 11:46am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 11:46am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Mladen TMA +CG 4C AA MTF TT indicator 4 replies

TMA+CG mladen NRP +Alert 0 replies

TMA+CG mladen indicator 3 replies

Errors in TMA Indicator- Could someone please fix :) 2 replies

Why won't this work? Please Help! (Color Changing TMA Slope) 59 replies

  • Trading Journals
  • /
  • Reply to Thread
  • Subscribe
  • 138
Attachments: TMA+CG Mladen indicator problem - rewrite the indicator, please
Exit Attachments
Tags: TMA+CG Mladen indicator problem - rewrite the indicator, please
Cancel

TMA+CG Mladen indicator problem - rewrite the indicator, please

  • Last Post
  •  
  • Page 1 23456 7
  • Page 1 234 7
  •  
  • Post #1
  • Quote
  • First Post: Sep 3, 2020 3:26pm Sep 3, 2020 3:26pm
  •  joelloh
  • | Joined Feb 2012 | Status: Member | 41 Posts
Need help from Good coder.

I have been using TMA+CG mladen Indicator for few days. I notice there is an error when calling the indicator USING iCustom.

The error log as below.
2020.09.03 16:56:45.661 TMA+CG mladen EURUSD,H1: indicator is too slow, 7047 ms. rewrite the indicator, please

I have tried changing "int counted_bars= 10;" and also "for(i = 10; i >= 0; i--)", seems that the problem also same.

Anyone who can help me with this issue is highly appreciated. Thank you.
Attached File(s)
File Type: mq4 TMA+CG mladen.mq4   10 KB | 1,096 downloads
  • Post #2
  • Quote
  • Sep 3, 2020 8:14pm Sep 3, 2020 8:14pm
  •  wevertoncouy
  • | Joined Apr 2020 | Status: Member | 7 Posts
Contact mladen!!!
https://www.forexfactory.com/mladen
 
 
  • Post #3
  • Quote
  • Sep 3, 2020 9:28pm Sep 3, 2020 9:28pm
  •  Erebus
  • Joined Jul 2011 | Status: Member | 7,403 Posts
I wish this forum has the feature where if you put a user name eg. @mladen they get a notification, like we do now for messages

It's not rocket science guys, use the technology

If you chase two rabbits, you will catch neither one!
Brain Surgery Return This Year: 22.3%
 
1
  • Post #4
  • Quote
  • Sep 4, 2020 5:11am Sep 4, 2020 5:11am
  •  joelloh
  • | Joined Feb 2012 | Status: Member | 41 Posts
Quoting Erebus
Disliked
I wish this forum has the feature where if you put a user name eg. @mladen they get a notification, like we do now for messages It's not rocket science guys, use the technology
Ignored
Yeah. If we could tag someone, it is good.
 
1
  • Post #5
  • Quote
  • Sep 4, 2020 5:11am Sep 4, 2020 5:11am
  •  joelloh
  • | Joined Feb 2012 | Status: Member | 41 Posts
Quoting wevertoncouy
Disliked
Contact mladen!!! https://www.forexfactory.com/mladen
Ignored
 
 
  • Post #6
  • Quote
  • Sep 5, 2020 6:59am Sep 5, 2020 6:59am
  •  robots4me
  • Joined Dec 2017 | Status: Member | 4,378 Posts
Quoting joelloh
Disliked
Need help from Good coder. I have been using TMA+CG mladen Indicator for few days. I notice there is an error when calling the indicator USING iCustom. The error log as below. 2020.09.03 16:56:45.661 TMA+CG mladen EURUSD,H1: indicator is too slow, 7047 ms. rewrite the indicator, please I have tried changing "int counted_bars= 10;" and also "for(i = 10; i >= 0; i--)", seems that the problem also same. Anyone who can help me with this issue is highly appreciated. Thank you. {file}
Ignored

@joelloh -- try decreasing the # of bars used by the chart -- you really don't need more than 500. From MT4's main menu select Tools / Options. See screenshot below...

Attached Image (click to enlarge)
Click to Enlarge

Name: indicator-too-slow.png
Size: 117 KB
 
2
  • Post #7
  • Quote
  • Sep 5, 2020 11:58am Sep 5, 2020 11:58am
  •  wevertoncouy
  • | Joined Apr 2020 | Status: Member | 7 Posts
Quoting Erebus
Disliked
I wish this forum has the feature where if you put a user name eg. @mladen they get a notification, like we do now for messages It's not rocket science guys, use the technology
Ignored
@mladen !!!
 
 
  • Post #8
  • Quote
  • Sep 6, 2020 2:30am Sep 6, 2020 2:30am
  •  HumbleLearne
  • | Joined Feb 2016 | Status: Member | 315 Posts
Quoting robots4me
Disliked
{quote} @joelloh -- try decreasing the # of bars used by the chart -- you really don't need more than 500. From MT4's main menu select Tools / Options. See screenshot below... {image}
Ignored
Does this indicator recalculates or repaints after reducing the bar count Sir Kindly let me know please if you have tested it please
 
 
  • Post #9
  • Quote
  • Sep 6, 2020 10:01am Sep 6, 2020 10:01am
  •  joelloh
  • | Joined Feb 2012 | Status: Member | 41 Posts
Quoting robots4me
Disliked
{quote} @joelloh -- try decreasing the # of bars used by the chart -- you really don't need more than 500. From MT4's main menu select Tools / Options. See screenshot below... {image}
Ignored
robots4me, Thank you for the great suggestion. It greatly decreases the bars on looping the value, but unfortunately, i need to use it on calling the indicator by using iCustom, so.... I think it needs to modify the code.
 
 
  • Post #10
  • Quote
  • Sep 6, 2020 10:03am Sep 6, 2020 10:03am
  •  joelloh
  • | Joined Feb 2012 | Status: Member | 41 Posts
Quoting HumbleLearne
Disliked
{quote} Does this indicator recalculates or repaints after reducing the bar count Sir Kindly let me know please if you have tested it please
Ignored
Kindly note that the indicator does recalculates/repaint.
 
 
  • Post #11
  • Quote
  • Sep 6, 2020 2:34pm Sep 6, 2020 2:34pm
  •  robots4me
  • Joined Dec 2017 | Status: Member | 4,378 Posts
Quoting HumbleLearne
Disliked
{quote} Does this indicator recalculates or repaints after reducing the bar count Sir Kindly let me know please if you have tested it please
Ignored
@HumbleLearne -- I will answer your question, however, if you are even half-way serious about using indicators then you really should know how to check this yourself. It's not difficult -- use Google to search how to do it. It might take you 5-10 minutes to learn how. And from that point on it only takes a minute, or so, to determine if an indicator repaints. And the understanding you'll gain will make a huge difference in how you look at bar data.

To answer your question:

Recalculation and repainting are two *COMPLETELY* different phenomenon related to how bar data gets displayed by MT4. You really must understand the difference. Again -- Google is your friend.

ALL indicators that use the current close price will recalculate. The only exception I can think of at the moment is maybe fractals -- but that's because fractals are delayed 2-3 bars. Recalculation is fine -- it is an artifact of charting an algebraic equation that uses the current price, which fluctuates with each tick. So -- yes, this indicator recalculates.

Repainting occurs when an indicator uses more recent price data and goes back in time to modify its previous markings. Visually this has the effect of making your brain think the indicator will work great for trading because it fits so well with the data. But when trading in real-time, you'll probably be in for some surprises.

Repainting is usually an artifact of the algorithm. If an algorithm can be modified to not repaint, then the developer probably would have done that in the first place. In other words -- if it repaints then that is probably something you'll need to live with.

Most traders when they hear the word "repaint" then they run screaming to the hills. But that is an overly simplistic and naive response. An indicator is a tool -- like a hammer. A hammer can be dangerous -- you might hit your thumb. So, some people would advise never to use a hammer. However, in the right hands a hammer can be a very useful tool. Same way with indicators -- even ones that repaint.

Another thing about repainting indicators -- not all repainting is the same. For some the repainting is so severe that the indicator is unusable for real-time trading (e.g. ZigZag). And for others the repainting is subtle and only occurs when there are large fluctuations in price.

So -- why the long and verbose response? Because @mladen's centered TMA indicators are the best. And they do repaint, but only subtlely. Price always returns to a midline / equilibrium / fair-value and @mladen's centered TMA indicator provides a *CONTEXT* in which to view the current price. By itself it probably is not sufficient for trade signals, but when combined with other indicators (plus your brain) can provide a nice edge.

Attached Image (click to enlarge)
Click to Enlarge

Name: centered-TMA.png
Size: 30 KB


The screenshot above is an example of a centered TMA. The blue line is the centered TMA and the yellow bands are offset by 1xADR. How difficult is it to visually identify an extreme price that will reverse toward the midline / equlibrium / fair-value? Again, though a TMA indicator doesn't provide Entry and Exit signals, it provides a CONTEXT for the current price.

As an aside -- please don't ask me to share indicators -- been there, done that. A little searching on FF and you will find them. Also, @Swingman has a wonderful variation called Lazy TMA.
1
8
  • Post #12
  • Quote
  • Sep 6, 2020 2:44pm Sep 6, 2020 2:44pm
  •  robots4me
  • Joined Dec 2017 | Status: Member | 4,378 Posts
Quoting joelloh
Disliked
{quote} robots4me, Thank you for the great suggestion. It greatly decreases the bars on looping the value, but unfortunately, i need to use it on calling the indicator by using iCustom, so.... I think it needs to modify the code.
Ignored
@joelloh -- nope, the original code does not need to be modified. Think about it. When using iCustom() you iterate through bars in a 'for' loop. In your code try setting the limit to only 250 or 500 bars and see how it goes. If you use the suggestion I mentioned above to limit the number of bars used by a chart and also use a MaxBars of '500' in your code, then you should be fine.

Also, you should know that @mladen's indicator has been around for years and is probably being used by 10,000s of people. So -- if you are encountering a problem then you might reflect more deeply on what you can do to resolve it, rather than blaming a popular and highly used indicator written by the foremost indicator developer on the planet...

CORRECTION: @Swingman and @mladen are the two foremost indicator developers on the planet...
 
4
  • Post #13
  • Quote
  • Sep 9, 2020 7:46am Sep 9, 2020 7:46am
  •  joelloh
  • | Joined Feb 2012 | Status: Member | 41 Posts
Quoting robots4me
Disliked
{quote} @joelloh -- nope, the original code does not need to be modified. Think about it. When using iCustom() you iterate through bars in a 'for' loop. In your code try setting the limit to only 250 or 500 bars and see how it goes. If you use the suggestion I mentioned above to limit the number of bars used by a chart and also use a MaxBars of '500' in your code, then you should be fine. Also, you should know that @mladen's indicator has been around for years and is probably being used by 10,000s of people. So -- if you are encountering a problem...
Ignored
Thank you for the advice. I will look into it again. Really appreciate your suggestion.
 
 
  • Post #14
  • Quote
  • Sep 15, 2020 5:08am Sep 15, 2020 5:08am
  •  HumbleLearne
  • | Joined Feb 2016 | Status: Member | 315 Posts
Quoting robots4me
Disliked
{quote} @HumbleLearne -- I will answer your question, however, if you are even half-way serious about using indicators then you really should know how to check this yourself. It's not difficult -- use Google to search how to do it. It might take you 5-10 minutes to learn how. And from that point on it only takes a minute, or so, to determine if an indicator repaints. And the understanding you'll gain will make a huge difference in how you look at bar data. To answer your question: Recalculation and repainting are two *COMPLETELY* different phenomenon...
Ignored
Brother Robots4me ,
I thank you from the bottom of my heart for the wonderfull explaination ..May you always be happy and grow by leaps and bounds and have healthy , Prosprous & Wealthy Family and Life ...Always be blessed and Happy
 
 
  • Post #15
  • Quote
  • Sep 15, 2020 5:13am Sep 15, 2020 5:13am
  •  mades
  • | Joined Jul 2007 | Status: Member | 1,220 Posts
Go to www.forex-station.com and ask there. MrTools might be able to fix your problem if he has access to that sourcecode.
 
 
  • Post #16
  • Quote
  • Oct 24, 2020 3:44pm Oct 24, 2020 3:44pm
  •  joelloh
  • | Joined Feb 2012 | Status: Member | 41 Posts
Quoting mades
Disliked
Go to www.forex-station.com and ask there. MrTools might be able to fix your problem if he has access to that sourcecode.
Ignored
mades, Really thank you for your suggestion.
 
 
  • Post #17
  • Quote
  • Nov 6, 2020 10:57am Nov 6, 2020 10:57am
  •  mladen
  • Joined Apr 2007 | Status: ... | 801 Posts
I don't place my name in any indicator name I write. Never did and never will.
And I would be the last person on the face of the earth to call Centered TMA a CG (a "Center of Gravity")

So : do not contact me for some issue done by someone else. Patching "mladen" to indicator name does not make it work OK nor does it make it my responsibility to "take care" of such code.
 
8
  • Post #18
  • Quote
  • Nov 7, 2020 10:35am Nov 7, 2020 10:35am
  •  richardks
  • | Additional Username | Joined Dec 2019 | 41 Posts
TMA index, I also look in many places. But what I find all out is the redrawing indicator
 
 
  • Post #19
  • Quote
  • Dec 19, 2020 1:01am Dec 19, 2020 1:01am
  •  Thiagot10
  • | Joined Jan 2020 | Status: Member | 314 Posts
Quoting mladen
Disliked
I don't place my name in any indicator name I write. Never did and never will. And I would be the last person on the face of the earth to call Centered TMA a CG (a "Center of Gravity") So : do not contact me for some issue done by someone else. Patching "mladen" to indicator name does not make it work OK nor does it make it my responsibility to "take care" of such code.
Ignored
Hello friend, could you tell me a good indicator
for me to use on the M1 because I will use it for binary options, help friend?
 
 
  • Post #20
  • Quote
  • Dec 21, 2020 1:14pm Dec 21, 2020 1:14pm
  •  mladen
  • Joined Apr 2007 | Status: ... | 801 Posts
Quoting Thiagot10
Disliked
{quote} Hello friend, could you tell me a good indicator for me to use on the M1 because I will use it for binary options, help friend?
Ignored
For binary trading you can use a coin toss
Sorry if my answer disappoints you, but in my opinion binary trading is simple gambling created and rigged in a way to have broker always win
 
10
  • Trading Journals
  • /
  • TMA+CG Mladen indicator problem - rewrite the indicator, please
  • Reply to Thread
    • Page 1 23456 7
    • Page 1 234 7
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023