Download MetaTrader 5

Ask function returning strange results

To add comments, please log in or register
rwatts50
34
rwatts50  

I have had some issues with calculations involving the Ask function. It is returning some very strange results from the following simple code:

Alert("Ask is ", Ask);


File attached for output. It displays the correct Ask of 142.183, but then other values which are obviously incorrect.


The broker is FXCM, I've contacted them, but they response was there is nothing wrong with their functions and it must be my EA lol


Has anyone else ever experienced this, or have any ideas what's causing it

Files:
ask.PNG 21 kb
whroeder1
17093
whroeder1  
Try changing it to
Alert("Ask on ",_Symbol," is ", Ask);
rwatts50
34
rwatts50  
whroeder1:
Try changing it to

Ahhhh maaaaan! What an embarrassing mistakea to makea. Thanks whroeder1 for pointing out my stupidity.

To add comments, please log in or register