AO access problem

How to create strategies and indicators
Message
Author
mariusz
Posts: 5
Joined: Wed Nov 10, 2010 12:09 pm

AO access problem

#1 Postby mariusz » Thu Nov 28, 2013 4:03 pm

Hello

I am trying to access AO indicator in my strategy

I am using following code for it:
======== to create AO indicator:

ind_AO := CreateIndicator(Currency, TimeFrame, 'AO', '5;34; Simple (SMA);(High+Low)/2');

======== to get values

AO_1 := GetIndicatorValue (ind_AO, 1, 3);
AO_2 := GetIndicatorValue (ind_AO, 1, 4);


but I receive illegal values in FXtester (pls see the picture)

what am I doing wrong?

thanks
Attachments
error.PNG
error.PNG (2.14 KiB) Viewed 18422 times

Return to “FT API”

Who is online

Users browsing this forum: No registered users and 45 guests