I Want To Create A EA With Custom Indicator
-
@jstap No dear it's not an issue, i tried already with below, How can below work if we want to reset condition if indicator is rising from -200 to -25. It's clearly seeing that above -25 should work, but it's not working don't know why.
-
@talalkhan I do not know what values you are getting from your indicator, referance the value vs the candle ID, this will tell you if the tine is higher/lower now to a previous candle position.
-
@jstap Leave this, don't know why - value is not working fine

Comes to another point last but not the least
If indicator is crossing below 200 EA changed his direction buy to short (already added)
and if indicator is rising again from above any value of in b/w 100/200 to 200+ zone EA changed his direction short to buy again.
How can i do this?

-
@jstap one more problem in EA
EA changes his direction while crossing below 200 (buy to short), EA find short setups but EA also picking long trades because buying condition also matching for trade.
How can i stop long conditions when ea is crossing below 200? -
@talalkhan Depends on why, maybe just allow 1 trade either or sell, put a shared link so reasons can be assessed.
-
@jstap Here is the shared link
https://fxdreema.com/shared/pK9X8JvYc
See screenshot indicator is crossing below 200, EA starts to finds short setups but also long setups because long setups condition also matched.
Before crossing below 200 buy tree 1 was working, after crossing below 200 sell tree 2 activated, but buy tree 1 also working, how can i stop buy 1 when sell 2 activated.
-
@talalkhan Depends on how you want to happen, when cross happens turn opposite condition to false.
-
@jstap Can you please give me a live example on my project,
If blue line crosses below 200 buy tree 1 stop trading and sell tree 2 start trading.
Sell tree 2 is doing his work but main problem is buy tree 1 is continue to trade. How to stop that.
Please give me live example, if you can't understand tell me i will further explain in a better way. -
@talalkhan This goes alone the same lines that I've showed you, if one condition alows 1 type of trade but should stop another, cus this condition to turn the other variable false.
-
@jstap Please check this, i did it right or not?

-
@talalkhan As long as this condition is in the tree this will start/stop trading when condition is met or not.
-
@jstap When condition is met or not,
Means i didn't do it on a right way? Is something wrong please explain -
@talalkhan The set up is correct but it's using a cross so when the cross happens the variable is set to true, on every other candle the variable will be set back to false, use this variable to only be true/false when it suits your defenitions.
-
@jstap Sorry for late, we Pakistanis were busy in Pakistan vs India cricket match clash, hehe
Comes to the point, sir how can i set this to true false both,
Can you please give me live example through screenshot or sharing link.
Here is project check block (282, 283, 284)
https://fxdreema.com/shared/SiV2eKRTc -
-
@jstap Sir check my project and tell me, I did it right or not?
Check blocks (282, 283, 284, 285) & check connection of block 286 in buy tree 1
https://fxdreema.com/shared/lVosHWI4c -
@talalkhan You have conflicting conditions, a bool cannot be a number, once x< has happened it is below, so condition to reset needs to happen at a different time with a different condition?
-
@jstap
282 & 283 will stop tree 1 if indicator is crossing below 200 from above 200 if i am not wrong,
284 & 285 will reset this above condition when indicator is at 0
I think you are talking about block no 284 i used a value in this, can you tell me what i d with this block if you are talking about that block -
@talalkhan You have a condition making a bool condition true, then at the same time you have a condition changing this condition to 0, you have no comment block to visually check what is happening. Put the variables into a comment, visually check what is or isn't working, this way you will know what to check.
-
@jstap Than how can i reset the previous condition which i used in 282 283?
I thought that if i want to reset previous condition when indicator is at 0, this is the way to do it, Can you tell me what's the way to reset?
