Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Try to create an Expert Advisor based on the Center of Gravity indicator - MetaTrader 4 Expert - MT4/MT5 Resources

author EAcpu | 7 reads | 0 comments |

Attempt to create an Expert Advisor based on the Center of Gravity indicator - expert for MetaTrader 4

Attempt to create an Expert Advisor based on the Center of Gravity indicator - expert for MetaTrader 4

Attempt to create an Expert Advisor based on the Center of Gravity indicator - expert for MetaTrader 4

Attempt to create an Expert Advisor based on the Center of Gravity indicator - expert for MetaTrader 4

Attempt to create an Expert Advisor based on the Center of Gravity indicator - expert for MetaTrader 4

Please help me implement my idea.

This idea has been around for a long time - based on a "conservative intraday scalping" strategy, but I couldn't find a suitable indicator in MT4.

I found the indicator ( center of gravity.mq4 ). Now I try to attach it to the EA, but the EA stubbornly refuses to open trades (both in the demo and in testing). Question - why?

Idea: The indicator generates 5 lines parallel to the trend. Trades can be opened at the intersection of extreme lines (of course, preferably trailing lines). My idea is that the moving average with period 1 (SMA based on low prices) crossing the lower line of the indicator from below, i.e. back to the trend channel, will serve as a signal to open a position, such as a buy. For selling, the opposite moving average 1, SMA, HIGH crosses the upper line from above. This idea can be developed further indefinitely, but for now it is necessary to deal with this issue.

Indicator: center of gravity.mq4

EA trading: C_S_intraday.mq4 / Simple form, no control over deposits, time frame, no tracking, etc.

Attempt to create an Expert Advisor based on the Center of Gravity indicator - expert for MetaTrader 4
Bitmap


Attachment download

📎 Center_of_Gravity.mq4 (5.69 KB)

📎 create1.mq4 (1.88 KB)

Source: MQL5 #8604

Verification code Refresh