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
thanks for the idea that will be my next step
This is the code with the actual name inserted, it generates the following messages "symbol name for order send function must be a string"
and last error 4062 ( ERR_STRING_PARAMETER_EXPECTED)
I am sure the line of code is fine, it has worked for other pairs (using Symbol() and two other brokers, the only time it has been an issue is when the "m" for micro account has been added.
I will try MODE_TRADEALLOWED, May take little while to force a real time trade.
string GBPJPYm;
OrderSend(GBPJPYm,OP_BUY,lots,Ask,3,SLB,0,"NLAG",501,0,Blue)
This is the code with the actual name inserted, it generates the following messages "symbol name for order send function must be a string"
and last error 4062 ( ERR_STRING_PARAMETER_EXPECTED)
I am sure the line of code is fine, it has worked for other pairs (using Symbol() and two other brokers, the only time it has been an issue is when the "m" for micro account has been added.
I will try MODE_TRADEALLOWED, May take little while to force a real time trade.
You declare the variable but never give it a value.
Thats probably what you intended to do.You declare the variable but never give it a value.
Thats probably what you intended to do.DUH--Great point!!!
Have amended code and I guess that really illustrates the value of posting actual code.
thanks
Keith
DUH--Great point!!!
Have amended code and I guess that really illustrates the value of posting actual code.
thanks
Keith
ok great news that works, need to code the actual symbol name and declare it, now trading correctly.
Many thanks to all.
Keith
ok great news that works, need to code the actual symbol name and declare it, now trading correctly.
Many thanks to all.
Keith
Was the chart you placed the EA also "GBPJPYm" ??
Then you could do it symplie
with
ok great news that works, need to code the actual symbol name and declare it, now trading correctly.
So how did this work before ? you said it did . . .
On regular symbol names both NULL and Symbol() work; original code was Symbol().
Bit of a nuisance to have to code for every currency pair, there may be a workaround, probably could use case
or I guess easier way would be to make the symbol name an external variable.
again thanks for your help
Was the chart you placed the EA also "GBPJPYm" ??
Then you could do it symplie
with
yes the ea was on the GBPJPYm chart and that didn't work, that was the original code and worked for regular symbol names.
Somewhere in the back of my mind I have the idea that names must be upper caseand the lower case "m" was the issue and by declaring the variable you get around that, don't know;
just happy to have the ea working again.
Thanks for your comment.
On regular symbol names both NULL and Symbol() work; original code was Symbol().
Bit of a nuisance to have to code for every currency pair, there may be a workaround, probably could use case
or I guess easier way would be to make the symbol name an external variable.
again thanks for your help
what code and how did you add it to each currency pair?