Indicators: Center of Gravity Modification

 

Center of Gravity Modification:

Original Code by NG3110@latchess.com, last version: https://www.mql5.com/en/code/10548

Added:

  • Channel adjustments: press 1 to widen, press 2 to tighten channel.

Modified:

  • Movable red dot (see the screenshot below).
  • Lines on the chart.
  • Input parameters.

Arcs:

Channel:

S/R:

Movable red dot:

Author: Szymon Palczynski

COG Center of Gravity Modification
COG Center of Gravity Modification
  • votes: 13
  • 2011.12.19
  • marc weedbrook
  • www.mql5.com
//| Linuxser 2007 for TSD http://www.forex-tsd.com/ For traders who have mastered the art of trading with COG, the Stochastic COG should be no problem to interpret. It appears to lead the On Chart COG as divergence takes place as you would expect. COG is often misunderstood because it portrays ( like Zig Zag ) a perfect past. Having linear...
 

Add:

123    if(!ObjectGet(stRing,OBJPROP_SELECTED))

 

example:

Chart USDCAD, H4, 2018.01.10 20:45 UTC, RoboForex (CY) Ltd., MetaTrader 4, Real
 
Hi :-) I installed the indicator, but I don't see red, green and gray chart, only blue is visible. Is some additional configuration in MT4 is needed to proper work of your indicator?
 
Mateusz Bednarz:
Hi :-) I installed the indicator, but I don't see red, green and gray chart, only blue is visible. Is some additional configuration in MT4 is needed to proper work of your indicator?


Hi,

No some additional configuration in MT4 is needed to proper work of your indicator.

Mateusz usuń i zainstaluj od nowa musi działać. Dodaj w linijce 123 if(!ObjectGet(stRing,OBJPROP_SELECTED))

Jak coś to daj znać na PM.

Regards


 
I added the line if(!ObjectGet(stRing,OBJPROP_SELECTED)) and everything is OK now, thanks :-)

Dodałem linię, skompilowałem jeszcze raz wskaźnik i działa, dzięki :-)
 
Mateusz Bednarz:
I added the line if(!ObjectGet(stRing,OBJPROP_SELECTED)) and everything is OK now, thanks :-)

Dodałem linię, skompilowałem jeszcze raz wskaźnik i działa, dzięki :-)

Not for me !

Can you publish  with the modif, please ?

regards

 
Adventador:

Not for me !

Can you publish  with the modif, please ?

regards


What problem?

Comment #1  The first thing visitors must see.

... a lot of pips.

In practice https://www.mql5.com/en/users/stiopa



 

Hi Sir,

I had added "if(!ObjectGet(stRing,OBJPROP_SELECTED))" at line number 123 just above "mat();" hence "mat();" is now at line number 124

after compiling and attached to MT4, it display only middle curve (blue color).

Please help me to fix this.

Thanks & Regards,
Vimal.

Reason: