I Want To Create A EA With Custom Indicator
-
Hey Guys,
I want to create a EA with custom indicator named (Real Woodie CCI), I have mq4 file,
I am just testing is it working or not but its not working, I want to buy when CCI above 130 and vice varsa for sell, After successfully tested this thing i will further modify my EA, Please see my project is there something wrong? I can give indicator if needed
https://fxdreema.com/shared/ulWAqHlYd
Screenshot of buffer 5

@l-andorrà sir please check as you previously help me regarding custom indicator. @jstap you also check my post -
Someone Please Help

-
@talalkhan This indicator has a lot of buffers, place them into a comment block so you can visually check which one if any contain the number you want, if it is the one you have arrowed then your set up should work.
-
@jstap arrowed buffer is same buffer which i am using in EA, You can see buffer numbers are same in colora and in EA, don't know why it is not working, it's because of candle ID or something else. Don't know what's the problem

I can send you mq4 file of indicator if you are intrested to check what's wrong -
@talalkhan Put the value into a comment so yyou can visually check.
-
@jstap what should i put in comments??
-
@talalkhan Do like I have here, different indicator but you'll see what to do, draw a line to verify to levels.

-
@jstap After putting the values on comments what i found that indicator value is stucking after 1,2 candles

-
@talalkhan This is likely because some buffers have a value that occasionally changes, normally when an indicator appears, this causes the value change. This will show you how to count occurrences when this happens, you will have to test all buffers with both ways until you see which one is what you need.

-
@jstap I found the problem, problem is with indicator because indicator is restricted with count bars command, that's why on next candle indicator stop working

-
@talalkhan Interesting
-
@jstap its a sad news for me boss

-
@jstap Available?
I have facing a new problem regarding buy conditions
I want to buy on every time when indicator value crosses above 120, Previous trade is open or close whatever, don't follow trade 1 (See Picture below)
How can i do this? I tried with 2nd groups for buy 2 but EA is opening position with buy 1. it means both tree are working together
Project: https://fxdreema.com/shared/BBlxg5HO

-
@talalkhan For a start you need an if trade 1 above no trade 2, this will make sure 2 only happens if 1 is active. You need to use variables/flags so once trade 1 is active and indicator is below a set number it will allow group 2 to trade.
-
@jstap sir please give me live example so it will be easy to understand, as you know i hate variables
Just set tree 2 as you are saying. Please
https://fxdreema.com/shared/BBlxg5HO -
@talalkhan Somthing like this, when condition is right set variable to true, when condition is wrong set to false. Use the true/false condition block to allow/disallow trade.

-
@jstap
You are saying like this?
Block 1: Condition block
Block 2: Variable true
Custom indicator is above 100
Variable false
Custom indicator below 100
I am still confused
And this variable don't need any constant (input) right?
-
@talalkhan When your indicator ie in right place group 1 trade will open, once the indicater is below trade 1 will be running, at this point you can allow trade 2 so once the indicator is in the right place the 2nd trade will open.
-
@jstap how can i restrict my indicator after trade one opend? Means which block i put for false variable after trade one?
-
@talalkhan You set the variable true/false when needed to allow/stop trade.