Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
if(EMAReadyToOpenBuy && StochToBuy) { if(CanOpenBuy && CanOrder)
You are looking at a signal. Act on a change of signal.
MQL4 (in Strategy Tester) - double testing of entry conditions - MQL5 programming forum #1 2017.12.12
William Roeder:
You are looking at a signal. Act on a change of signal.
MQL4 (in Strategy Tester) - double testing of entry conditions - MQL5 programming forum #1 2017.12.12
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
To preface, this is coded in mql4. Don't know where else to put this so I apologize if this is the wrong spot.
Anyways, I'm coding a pretty simple EA that looks at the EMA and Stochastic Oscillator to determine when to make a trade. The only way I want it to close is via a take profit or stop loss. I'm using Oanda for this, and it seems like it is one of those programs that you need to multiply the pips (for stop loss/take profit) by 10 for it to work properly, so that's what is going on there. Secondly, the main issue here is that if you look at the report-
report.PNG
There's like 9 orders here being completed within one second. Here is what the visual graph looks like right now-
graph.PNG
What I'm wondering is how in the world can I get it to make these trades more intelligently. I'm fairly new to mql and forex so is the chart just moving a lot more than I think it is? For anyone wondering here is my code. I took the main bit from a company that created a bot that uses the oscillator and just added to it so it's still kind of messy and I apologize.
Thanks in advance.