-
I want to create an EA whose function is as follows: after the cci indicator crosses the number 100 upwards and then changes its direction downwards, it will open a buy position for me. How should I create this?
-
@reza0064 Hello
Do you want someone to write an EA for you? -
No, I want to create it myself
-
@reza0064 How can you profit when CCI is overbought and you want an open Buy position?!
what is your strategy? -
This is not a specific strategy. It is an exercise to create an EA
If you want to use it as a strategy, you should add a special capital management to it to make it profitable.
cci cross the number 100 upwards and then change direction downwards. Or, on the contrary, CCi crosses the number (-100) down and then its direction turns up. How should I create this change of direction? If you can provide a solution. -
@Xfire This is not a specific strategy. It is an exercise to create an EA
If you want to use it as a strategy, you should add a special capital management to it to make it profitable.
cci cross the number 100 upwards and then change direction downwards. Or, on the contrary, CCi crosses the number (-100) down and then its direction turns up. How should I create this change of direction? If you can provide a solution. -
-
@Xfire Thank you for your answer . But I wanted to change the direction of the cci indicator upwards after crossing the number -100 downwards. I can create the cross condition. The problem is creating a condition for changing direction.

-
@reza0064 you should check candle IDs 1 and 2.
If ID 2 CCI is lower than ID 1 CCI you can understand it wants back to upper