need afl help

#1
Hi this is my fist formula I have ever done using professional full version Amibroker.

Ask = 0;
"Ask = "+GetRTData("Ask");
Plot ( Ask, "Ask", colorRed);


I am ust trying to get the ask lable or line to show on the main chart. Using this code just gives zero constantly.

I am using MT4 DDE and have selected open high bid ask time in the database settings although this should not really interfere.
...thx in advance
 
#2
almost given up on this... I cant get the old mt4 PLugin working as a n alternative to attempt to get an ask quote. I will keep trying though..

Does anyone know how to get an ask line from MT4 seems impossible...i know tis guy has done it on this youtube video https://www.youtube.com/watch?v=Yjq-hmngz7E you can see what he has at the end of the video.. I also think trash posts on here. cheers
 

trash

Well-Known Member
#3
3rd party MT4 plugin won't work with GetRTdata as it feeds from MT history files, AFAIK.

If you get Ask price at 0 via DDE then you do something wrong.
DDE settings would look like this http://www.amibroker.com/dde.html Scroll down to MT4 settings

Ask = 0;
"Ask = "+GetRTData("Ask");
Plot ( Ask, "Ask", colorRed);
Well this is wrong. Of course you will get 0 this way.

Rather do it this way
Code:
Ask = GetRTData("Ask");
"Ask = " + Ask;// output in Interpretation window

if( ask > 0 )
    Plot (Ask, "Ask", colorRed, styleDashed | styleNoRescale );
 
Last edited:

Similar threads