use iBarShift()
use iBarShift()
Dear SDC,
The iBarShift() function searches for bar by open time. The function returns bar shift with the open time specified. But my concern is how to count the number of bars after a my concern is hot to count the number of bars after a moving average cross over. Please help me.
nashameed: The iBarShift() function searches for bar by open time. The function returns bar shift with the open time specified.But my concern is how to count the number of bars after a my concern is hot to count the number of bars after a moving average cross over. Please help me.
Where is the sample of code you're using to achieve this? If you would like someone to code this for you then try the jobs section.
nashameed: But my concern is how to count the number of bars after a my concern is hot to count the number of bars after a moving average cross over.
You know WHEN the cross happened. A iBarShift on the when IS "number of bars after" If the cross was 4 bars ago, how many bars are after? FOUR.
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
Hi all,
I am a newbie to MQ4. I am trying to create an EA that places the order after a few bars from a Moving Average Crossover. I know how to identify the Moving Average crossover. I know how to count the number of bars. But when I combine these two into a single EA I cannot get the expected result. Can anyone help me please?