@andrewfrank Some constants are in as bool, they need to be string, I would set all as standard, test if all works, insert constants one at a time until all working.
MACD on/off and MACD signal crosses 0 and crosses signal line
-
hello,
I have 2 questions regarding MACD.- I have two MACDs in EA. I would like to put one MACD as on/off function. How do I set the bool constant and where in MACD indicator should I put it?
- I would like to create MACD drop downlist functions with one macd line below/above 0 and the other one macd crosses signal line. What constant should be and where I can put in the macd indicator functions?
Thanks for the helps!
-
-
@jstap Thanks for this, I'll try to figure out.
For number 2:I want to be able to choose from MACD indicator, either using MACD line cross 0 or MACD line cross signal lines.
Something similar like this: -
-
@jstap Thanks for this!
further question:
I created the constants,
Do the MACD A, MACD B, MACD All with if conditions?
How do you use it? -
@andrewfrank All you pictures are correct, the MACD constants go into the orange condition block as in my picture, the logic of these blocks is if variable/constant = true pass, otherwise don't activate next block.
-
@jstap Thanks!
I have now implemented those above.
But somehow EA is not working properly, it doesnt open any trades as I am backtesting it.
Any chance you could look it up and see where the basic problems are? -
-
@jstap Ok thanks!
Ill try to do it as your suggestions. and see how it works.