Error on Close()

How to create strategies and indicators
Message
Author
forexcepat
Posts: 2
Joined: Mon Sep 12, 2016 11:36 pm

Error on Close()

#1 Postby forexcepat » Mon Sep 12, 2016 11:47 pm

hi guys

i need help frm you guys
im working some strategy, and when i want to get the candle stick close its return 0 zero

i try to print the return of the 'Close(0)' and it still zero

anyone can help me please?

my code look like this :

horizontalLineValue := ObjectGet('myline', OBJPROP_PRICE1);
lastCandleClose := close(1);

//AskUser(StrPriceType(horizontalLineValue));
Print('LineValue');
Print(FloatToStr(horizontalLineValue));
Print('LastCandle');
Print(FloatToStr(close(1)));

thx for you help guys
any answered will be appreciated

Return to “FT API”

Who is online

Users browsing this forum: No registered users and 1 guest