MA Cross CCI Strategy

Strategies are published here.

Moderator: admin

MA Cross CCI Strategy

Postby Apprentice » Thu May 08, 2025 5:05 am

EURUSD H1 (05-08-2025 1205).png

Based on the request.
https://fxcodebase.com/code/viewtopic.p ... 78#p159178
MA Cross CCI Strategy.lua
(33.71 KiB) Downloaded 57 times


The MA Cross CCI Strategy combines Moving Average (MA) crossovers and the Commodity Channel Index (CCI) to generate trade signals.

Trading Logic (Summary):
MA Cross:

When the first MA (faster) crosses above the second MA (slower) → Buy Signal.

When the first MA crosses below the second MA → Sell Signal.

MA signals can be disabled via the MA_Off parameter.

CCI (Commodity Channel Index):

If the CCI crosses above a defined Overbought level (e.g., +100) → Buy Signal.

If the CCI crosses below a defined Oversold level (e.g., -100) → Sell Signal.

CCI signals can be disabled via the CCI_Off parameter.

Combined Signal Logic:

If both MA and CCI are enabled, both conditions must be true simultaneously for a trade to be triggered.

If only one is enabled, only that condition is used.

EURUSD H1 (05-08-2025 1210).png

With CCI cross disabled.
Only Checks CCI position.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 38908
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 3 guests