Hello, im using a demo account of mql4 platform.
I never trades before, so i got no experience. Thats why i got this question, when i try to Comment the spread which is on the market always get the same number and never changes.
The expression that i used is: Comment("SPREAD ", Ask-Bid); and always returns me that number: 0.01800000...68 is that due to a demo account? is there any option to make it real so then i can strategy tester better my applications
It is account and/or broker specific.
Look at the specifications of your account/broker
Im using a demo account of mql4 platform (IFCMARKET).
I know on mql5 there´s a function which helps with that, Spread(). On mql4 i have tried with Ask - Bid but always return the same number and that doesnt make sense thats why im asking if theres some issue with spread on mql4 demo account
I repeat, im using a demo account of mql4 platform, i just downloaded the software from mql4.com and started testing my EAs.
As, "gooly" has pointed out, even demo accounts can have "fixed" spreads. It all depends on the type of account the broker is providing. If however, you are ABSOLUTELY sure that the account is a Variable Spread account, then show us your code because there might be errors/bugs somewhere else that is causing the problem.
If you don't want to post your code, then for starters, tell us the following:
EDIT: PS! Try the following indicator (attached code) as a test to see what spread (in points) you get with it:
Here is how to enable "Spread" on the "Market Watch" so that you can compare and verify values. Just Right-Click and enable "Spread" as highlighted:
@GumRai: That was a good catch. I did not even notice that part of the the OP's post! That should explain the problem completely, and since the OP is probably using the default "current spread", he will see that value change on different runs.
@espina88: To use "real" spread in the Strategy Tester you will have to use 3rd party tools. Personally I only know of one tool that does that and it is not free (there is a cost/price for it).
To add comments, please log in or register