Entry on Pullback, if not Entry on Close of Bar
Posted: Nov 01 2016
Hi All,
I am trying to use a very simple moving average cross strategy and I almost have everything done but do not know how to go about the entries and exits. Below is what I want to do.
For example: If a bar closes above a moving average go long at -.05 points stop but if this does not trigger or the price does not pull back for a more advantageous trade, go long on the close of this or next candle. Essentially, I want the code to look for a more advantageous entry within the opened bar but if the bar does not pull back all the way back to my designated entry point (-05), then open a long at the close of the bar.
Information to speed up the Help Process by TJ:
1. I am using MC 9.1
2. Oanda is my broker
3. The instrument is the USDJPY
4. Using the 1hr. timeframe (but I do not believe this has anything to do with what I need)
5. No problems observed so far, just do not know how to code this.
6. What want to do is described above.
Thank you All.
I am trying to use a very simple moving average cross strategy and I almost have everything done but do not know how to go about the entries and exits. Below is what I want to do.
For example: If a bar closes above a moving average go long at -.05 points stop but if this does not trigger or the price does not pull back for a more advantageous trade, go long on the close of this or next candle. Essentially, I want the code to look for a more advantageous entry within the opened bar but if the bar does not pull back all the way back to my designated entry point (-05), then open a long at the close of the bar.
Information to speed up the Help Process by TJ:
1. I am using MC 9.1
2. Oanda is my broker
3. The instrument is the USDJPY
4. Using the 1hr. timeframe (but I do not believe this has anything to do with what I need)
5. No problems observed so far, just do not know how to code this.
6. What want to do is described above.
Thank you All.