WindowPriceMax, WindowPriceMin

How to create strategies and indicators
Message
Author
NudgeFX
Posts: 10
Joined: Fri Aug 19, 2011 1:24 am
Location: Australia

WindowPriceMax, WindowPriceMin

#1 Postby NudgeFX » Sun Sep 17, 2017 5:59 am

Is there any way to get the min and max vertical price values of the current window?

Something similar to WindowPriceMin and WindowPriceMax in metatrader?

User avatar
neHcioHep
Posts: 18
Joined: Sat Nov 21, 2009 5:49 pm

Re: WindowPriceMax, WindowPriceMin

#2 Postby neHcioHep » Thu Sep 21, 2017 2:56 am

NudgeFX wrote:Is there any way to get the min and max vertical price values of the current window?

Something similar to WindowPriceMin and WindowPriceMax in metatrader?


No, you can't get this information, but you can get information about Bars on the current window. You can get it by next code:

Code: Select all

procedure MyProc();
var
  ChartInfo: TChartInfo;
  first, last : integer;

begin
  if not(GetChartInfo(ChartInfo)) then
    exit;

  first := ChartInfo.FirstIndex;
  last := ChartInfo.LastIndex;

// ...

end;

NudgeFX
Posts: 10
Joined: Fri Aug 19, 2011 1:24 am
Location: Australia

Re: WindowPriceMax, WindowPriceMin

#3 Postby NudgeFX » Fri Sep 22, 2017 8:57 am

thanks neHcioHep,

This might help.

Would be nice to have this feature added in a future update


Return to “FT API”

Who is online

Users browsing this forum: No registered users and 2 guests