You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hello every one.
this is my very First EA am trying to develop. in back testing the flow is exactly like am expecting it to be.
i tried to put it on a demo account to see if any thing will arise.
and it actually did not work as it should be.
in below snip code in side the function
void ShortTrade()
there is two blocks of code.
1- Looking for first Peak
2- ZERO LEVEL RULE MET
what i do is the following
i get the value from MACD main line. and compare it to two values (entered manually)
first line of code will compare the MACD_Current with the MACD_Target_P1 and if the condition is TRUE it will set a bool variable as true and draw a VObject line on that Bar
it will always go in this block of code to make sure am holding the highest value
after that it should go to the second block of code to check for the second bool "MACD_Near_Zero " and compare it with the value am specifying if the rule is met it will again draw a VObject
when i ran the EA in a Demo account, it did not execute any other code block only the first block code even though when i put a print to check the values it should have gone to the next block of code but it did not
am running it in a AUDUSD 15 minutes currency.
i do hop my explanation is sufficient. thank you in advance for any advice