Strategy Tester Manual Buy/Sell Orders

 

I'm using Build 419.

I started the Strategy Tester using the MT4 "MACD Sample" EA.

When the chart appeared and the price line began to move, I Paused the test.

I then placed a Buy order at the chart price of 1.29317

However, the resulting order in the Terminal window shows a price of 1.27771, not even close to the chart price.

I tried another test using the MT4 "Moving Average" EA with similar results.

Any ideas regarding this price discrepancy??

Thank you.

 
michaelB:

I'm using Build 419.

I started the Strategy Tester using the MT4 "MACD Sample" EA.

When the chart appeared and the price line began to move, I Paused the test.

I then placed a Buy order at the chart price of 1.29317

However, the resulting order in the Terminal window shows a price of 1.27771, not even close to the chart price.

I tried another test using the MT4 "Moving Average" EA with similar results.

Any ideas regarding this price discrepancy??

Thank you.

I wonder if you are actually placing a trade in your live/demo account rather than in the strategy tester. If you close the strategy tester is the trade still there?

When back testing you shouldn't see activity in the terminal window. If you are opening a trade using the terminal trade window then STOP RIGHT NOW if it is a live account. That will be real money not demo trading!

 
dabbler:
I wonder if you are actually placing a trade in your live/demo account rather than in the strategy tester. If you close the strategy tester is the trade still there?
Yep :-)
 

To do manual trading in the tester

  1. Need a dummy EA
    int start(){ return(0); }
  2. Make sure the Visual Mode is checked
 
WHRoeder:

To do manual trading in the tester

  1. Need a dummy EA
  2. Make sure the Visual Mode is checked

Ok, I did that, but the trade window opens a trade in the real/demo account. The question is how to you open a trade in the strategy tester manually? I suspect you would need an EA that reads keys in order to get the EA to place the trade in the strategy tester.

I just double checked it. I had a strategy tester window running in visual mode. Right click on that chart Trading | New Order, and it occurs on the demo account not the strategy tester account. This is version 419.

 
https://www.mql5.com/en/code/9220 Look here and use this EA
 
deVries:
https://www.mql5.com/en/code/9220 Look here and use this EA
I knew there had to be something like that. Thanks :0)
 

I found this thread- https://www.mql5.com/en/forum/130744

read the post from ForexCoder

"Strategy tester is not meant for manual order placement, it's for testing EAs. What you're looking for is forward testing. Google it. Also google Vhands and check this."

 
michaelB:

I found this thread- https://www.mql5.com/en/forum/130744

read the post from ForexCoder

"Strategy tester is not meant for manual order placement, it's for testing EAs. What you're looking for is forward testing. Google it. Also google Vhands and check this."


https://www.mql5.com/en/code/9220 Look here and use this EA. It is not commercial like the link you showed.

So this is for free. And with this EA you can place trades like manual trading.

 
michaelB:

I'm using Build 419.

I started the Strategy Tester using the MT4 "MACD Sample" EA.

When the chart appeared and the price line began to move, I Paused the test.

I then placed a Buy order at the chart price of 1.29317

However, the resulting order in the Terminal window shows a price of 1.27771, not even close to the chart price.

I tried another test using the MT4 "Moving Average" EA with similar results.

Any ideas regarding this price discrepancy??

Thank you.

This might help you. Please read Testing features and Limits in MetaTrader4 https://www.mql5.com/en/articles/1512
Reason: