traydmark:
Yes, you can control your EA to trade only when the spread is equal or lower than a predefined valueI am testing an EA in MT4, and am having good results when I choose a spread of '2' in the Strategy Tester.
When I switch over to 'Current' in the Strategy Tester for the spread, the results are horrible.
Is there a way to determine or control the spread, or is it something that fluctuates and isn't controllable?
Mohammad Soubra:
Yes, you can control your EA to trade only when the spread is equal or lower than a predefined value
Do you have the code?
Yes, you can control your EA to trade only when the spread is equal or lower than a predefined value
Yes... It's built into by EA... I will have to set it and see if the results improve.
Thanks for the response... I will update.
traydmark:
MarketInfo(Null,MODE_SPREAD)
Yes... It's built into by EA... I will have to set it and see if the results improve.
Thanks for the response... I will update.
Just be like, holdYourHorses.
input int maxHeightOfJumpableRamp = 2; //max spread bool holdYourHorses = false; if(MarketInfo(NULL,MODE_SPREAD)>maxHeightOfJumpableRamp) holdYourHorses = true; // Make !holdYourHorses a requirement before you open a trade

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
I am testing an EA in MT4, and am having good results when I choose a spread of '2' in the Strategy Tester.
When I switch over to 'Current' in the Strategy Tester for the spread, the results are horrible.
Is there a way to determine or control the spread, or is it something that fluctuates and isn't controllable?